From: Eran Matityahu <eran.m@variscite.com>
Date: Wed, 3 Jan 2018 10:53:08 +0000 (+0200)
Subject: imx7: spl: Use SPL boot device MMC1 for all of the SOCs MMC/SD boot devices
X-Git-Tag: v2018.03-rc1~176^2~36
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cd9f3ff651cdbe397c4a3da978322e942bdf5298;p=oweals%2Fu-boot.git

imx7: spl: Use SPL boot device MMC1 for all of the SOCs MMC/SD boot devices

Use only one SPL MMC device, similarly to the iMX6 code

Signed-off-by: Eran Matityahu <eran.m@variscite.com>
---

diff --git a/arch/arm/mach-imx/spl.c b/arch/arm/mach-imx/spl.c
index 723f51fad3..5e0338fc4c 100644
--- a/arch/arm/mach-imx/spl.c
+++ b/arch/arm/mach-imx/spl.c
@@ -106,10 +106,9 @@ u32 spl_boot_device(void)
 	switch (boot_device_spl) {
 	case SD1_BOOT:
 	case MMC1_BOOT:
-		return BOOT_DEVICE_MMC1;
 	case SD2_BOOT:
 	case MMC2_BOOT:
-		return BOOT_DEVICE_MMC2;
+		return BOOT_DEVICE_MMC1;
 	case SPI_NOR_BOOT:
 		return BOOT_DEVICE_SPI;
 	default: