diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-24 12:48:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-27 07:12:33 +0200 |
commit | a0b68873ecb90bd42862b67410011262e893253e (patch) | |
tree | 59d729d1ceec37f7bc8be8f4c2c9473a3b1406e6 | |
parent | 88659d9c4a87a730f6efe4f38c011e8e0214a67b (diff) | |
download | barebox-a0b68873ecb90bd42862b67410011262e893253e.tar.gz barebox-a0b68873ecb90bd42862b67410011262e893253e.tar.xz |
ARM: am33xx: set bootsource instance correctly for MMC1
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/mach-omap/am33xx_generic.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/am33xx_generic.c b/arch/arm/mach-omap/am33xx_generic.c index c1e63cdef5..67e4a45642 100644 --- a/arch/arm/mach-omap/am33xx_generic.c +++ b/arch/arm/mach-omap/am33xx_generic.c @@ -100,6 +100,7 @@ u32 running_in_sdram(void) static int am33xx_bootsource(void) { enum bootsource src; + int instance = 0; switch (omap_bootinfo[2] & 0xFF) { case 0x05: @@ -107,6 +108,11 @@ static int am33xx_bootsource(void) break; case 0x08: src = BOOTSOURCE_MMC; + instance = 0; + break; + case 0x09: + src = BOOTSOURCE_MMC; + instance = 1; break; case 0x0b: src = BOOTSOURCE_SPI; @@ -115,7 +121,7 @@ static int am33xx_bootsource(void) src = BOOTSOURCE_UNKNOWN; } bootsource_set(src); - bootsource_set_instance(0); + bootsource_set_instance(instance); return 0; } postcore_initcall(am33xx_bootsource); |