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

Paul Kocialkowski contact at paulk.fr
Sun Apr 19 21:30:09 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 dd150a7..6fea728 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -189,8 +189,13 @@ void spl_mmc_load_image(void)
 			err = mmc_load_image_raw_os(mmc);
 		else
 #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
 		break;
 #endif
 	case MMCSD_MODE_UNDEFINED:
-- 
1.9.1



More information about the U-Boot mailing list