]> git.sur5r.net Git - u-boot/commitdiff
arm: omap5: correct boot device mode7 for eMMC
authorBalaji T K <balajitk@ti.com>
Mon, 12 Mar 2012 02:25:47 +0000 (02:25 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:25 +0000 (08:31 +0200)
In OMAP5 Boot device mode of 6 and 7 should be mapped to mmc2/eMMC

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/omap-common/spl.c
arch/arm/cpu/armv7/omap-common/spl_mmc.c
arch/arm/include/asm/omap_common.h

index 0f2e0a2d27fdc588cbdb89a89951950693cf8882..4d1ac85d0091de429ccda8e341713ba0aa1c62e3 100644 (file)
@@ -162,6 +162,7 @@ void board_init_r(gd_t *id, ulong dummy)
 #ifdef CONFIG_SPL_MMC_SUPPORT
        case BOOT_DEVICE_MMC1:
        case BOOT_DEVICE_MMC2:
+       case BOOT_DEVICE_MMC2_2:
                spl_mmc_load_image();
                break;
 #endif
index 4bd0602a92ca05e9e2eda2a6f58c4a390e8a9178..2f921bb07d4d4ea8a6914d8bfc477405fb2c4b6a 100644 (file)
@@ -42,6 +42,7 @@ int board_mmc_init(bd_t *bis)
                omap_mmc_init(0, 0, 0);
                break;
        case BOOT_DEVICE_MMC2:
+       case BOOT_DEVICE_MMC2_2:
                omap_mmc_init(1, 0, 0);
                break;
        }
index 2f35c185dae8d36ad9f2e84711354d6d340a466c..459b6b16e24e1902055f103748d810b68c097e03 100644 (file)
@@ -45,7 +45,7 @@ void preloader_console_init(void);
 #define BOOT_DEVICE_ONE_NAND    4
 #define BOOT_DEVICE_MMC1        5
 #define BOOT_DEVICE_MMC2        6
-#define BOOT_DEVICE_MMC3       7
+#define BOOT_DEVICE_MMC2_2     7
 #elif defined(CONFIG_OMAP44XX) /* OMAP4 */
 #define BOOT_DEVICE_NONE       0
 #define BOOT_DEVICE_XIP                1
@@ -54,6 +54,7 @@ void preloader_console_init(void);
 #define BOOT_DEVICE_ONE_NAND   4
 #define BOOT_DEVICE_MMC1       5
 #define BOOT_DEVICE_MMC2       6
+#define BOOT_DEVICE_MMC2_2     0xFF
 #elif defined(CONFIG_OMAP34XX) /* OMAP3 */
 #define BOOT_DEVICE_NONE       0
 #define BOOT_DEVICE_XIP                1
@@ -62,11 +63,13 @@ void preloader_console_init(void);
 #define BOOT_DEVICE_MMC2       5 /*emmc*/
 #define BOOT_DEVICE_MMC1       6
 #define BOOT_DEVICE_XIPWAIT    7
+#define BOOT_DEVICE_MMC2_2      0xFF
 #elif defined(CONFIG_AM33XX)   /* AM33XX */
 #define BOOT_DEVICE_NAND       5
 #define BOOT_DEVICE_MMC1       8
 #define BOOT_DEVICE_MMC2       0
 #define BOOT_DEVICE_UART       65
+#define BOOT_DEVICE_MMC2_2      0xFF
 #endif
 
 /* Boot type */