arm: dts: exynos: Use common alias for Odroid U3/X2 MMC2 (SD-card)
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 16 Jan 2020 15:25:35 +0000 (16:25 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 23 Jan 2020 02:43:10 +0000 (11:43 +0900)
Use MMC0 for eMMC and MMC2 for SD-card as other Exynos-based boards do.
This allows to use common code to get MMC device id based on the XOM[7:5]
pins.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/dts/exynos4412-odroid.dts
include/configs/odroid.h

index e6c7222755923b80585298c884a43463f058f9c4..ce08e8dc1ebb1b10911fdace90365229dbb29094 100644 (file)
@@ -17,7 +17,7 @@
                serial0 = "/serial@13800000";
                console = "/serial@13810000";
                mmc0 = &mshc_0;
-               mmc1 = &sdhci2;
+               mmc2 = &sdhci2;
        };
 
        serial@13810000 {
index 77fca32fcaf670cd0fd48fa20397ed900b8fde49..7989fb29d15828e7be33e3556a8814802bc1a40a 100644 (file)
@@ -80,7 +80,7 @@
        "tzsw raw 0x83f 0x138\0"
 
 #define BOOT_TARGET_DEVICES(func) \
-       func(MMC, mmc, 1) \
+       func(MMC, mmc, 2) \
        func(MMC, mmc, 0)
 
 #include <config_distro_bootcmd.h>