X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=board%2Fcsb226%2Fcsb226.c;h=11cab005c661b1338be5f80ef099404be8f29deb;hp=0d99aa85b65a53ba55928a0dbff20c9d51d3c810;hb=47cd00fa707af9de76408b69d3e911717dbbfab1;hpb=db2f721ffcf9693086a7e5c6c7015f2019e7f52e diff --git a/board/csb226/csb226.c b/board/csb226/csb226.c index 0d99aa85b6..11cab005c6 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