summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-08-24 12:48:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-08-27 07:12:33 +0200
commita0b68873ecb90bd42862b67410011262e893253e (patch)
tree59d729d1ceec37f7bc8be8f4c2c9473a3b1406e6 /arch
parent88659d9c4a87a730f6efe4f38c011e8e0214a67b (diff)
downloadbarebox-a0b68873ecb90bd42862b67410011262e893253e.tar.gz
barebox-a0b68873ecb90bd42862b67410011262e893253e.tar.xz
ARM: am33xx: set bootsource instance correctly for MMC1
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap/am33xx_generic.c8
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);