[PATCH 26/26] test: spl: Add a test for the SPI load method
Simon Glass
sjg at chromium.org
Thu Oct 12 05:41:18 CEST 2023
On Wed, 11 Oct 2023 at 18:57, Sean Anderson <seanga2 at gmail.com> wrote:
>
> Add test for the SPI load method. This one is pretty straightforward. We
> can't enable FIT_EXTERNAL with LOAD_FIT_FULL because spl_spi_load_image
> doesn't know the total image size and has to guess from fdt_totalsize. This
> doesn't include external data, so loading it will fail.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> arch/sandbox/include/asm/spl.h | 1 +
> configs/sandbox_noinst_defconfig | 6 +++++
> include/spl.h | 10 ++++++++
> test/image/Kconfig | 8 +++++++
> test/image/Makefile | 1 +
> test/image/spl_load.c | 1 +
> test/image/spl_load_spi.c | 41 ++++++++++++++++++++++++++++++++
> test/py/tests/test_spl.py | 10 ++++++++
> 8 files changed, 78 insertions(+)
> create mode 100644 test/image/spl_load_spi.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list