summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorVaishnav Achath <[email protected]>2022-06-03 11:32:15 +0530
committerTom Rini <[email protected]>2022-07-06 14:30:08 -0400
commit6dd18a6568a7272c86f12aec6f657b13fa52a226 (patch)
tree211bde0ca6557e499f63bf6a7bca1a98bffa6dd9 /scripts/basic
parent4b7d0b24c7047c70d13db953b950a549accb8e14 (diff)
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 <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions