diff options
author | Sean Anderson | 2023-10-14 16:48:05 -0400 |
---|---|---|
committer | Tom Rini | 2023-10-17 20:50:52 -0400 |
commit | 60d76e332d8031eab6937778b3ed7b6558c2b3f1 (patch) | |
tree | 8e63d4db50b7aef9db5b2106e5e6ec3780410ebc /include | |
parent | 65efaac425e948dc56db5cf315d0497faeddb5b0 (diff) |
test: spl: Add a test for the SPI load method
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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/spl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h index ad1543ae16b..0d49e4a454c 100644 --- a/include/spl.h +++ b/include/spl.h @@ -416,6 +416,16 @@ int spl_load_imx_container(struct spl_image_info *spl_image, void preloader_console_init(void); u32 spl_boot_device(void); +struct spi_flash; + +/** + * spl_spi_get_uboot_offs() - Lookup function for the SPI boot offset + * @flash: The spi flash to boot from + * + * Return: The offset of U-Boot within the SPI flash + */ +unsigned int spl_spi_get_uboot_offs(struct spi_flash *flash); + /** * spl_spi_boot_bus() - Lookup function for the SPI boot bus source. * |