]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/cpu/arm1136/mx35/generic.c
spl: eMMC/SD: Provide one __weak spl_boot_mode() function
[people/ms/u-boot.git] / arch / arm / cpu / arm1136 / mx35 / generic.c
index 5297d62d00021783a12daf0a161739ea716893d4..4dcfc7265612bd86a2a7b24325af850f505d74cc 100644 (file)
@@ -524,24 +524,3 @@ u32 spl_boot_device(void)
 
        return BOOT_DEVICE_NONE;
 }
-
-#ifdef CONFIG_SPL_BUILD
-u32 spl_boot_mode(const u32 boot_device)
-{
-       switch (spl_boot_device()) {
-       case BOOT_DEVICE_MMC1:
-#ifdef CONFIG_SPL_FAT_SUPPORT
-               return MMCSD_MODE_FS;
-#else
-               return MMCSD_MODE_RAW;
-#endif
-               break;
-       case BOOT_DEVICE_NAND:
-               return 0;
-               break;
-       default:
-               puts("spl: ERROR:  unsupported device\n");
-               hang();
-       }
-}
-#endif