]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-mvebu/spl.c
arm: mvebu: fix boot from UART on ClearFog Base
[u-boot] / arch / arm / mach-mvebu / spl.c
index ac5bb2c20926fce762fd40b91fd9f466f9b1707e..a72a769f7c740eeb8c4fabf46964c0ba913f2e3d 100644 (file)
@@ -13,8 +13,6 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 static u32 get_boot_device(void)
 {
        u32 val;
@@ -44,6 +42,9 @@ static u32 get_boot_device(void)
                return BOOT_DEVICE_MMC1;
 #endif
        case BOOT_FROM_UART:
+#ifdef BOOT_FROM_UART_ALT
+       case BOOT_FROM_UART_ALT:
+#endif
                return BOOT_DEVICE_UART;
        case BOOT_FROM_SPI:
        default:
@@ -57,7 +58,7 @@ u32 spl_boot_device(void)
 }
 
 #ifdef CONFIG_SPL_MMC_SUPPORT
-u32 spl_boot_mode(void)
+u32 spl_boot_mode(const u32 boot_device)
 {
        return MMCSD_MODE_RAW;
 }