diff mbox series

[3/3] arm: dts: exynos: Use common alias for Odroid U3/X2 MMC2 (SD-card)

Message ID 20200116152535.2170-4-m.szyprowski@samsung.com
State Accepted
Commit da63b5da61318a2ea8a84a41f2e49eb24f8a3759
Headers show
Series Fix Odroid U3/X2 SD-card boot | expand

Commit Message

Marek Szyprowski Jan. 16, 2020, 3:25 p.m. UTC
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 at samsung.com>
---
 arch/arm/dts/exynos4412-odroid.dts | 2 +-
 include/configs/odroid.h           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Anand Moon Jan. 17, 2020, 4:57 a.m. UTC | #1
Hi Marek,

On Thu, 16 Jan 2020 at 20:56, Marek Szyprowski <m.szyprowski at samsung.com> wrote:
>
> 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 at samsung.com>
> ---

Please add my
Reviewed-by: Anand Moon <linux.amoon at gmail.com>

-Anand
diff mbox series

Patch

diff --git a/arch/arm/dts/exynos4412-odroid.dts b/arch/arm/dts/exynos4412-odroid.dts
index e6c7222755..ce08e8dc1e 100644
--- a/arch/arm/dts/exynos4412-odroid.dts
+++ b/arch/arm/dts/exynos4412-odroid.dts
@@ -17,7 +17,7 @@ 
 		serial0 = "/serial at 13800000";
 		console = "/serial at 13810000";
 		mmc0 = &mshc_0;
-		mmc1 = &sdhci2;
+		mmc2 = &sdhci2;
 	};
 
 	serial at 13810000 {
diff --git a/include/configs/odroid.h b/include/configs/odroid.h
index 77fca32fca..7989fb29d1 100644
--- a/include/configs/odroid.h
+++ b/include/configs/odroid.h
@@ -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>