diff options
author | wdenk <wdenk> | 2003-03-06 13:39:27 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-03-06 13:39:27 +0000 |
commit | 47cd00fa707af9de76408b69d3e911717dbbfab1 (patch) | |
tree | dd887729a4eaf11e7a225563f4c604ef4b7d695b /board/csb226/csb226.c | |
parent | db2f721ffcf9693086a7e5c6c7015f2019e7f52e (diff) | |
download | bootable_bootloader_goldelico_gta04-47cd00fa707af9de76408b69d3e911717dbbfab1.zip bootable_bootloader_goldelico_gta04-47cd00fa707af9de76408b69d3e911717dbbfab1.tar.gz bootable_bootloader_goldelico_gta04-47cd00fa707af9de76408b69d3e911717dbbfab1.tar.bz2 |
* Patches by Robert Schwebel, 06 Mar 2003:
- fix bug in BOOTP code (must use NetCopyIP)
- update of CSB226 port
- clear BSS segment on XScale
- added support for i2c_init_board() function
- update to the Innokom plattform
* Extend support for redundand environments for configurations where
environment size < sector size
Diffstat (limited to 'board/csb226/csb226.c')
-rw-r--r-- | board/csb226/csb226.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/board/csb226/csb226.c b/board/csb226/csb226.c index 0d99aa8..11cab00 100644 --- a/board/csb226/csb226.c +++ b/board/csb226/csb226.c @@ -32,10 +32,30 @@ # define SHOW_BOOT_PROGRESS(arg) #endif -/* - * Miscelaneous platform dependent initialisations +/** + * misc_init_r: - misc initialisation routines */ +int misc_init_r(void) +{ + uchar *str; + + /* determine if the software update key is pressed during startup */ +#if 0 + /* not ported yet... */ + if (GPLR0 & 0x00000800) { + printf("using bootcmd_normal (sw-update button not pressed)\n"); + str = getenv("bootcmd_normal"); + } else { + printf("using bootcmd_update (sw-update button pressed)\n"); + str = getenv("bootcmd_update"); + } + + setenv("bootcmd",str); +#endif + return 0; +} + /** * board_init: - setup some data structures |