Commit ecb30139 authored by Paul Kocialkowski's avatar Paul Kocialkowski Committed by Tom Rini

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: default avatarPaul Kocialkowski <contact@paulk.fr>
parent 91199f4a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment