]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/spl/spl_mmc.c
spl: spl_mmc: Add option to boot from a MMC partition with offset
[people/ms/u-boot.git] / common / spl / spl_mmc.c
index 5f1cfbf98e97daf107d0e07a649534534d153423..494f683b0aaaf64f79cbb393c35d35ac7330f4ae 100644 (file)
@@ -73,7 +73,12 @@ static int mmc_load_image_raw_partition(struct mmc *mmc, int partition)
                return -1;
        }
 
+#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
+       return mmc_load_image_raw_sector(mmc, info.start +
+                                        CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR);
+#else
        return mmc_load_image_raw_sector(mmc, info.start);
+#endif
 }
 #endif