SHA256
1
0
forked from pool/u-boot
u-boot/fix_omap_boot_mode.patch

30 lines
959 B
Diff

Index: arch/arm/cpu/armv7/omap3/board.c
===================================================================
--- arch/arm/cpu/armv7/omap3/board.c.orig
+++ arch/arm/cpu/armv7/omap3/board.c
@@ -61,6 +61,8 @@ u32 omap3_boot_device = BOOT_DEVICE_NAND
/* auto boot mode detection is not possible for OMAP3 - hard code */
u32 spl_boot_mode(void)
{
+ return MMCSD_MODE_FS;
+
switch (spl_boot_device()) {
case BOOT_DEVICE_MMC2:
return MMCSD_MODE_RAW;
Index: common/spl/spl_mmc.c.orig
===================================================================
--- common/spl/spl_mmc.c.orig 2014-08-06 15:12:58.000000000 +0200
+++ common/spl/spl_mmc.c 2014-08-21 10:38:25.144053170 +0200
@@ -92,7 +92,9 @@ void spl_mmc_load_image(void)
hang();
}
- boot_mode = spl_boot_mode();
+// boot_mode = spl_boot_mode();
+ boot_mode = MMCSD_MODE_FS; /* Fix OMAP4 boot */
+
if (boot_mode == MMCSD_MODE_RAW) {
debug("boot mode - RAW\n");
#ifdef CONFIG_SPL_OS_BOOT