u-boot/common/spl
Heinrich Schuchardt 8acfd7ddce spl: blk: use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME
We should target to unify the code for different block devices in SPL to
reduce code size.

MMC, USB, SATA, and Semihosting use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME to
indicate the filename to load.

NVMe uses CONFIG_SPL_PAYLOAD in spl_blk_load_image().

CONFIG_SPL_PAYLOAD is meant to define which binary to integrate into
u-boot-with-spl.bin. See commit
7550dbe38b ("spl: Add option SPL_PAYLOAD").

Change spl_blk_load_image() to use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME.

Fixes: 8ce6a2e175 ("spl: blk: Support loading images from fs")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Mayuresh Chitale <mchitale@ventanamicro.com>
2023-07-30 18:50:24 +02:00
..
Kconfig RISC-V: CONFIG_SPL_OPENSBI_SCRATCH_OPTIONS description 2023-07-06 17:28:08 +08:00
Kconfig.nxp global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
Kconfig.tpl tpl: Kconfig: TPL_BANNER_PRINT depends on DEBUG_UART && TPL_SERIAL 2023-07-07 16:25:56 -04:00
Kconfig.vpl vbe: Add Kconfig options for VPL 2022-10-31 11:03:59 -04:00
Makefile common: spl: Add spl NVMe boot support 2023-06-19 17:47:41 -04:00
spl.c common: spl: spl: Remove video driver 2023-07-21 15:32:12 -04:00
spl_atf.c Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
spl_blk_fs.c spl: blk: use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME 2023-07-30 18:50:24 +02:00
spl_bootrom.c spl: pass args to board_return_to_bootrom 2019-10-08 16:35:16 +02:00
spl_dfu.c env: Drop environment.h header file where not needed 2019-08-11 16:43:41 -04:00
spl_ext.c spl: ext: Use partition size for mount 2023-06-14 12:56:10 -04:00
spl_fat.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_fit.c imx: hab: Simplify the mechanism 2023-06-24 13:47:02 -04:00
spl_legacy.c spl: spl_legacy: Fix spl_end address 2023-07-03 10:20:13 -04:00
spl_mmc.c global: Use proper project name U-Boot 2023-06-12 13:24:31 +02:00
spl_nand.c global: Move remaining CONFIG_SYS_NAND_* to CFG_SYS_NAND_* 2022-12-05 16:05:38 -05:00
spl_net.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_nor.c spl: spl-nor: return error if no valid image was loaded 2023-06-20 13:02:34 -04:00
spl_nvme.c common: spl: Add spl NVMe boot support 2023-06-19 17:47:41 -04:00
spl_onenand.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_opensbi.c spl: opensbi: convert scratch options to config 2022-08-11 18:46:41 +08:00
spl_optee.S Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
spl_ram.c arm64: zynqmp: Switch to amd.com emails 2023-07-21 09:00:38 +02:00
spl_sata.c spl: sata: Rework the loading case it not use IS_ENABLED(...) 2023-01-20 12:27:06 -05:00
spl_sdp.c spl: sdp: Pass the USB index to board_usb_init() 2022-07-14 16:13:11 +02:00
spl_semihosting.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00
spl_spi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_ubi.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_usb.c blk: Rename if_type to uclass_id 2022-09-25 08:30:05 -06:00
spl_xip.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
spl_ymodem.c treewide: Drop image_header_t typedef 2022-09-29 16:07:57 -04:00