[PATCH v3 1/2] common: spl: spl_spi: add support for dynamic override of sf bus

Tom Rini trini at konsulko.com
Thu Jul 7 03:54:59 CEST 2022


On Fri, Jun 03, 2022 at 11:32:15AM +0530, Vaishnav Achath wrote:

> 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 at ti.com>
> Reviewed-by: Heiko Schocher <hs at denx.de>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220706/2c7ce68a/attachment.sig>


More information about the U-Boot mailing list