]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/csb226/csb226.c
* Patches by Robert Schwebel, 06 Mar 2003:
[karo-tx-uboot.git] / board / csb226 / csb226.c
index 0d99aa85b65a53ba55928a0dbff20c9d51d3c810..11cab005c661b1338be5f80ef099404be8f29deb 100644 (file)
 # 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