Skip to content

Add support for dynamic overriding of default SF bus

Vaishnav Achath u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

* drop unnecessary spl_spi_boot_cs() override for J721E, suggested by Pratyush Yadav

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2common: spl: spl_spi: add support for dynamic override of sf buscommon/spl/spl_spi.c include/spl.h+29 -31 reply
2/2arm: k3: j721e: add dynamic sf bus override support for j721earch/arm/mach-k3/j721e_init.c arch/arm/mach-k3/sysfw-loader.c+13 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHeiko SchocherPratyush Yadav
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Add support for dynamic overriding of default 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.

This series adds support for choosing the flash device based on the selected boot device thus allowing platforms to override the SF_BUS and SF_CS to load from the desired flash.

Changes tested on J721E for OSPI and QSPI boot.

V1->V2:
* drop unnecessary Kconfig option for SF bus override, suggested by Heiko Schocher.
V2->V3
* drop unnecessary spl_spi_boot_cs() override for J721E, suggested by Pratyush Yadav

Vaishnav Achath (2):
common: spl: spl_spi: add support for dynamic override of sf bus
arm: k3: j721e: add dynamic sf bus override support for j721e

 arch/arm/mach-k3/j721e_init.c   | 11 +++++++++++
 arch/arm/mach-k3/sysfw-loader.c |  4 ++--
 common/spl/spl_spi.c            | 16 +++++++++++++---
 include/spl.h                   | 16 ++++++++++++++++
 4 files changed, 42 insertions(+), 5 deletions(-)
Signature · 1 line
2.17.1