diff mbox

[U-Boot] Revert "ARM: mx6: add MMC2 boot device detection support in SPL"

Message ID 1480507738-8035-1-git-send-email-breno.lima@nxp.com
State Accepted
Commit 51efabac487d832632f9797a94ed2ba6fe98e718
Delegated to: Stefano Babic
Headers show

Commit Message

Breno Matheus Lima Nov. 30, 2016, 12:08 p.m. UTC
Commit 54e4fcfa3c749a78 ("ARM: mx6: add MMC2 boot device detection
support in SPL") prevents UDOO neo board to boot:

Trying to boot from MMC2
port 1
MMC Device 1 not found
spl: could not find mmc device. error: -19
SPL: failed to boot from all boot devices

This reverts commit 54e4fcfa3c749a789192e83740a53234182f4ca3.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
---
 arch/arm/imx-common/spl.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Comments

Fabio Estevam Dec. 5, 2016, 11:53 a.m. UTC | #1
On Wed, Nov 30, 2016 at 10:08 AM, Breno Lima <breno.lima@nxp.com> wrote:
> Commit 54e4fcfa3c749a78 ("ARM: mx6: add MMC2 boot device detection
> support in SPL") prevents UDOO neo board to boot:
>
> Trying to boot from MMC2
> port 1
> MMC Device 1 not found
> spl: could not find mmc device. error: -19
> SPL: failed to boot from all boot devices
>
> This reverts commit 54e4fcfa3c749a789192e83740a53234182f4ca3.
>
> Signed-off-by: Breno Lima <breno.lima@nxp.com>

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
diff mbox

Patch

diff --git a/arch/arm/imx-common/spl.c b/arch/arm/imx-common/spl.c
index 325ba26..bdcda7d 100644
--- a/arch/arm/imx-common/spl.c
+++ b/arch/arm/imx-common/spl.c
@@ -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: