u-boot/common/spl
Vaishnav Achath 6dd18a6568 common: spl: spl_spi: add support for dynamic override of sf bus
Currently the SPI flash to load from is defined through the compile
time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this
prevents the loading of binaries from different SPI flash using the
same build.E.g. supporting QSPI flash boot and OSPI flash boot
on J721E platform is not possible due to this limitation.

This commit adds lookup functions spl_spi_boot_bus()
and spl_spi_boot_cs for identifying the flash device based on the
selected boot device, when not overridden the lookup functions are
weakly defined in common/spl/spl_spi.c.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
2022-07-06 14:30:08 -04:00
..
Kconfig Convert CONFIG_SYS_USB_FAT_BOOT_PARTITION to Kconfig 2022-06-28 17:11:48 -04:00
Kconfig.nxp spl: Move all VPL, TPL and PowerPC specific CONFIG options to separate files 2022-06-06 12:09:29 -04:00
Kconfig.tpl spl: Move all VPL, TPL and PowerPC specific CONFIG options to separate files 2022-06-06 12:09:29 -04:00
Kconfig.vpl spl: Move all VPL, TPL and PowerPC specific CONFIG options to separate files 2022-06-06 12:09:29 -04:00
Makefile spl: Rename Kconfig SPL_LEGACY_IMAGE_SUPPORT to SPL_LEGACY_IMAGE_FORMAT 2022-05-11 09:22:24 -04:00
spl.c Convert CONFIG_SYS_SPL_MALLOC_SIZE et al to Kconfig 2022-06-06 12:09:28 -04:00
spl_atf.c spl: atf: add support for LOAD_IMAGE_V2 2020-12-04 16:09:06 -05: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: Add struct spl_boot_device parameter into spl_parse_board_header() 2022-01-20 11:35:29 +01:00
spl_fat.c SPL: Add struct spl_boot_device parameter into spl_parse_board_header() 2022-01-20 11:35:29 +01:00
spl_fit.c tools: Pass the key blob around 2022-01-26 08:50:44 -07:00
spl_legacy.c SPL: Add struct spl_boot_device parameter into spl_parse_board_header() 2022-01-20 11:35:29 +01:00
spl_mmc.c Convert CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTOR et al to Kconfig 2022-06-06 12:09:29 -04:00
spl_nand.c spl: spl_nand: Fix bad block handling in fitImage 2022-05-20 12:36:48 +02:00
spl_net.c SPL: Add struct spl_boot_device parameter into spl_parse_board_header() 2022-01-20 11:35:29 +01:00
spl_nor.c Convert CONFIG_SYS_SPL_ARGS_ADDR to Kconfig 2022-06-06 12:09:29 -04:00
spl_onenand.c SPL: Add struct spl_boot_device parameter into spl_parse_board_header() 2022-01-20 11:35:29 +01:00
spl_opensbi.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spl_optee.S Rockchip-focused changes for v2018.11-rc2: 2018-10-05 13:40:42 -04:00
spl_ram.c common: spl: fit_ram: allow to use image pre load 2022-03-31 14:12:01 -04:00
spl_sata.c Convert CONFIG_SPL_FS_LOAD_PAYLOAD_NAME et al to Kconfig 2022-06-06 12:09:00 -04:00
spl_sdp.c SPL: Add struct spl_boot_device parameter into spl_parse_board_header() 2022-01-20 11:35:29 +01:00
spl_semihosting.c spl: Add semihosting boot method 2022-04-01 15:03:13 -04:00
spl_spi.c common: spl: spl_spi: add support for dynamic override of sf bus 2022-07-06 14:30:08 -04:00
spl_ubi.c SPL: Add struct spl_boot_device parameter into spl_parse_board_header() 2022-01-20 11:35:29 +01:00
spl_usb.c SPL: Add struct spl_boot_device parameter into spl_parse_board_header() 2022-01-20 11:35:29 +01:00
spl_xip.c Convert CONFIG_SYS_SPL_ARGS_ADDR to Kconfig 2022-06-06 12:09:29 -04:00
spl_ymodem.c spl: ymodem: Fix buffer overflow during Image copy 2022-02-03 12:15:33 -05:00