diff options
author | Tom Rini <trini@ti.com> | 2014-02-17 14:16:08 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-02-17 14:16:08 -0500 |
commit | 18c83588bc830dbad5a96ca19a85184da58f4d09 (patch) | |
tree | 6c6828f97876aa9974f29d2c8f5f248b8188a172 /arch/arm/cpu/armv7/omap-common | |
parent | 22a240c32c1340183fce12867ae5f8736b92a638 (diff) | |
parent | b818d9ab8d96471c40ccbd4541a46dfa415eda73 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-mmc
Diffstat (limited to 'arch/arm/cpu/armv7/omap-common')
-rw-r--r-- | arch/arm/cpu/armv7/omap-common/boot-common.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/boot-common.c b/arch/arm/cpu/armv7/omap-common/boot-common.c index 69fff323d3..52e0f4a6cf 100644 --- a/arch/arm/cpu/armv7/omap-common/boot-common.c +++ b/arch/arm/cpu/armv7/omap-common/boot-common.c @@ -66,7 +66,18 @@ u32 spl_boot_device(void) u32 spl_boot_mode(void) { - return gd->arch.omap_boot_params.omap_bootmode; + u32 val = gd->arch.omap_boot_params.omap_bootmode; + + if (val == MMCSD_MODE_RAW) + return MMCSD_MODE_RAW; + else if (val == MMCSD_MODE_FAT) + return MMCSD_MODE_FAT; + else +#ifdef CONFIG_SUPPORT_EMMC_BOOT + return MMCSD_MODE_EMMCBOOT; +#else + return MMCSD_MODE_UNDEFINED; +#endif } void spl_board_init(void) |