diff options
| author | Suraj Kakade <[email protected]> | 2026-06-10 16:35:31 +0530 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2026-07-08 08:55:50 +0200 |
| commit | d6e7db8f11fde6d79c5e9b5a41ba8a9625b113a8 (patch) | |
| tree | 03141ac9943a0cd5586de744941a41f7ec6d7514 /include/linux/mfd | |
| parent | 0659f97f1879a4987503494925a153c8c7ad9173 (diff) | |
amd: versal2: detect spi env bus from boot mode
Add spi_get_env_dev() to dynamically detect the correct SPI
bus based on the actual boot mode at runtime. This ensures
environment variables are always loaded from the correct SPI
flash controller regardless of the bus numbering.
For example, on some Versal Gen 2 boards, SPI is disabled in DTS
leaving bus 0 empty in DM. Only QSPI is enabled at bus 1. The
default CONFIG_ENV_SPI_BUS=0 causes U-Boot to search for environment
at bus 0 which does not exist, triggering the warning
"spi_flash_probe_bus_cs() failed, using default environment".
Signed-off-by: Suraj Kakade <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'include/linux/mfd')
0 files changed, 0 insertions, 0 deletions
