mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
spl: mmc: Fix raw boot mode (related to commit 4c5bbc2328
)
As reported by Robert Nelson, commit 4c5bbc2328
may break MMC RAW boot mode.
This patch fixes the check path to fix MMC Raw boot mode.
Tested raw boot mode and FS boot mode on a pandaboard (rev. A3).
Reported-by: Robert Nelson <robertcnelson@gmail.com>
Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
Cc: Tom Rini <trini@ti.com>
Cc: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
This commit is contained in:
parent
ac0b729844
commit
2c84c9a40a
1 changed files with 17 additions and 4 deletions
|
@ -172,11 +172,24 @@ void spl_mmc_load_image(void)
|
||||||
err = mmc_load_image_raw_sector(mmc,
|
err = mmc_load_image_raw_sector(mmc,
|
||||||
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR);
|
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR);
|
||||||
#endif
|
#endif
|
||||||
} else {
|
}
|
||||||
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
|
||||||
puts("spl: wrong MMC boot mode\n");
|
switch(boot_mode){
|
||||||
|
case MMCSD_MODE_RAW:
|
||||||
|
#if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
|
||||||
|
case MMCSD_MODE_FS:
|
||||||
#endif
|
#endif
|
||||||
hang();
|
#ifdef CONFIG_SUPPORT_EMMC_BOOT
|
||||||
|
case MMCSD_MODE_EMMCBOOT:
|
||||||
|
#endif
|
||||||
|
/* Boot mode is ok. Nothing to do. */
|
||||||
|
break;
|
||||||
|
case MMCSD_MODE_UNDEFINED:
|
||||||
|
default:
|
||||||
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
|
puts("spl: wrong MMC boot mode\n");
|
||||||
|
#endif
|
||||||
|
hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err)
|
if (err)
|
||||||
|
|
Loading…
Reference in a new issue