]> git.ipfire.org Git - thirdparty/u-boot.git/commit
spl: Convert mmc to spl_load
authorSean Anderson <seanga2@gmail.com>
Wed, 8 Nov 2023 16:48:50 +0000 (11:48 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 18:49:14 +0000 (13:49 -0500)
commit5d3401a448353767c5e67246a79271c9ee6f3f73
tree2c4cb2d976884f1ccbe439a48d135ddf6d28582c
parent682184e9b9a6f67b108209651ad2ce90aae9ec9d
spl: Convert mmc to spl_load

This converts the mmc loader to spl_load. Legacy images are handled by
spl_load (via spl_parse_image_header), so mmc_load_legacy can be
omitted. To accurately determine whether mmc_load_image_raw_sector is used
(which might not be the case if SYS_MMCSD_FS_BOOT is enabled), we introduce
a helper config SYS_MMCSD_RAW_MODE. This ensures we can inline spl_load
correctly when a board only boots from filesystems. We still need to check
for SPL_MMC, since some boards enable configure raw mode even without MMC
support.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/Kconfig
common/spl/spl_mmc.c
include/spl_load.h
test/image/spl_load_fs.c