diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-04-27 10:20:23 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-05-10 07:29:37 -0400 |
commit | ecb301394b8745f335dee66546a60dc13edba4d8 (patch) | |
tree | 9ddf34d4c9df0af3db6cd17fbced2606b89c7919 /common/spl | |
parent | 91199f4a5a21a7cf9dd9e7c05e295a042f8c2b7e (diff) | |
download | u-boot-imx-ecb301394b8745f335dee66546a60dc13edba4d8.zip u-boot-imx-ecb301394b8745f335dee66546a60dc13edba4d8.tar.gz u-boot-imx-ecb301394b8745f335dee66546a60dc13edba4d8.tar.bz2 |
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/spl')
-rw-r--r-- | common/spl/spl_mmc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 3cc05bb..5d688d6 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 |