]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/imx-common/spl.c
Revert "ARM: mx6: add MMC2 boot device detection support in SPL"
[people/ms/u-boot.git] / arch / arm / imx-common / spl.c
index 325ba263403016db60f830cc70a10be21f1a1f1f..bdcda7de937f0673392f5007f4377b597747fc0a 100644 (file)
@@ -14,9 +14,6 @@
 #include <spl.h>
 
 #if defined(CONFIG_MX6)
-#define MX6_MMC_PORT_MASK      GENMASK(12, 11)
-#define MX6_MMC_PORT_2         BIT(11)
-
 /* determine boot device from SRC_SBMR1 (BOOT_CFG[4:1]) or SRC_GPR9 register */
 u32 spl_boot_device(void)
 {
@@ -58,11 +55,10 @@ u32 spl_boot_device(void)
        /* SD/eSD: 8.5.3, Table 8-15  */
        case 0x4:
        case 0x5:
+               return BOOT_DEVICE_MMC1;
        /* MMC/eMMC: 8.5.3 */
        case 0x6:
        case 0x7:
-               if ((reg & MX6_MMC_PORT_MASK) == MX6_MMC_PORT_2)
-                       return BOOT_DEVICE_MMC2;
                return BOOT_DEVICE_MMC1;
        /* NAND Flash: 8.5.2 */
        case 0x8 ... 0xf: