]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/mcc200/mcc200.c
automatic update mechanism
[karo-tx-uboot.git] / board / mcc200 / mcc200.c
index 5d74bdeb42e2c4e694f031430e8a6846d59cc013..67969a601092c273c8678f6783117048e9f71c44 100644 (file)
@@ -44,6 +44,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 extern flash_info_t flash_info[];      /* FLASH chips info */
 
+extern int do_auto_update(void);
 ulong flash_get_size (ulong base, int banknum);
 
 #ifndef CFG_RAMBOOT
@@ -227,6 +228,10 @@ int misc_init_r (void)
 {
        ulong flash_sup_end, snum;
 
+#ifdef CONFIG_AUTO_UPDATE
+       /* this has priority over all else */
+       do_auto_update();
+#endif
        /*
         * Adjust flash start and offset to detected values
         */