From: Niklaus Giger Date: Wed, 23 Sep 2009 14:48:39 +0200 Subject: [U-Boot] [PATCH] vxworks: Add CONFIG_VXWORKS_PREBOOT In-Reply-To: <4ABA090B.4070501@windriver.com> References: <1253686958-30716-1-git-send-email-niklaus.giger@netstal.com> <4ABA090B.4070501@windriver.com> Message-ID: <200909231448.39960.niklausgiger@gmx.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Mittwoch 23 September 2009 13:39:55 schrieb Tom: > Niklaus Giger wrote: > > The option CONFIG_VXWORKS_PREBOOT allows a board specific > > vxworks_preboot to be run just before jumping into the > > vxWorks images. This can be used to alter a register > > which is used differently by U-boot and vxWorks. <..> > > puts ("## vxWorks terminated\n"); > > diff --git a/include/vxworks.h b/include/vxworks.h > > index 1633904..df2b580 100644 > > --- a/include/vxworks.h > > +++ b/include/vxworks.h > > @@ -50,4 +50,8 @@ int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); > > #define CONFIG_SYS_VXWORKS_SERVERNAME "srv" > > #endif > > > > +#ifdef CONFIG_VXWORKS_PREBOOT > > + void vxworks_preboot(void); > > +#endif > > + > > Where is vxworks_preboot defined ? This patch should only give the basis for its use. I use it in one of my Netstal boards MCU25. Patch will come soon, as I am cleaning them up at the moment. But the relevant snippet is here: board/netstal/mcu25/mcu25.c void vxworks_preboot(void) { if (sys_install_requested()) mtdcr(CPC0_CR1, CPCO_CR1_USE_EXTERNAL); } Is this okay for you? Or do you have more questions? Best regards Niklaus > > Tom > > > #endif > > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > -- Niklaus Giger Netstal Maschinen AG CH-8752 Naefels