spl: spl_mmc: Partition raw boot mode for eMMC
authorPaul Kocialkowski <contact@paulk.fr>
Mon, 27 Apr 2015 08:20:23 +0000 (10:20 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 10 May 2015 11:29:37 +0000 (07:29 -0400)
This adds support for providing a partition number instead of a sector for eMMC.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
common/spl/spl_mmc.c

index 3cc05bb53121b20aef941db631209aeaedee8e59..5d688d6f0fcbccc0c9d153930c5414c9032d10d7 100644 (file)
@@ -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