aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPaul Kocialkowski2015-04-27 10:20:23 +0200
committerTom Rini2015-05-10 07:29:37 -0400
commitecb301394b8745f335dee66546a60dc13edba4d8 (patch)
tree9ddf34d4c9df0af3db6cd17fbced2606b89c7919 /common
parent91199f4a5a21a7cf9dd9e7c05e295a042f8c2b7e (diff)
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 <contact@paulk.fr>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_mmc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index 3cc05bb5312..5d688d6f0fc 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