[U-Boot] [PATCH v2 2/2] spl: spl_mmc: Partition raw boot mode for eMMC

Paul Kocialkowski contact at paulk.fr
Mon Apr 27 10:20:23 CEST 2015


This adds support for providing a partition number instead of a sector for eMMC.

Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
---
 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 d8be1f0..9d8af51 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -194,8 +194,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
-- 
1.9.1



More information about the U-Boot mailing list