summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-04-09 11:40:40 -0400
committerTom Rini <trini@ti.com>2013-04-09 11:40:40 -0400
commit74f40ea1bcbe96a91067d6f8056a18393d311e67 (patch)
tree588cfd86f1f92dbf8b9b8c10a744d9c574f26be0 /arch/arm/include
parentdd2445ec1b839a5ca61ff8438a5b7aebb21b7986 (diff)
downloadu-boot-imx-74f40ea1bcbe96a91067d6f8056a18393d311e67.zip
u-boot-imx-74f40ea1bcbe96a91067d6f8056a18393d311e67.tar.gz
u-boot-imx-74f40ea1bcbe96a91067d6f8056a18393d311e67.tar.bz2
am335x/ti814x: Correct MMC_BOOT_DEVICES_START/END
Given that on TI814x we have MMC1/2 swapped, we also need to swap them in MMC_BOOT_DEVICES_START/END Reported-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/arch-am33xx/spl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-am33xx/spl.h b/arch/arm/include/asm/arch-am33xx/spl.h
index 14a2c7c..4c23b27 100644
--- a/arch/arm/include/asm/arch-am33xx/spl.h
+++ b/arch/arm/include/asm/arch-am33xx/spl.h
@@ -38,6 +38,11 @@
#define BOOT_DEVICE_CPGMAC 70
#define BOOT_DEVICE_MMC2_2 0xFF
+#ifdef CONFIG_AM33XX
#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
+#elif defined(CONFIG_TI814X)
+#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
+#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
+#endif
#endif