[PATCH v6 20/25] spl: Convert nor to spl_load

Simon Glass sjg at chromium.org
Wed Nov 8 05:24:07 CET 2023


On Sun, 5 Nov 2023 at 19:26, Sean Anderson <seanga2 at gmail.com> wrote:
>
> This converts the nor load method to use spl_load. As a result it also
> adds support for LOAD_FIT_FULL. Since this is the last caller of
> spl_load_legacy_img, it has been removed.
>
> We can't load FITs with external data with SPL_LOAD_FIT_FULL, so disable the
> test in that case. No boards enable SPL_NOR_SUPPORT and SPL_LOAD_FIT_FULL, so
> this is not a regression.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> Changes in v6:
> - Fix LZMA support
> - Fix load address
> - Explicitly initialize load_info members
>
> Changes in v5:
> - Rework to load header in spl_load
>
>  common/spl/spl_legacy.c   | 61 ---------------------------------------
>  common/spl/spl_nor.c      | 40 +++++--------------------
>  include/spl_load.h        |  1 +
>  test/image/spl_load_nor.c |  2 ++
>  4 files changed, 10 insertions(+), 94 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list