[PATCH v6 23/25] spl: Convert spi to spl_load

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


On Sun, 5 Nov 2023 at 19:26, Sean Anderson <seanga2 at gmail.com> wrote:
>
> This converts the spi load method to use spl_load. The address used for
> LOAD_FIT_FULL may be different, but there are no in-tree users of that
> config. Since payload_offs is only used without OS_BOOT, we defer its
> initialization.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> Changes in v6:
> - Fix soft reset after loading from SPI
>
> Changes in v5:
> - Rework to load header in spl_load
>
>  common/spl/spl_spi.c      | 80 +++++++--------------------------------
>  include/spl_load.h        |  1 +
>  test/image/spl_load_spi.c |  1 +
>  3 files changed, 15 insertions(+), 67 deletions(-)
>

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

I am just amazed at how many times this FIT code got copied...there is
something wrong with U-Boot's development model here.


More information about the U-Boot mailing list