|
@@ -390,6 +390,13 @@ void board_init_f (ulong bootflag)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_POST
|
|
|
|
+ post_bootmode_init();
|
|
|
|
+ post_run(NULL, POST_ROM | post_bootmode_get(0));
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+ WATCHDOG_RESET();
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Now that we have DRAM mapped and working, we can
|
|
* Now that we have DRAM mapped and working, we can
|
|
* relocate the code and continue running from DRAM.
|
|
* relocate the code and continue running from DRAM.
|
|
@@ -596,13 +603,6 @@ void board_init_f (ulong bootflag)
|
|
|
|
|
|
WATCHDOG_RESET ();
|
|
WATCHDOG_RESET ();
|
|
|
|
|
|
-#ifdef CONFIG_POST
|
|
|
|
- post_bootmode_init();
|
|
|
|
- post_run (NULL, POST_ROM | post_bootmode_get(0));
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
- WATCHDOG_RESET();
|
|
|
|
-
|
|
|
|
gd->relocaddr = addr; /* Record relocation address, useful for debug */
|
|
gd->relocaddr = addr; /* Record relocation address, useful for debug */
|
|
|
|
|
|
memcpy (id, (void *)gd, sizeof (gd_t));
|
|
memcpy (id, (void *)gd, sizeof (gd_t));
|