|
@@ -45,6 +45,10 @@ static u32 get_boot_device(void)
|
|
boot_device = (val & BOOT_DEV_SEL_MASK) >> BOOT_DEV_SEL_OFFS;
|
|
boot_device = (val & BOOT_DEV_SEL_MASK) >> BOOT_DEV_SEL_OFFS;
|
|
debug("SAR_REG=0x%08x boot_device=0x%x\n", val, boot_device);
|
|
debug("SAR_REG=0x%08x boot_device=0x%x\n", val, boot_device);
|
|
switch (boot_device) {
|
|
switch (boot_device) {
|
|
|
|
+#if defined(CONFIG_ARMADA_38X)
|
|
|
|
+ case BOOT_FROM_NAND:
|
|
|
|
+ return BOOT_DEVICE_NAND;
|
|
|
|
+#endif
|
|
#ifdef CONFIG_SPL_MMC_SUPPORT
|
|
#ifdef CONFIG_SPL_MMC_SUPPORT
|
|
case BOOT_FROM_MMC:
|
|
case BOOT_FROM_MMC:
|
|
case BOOT_FROM_MMC_ALT:
|
|
case BOOT_FROM_MMC_ALT:
|
|
@@ -128,7 +132,15 @@ void board_init_f(ulong dummy)
|
|
* SPL has no chance to receive this information. So we
|
|
* SPL has no chance to receive this information. So we
|
|
* need to return to the BootROM to enable this xmodem
|
|
* need to return to the BootROM to enable this xmodem
|
|
* UART download.
|
|
* UART download.
|
|
|
|
+ *
|
|
|
|
+ * If booting from NAND lets let the BootROM load the
|
|
|
|
+ * rest of the bootloader.
|
|
*/
|
|
*/
|
|
- if (get_boot_device() == BOOT_DEVICE_UART)
|
|
|
|
- return_to_bootrom();
|
|
|
|
|
|
+ switch (get_boot_device()) {
|
|
|
|
+ case BOOT_DEVICE_UART:
|
|
|
|
+#if defined(CONFIG_ARMADA_38X)
|
|
|
|
+ case BOOT_DEVICE_NAND:
|
|
|
|
+#endif
|
|
|
|
+ return_to_bootrom();
|
|
|
|
+ }
|
|
}
|
|
}
|