From: Paul Kocialkowski Date: Mon, 27 Apr 2015 08:20:23 +0000 (+0200) Subject: spl: spl_mmc: Partition raw boot mode for eMMC X-Git-Tag: v2015.07-rc2~271 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ecb301394b8745f335dee66546a60dc13edba4d8;p=oweals%2Fu-boot.git spl: spl_mmc: Partition raw boot mode for eMMC This adds support for providing a partition number instead of a sector for eMMC. Signed-off-by: Paul Kocialkowski --- diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 3cc05bb531..5d688d6f0f 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -196,8 +196,13 @@ void spl_mmc_load_image(void) return; } #endif +#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION + err = mmc_load_image_raw_partition(mmc, + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION); +#else err = mmc_load_image_raw_sector(mmc, CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR); +#endif if (!err) return; #endif