diff options
| author | Michal Simek <[email protected]> | 2026-06-23 14:53:39 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2026-07-08 08:55:51 +0200 |
| commit | fb3801be128c9d0bf34a1797141a972b0759cb25 (patch) | |
| tree | af4c8b7a3a43d35f91f418b229108b13703c30c0 /include/linux | |
| parent | 4b62fc1b7e9e6ead90bbc5a5c9e82b8ee03fbfef (diff) | |
arm64: versal-net: Deduplicate SPI bootmode handling
spi_get_env_dev() and boot_targets_setup() both decoded the QSPI/OSPI
boot modes into a SPI device sequence number with identical
uclass_get_device_by_name() lookups.
Factor that logic into a single spi_get_bootseq() helper that takes the
bootmode and returns the device sequence. spi_get_env_dev() becomes a
thin wrapper around it, and boot_targets_setup() calls it for the
QSPI/OSPI cases instead of open-coding the lookups. Passing the bootmode
in avoids reading the bootmode register twice in boot_targets_setup().
No functional change.
Signed-off-by: Michal Simek <[email protected]>
Link: https://patch.msgid.link/f98037220a20c441f0ea964f94647948bc035997.1782219202.git.michal.simek@amd.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
