am335x/ti814x: Correct MMC_BOOT_DEVICES_START/END
authorTom Rini <trini@ti.com>
Tue, 9 Apr 2013 15:40:40 +0000 (11:40 -0400)
committerTom Rini <trini@ti.com>
Tue, 9 Apr 2013 15:40:40 +0000 (11:40 -0400)
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>
arch/arm/include/asm/arch-am33xx/spl.h

index 14a2c7c28eadb84ac01404ad6e61b0f41f66a250..4c23b271b5abc472b267278d6e1bcc5f66f8d9af 100644 (file)
 #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