From ecb301394b8745f335dee66546a60dc13edba4d8 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Mon, 27 Apr 2015 10:20:23 +0200 Subject: [PATCH] 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 --- common/spl/spl_mmc.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.25.1