On Sun, 5 Nov 2023 at 19:26, Sean Anderson <sean...@gmail.com> wrote: > > 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 <sean...@gmail.com> > --- > > Changes in v6: > - Add SYS_MMCSD_RAW_MODE to help determine whether SPL_MMC loads > anything directly. > - Explicitly initialize load_info members > > Changes in v5: > - Rework to load header in spl_load > > common/spl/Kconfig | 8 ++++ > common/spl/spl_mmc.c | 89 ++++------------------------------------ > include/spl_load.h | 1 + > test/image/spl_load_fs.c | 3 -- > 4 files changed, 16 insertions(+), 85 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org>