summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichal Simek <[email protected]>2026-06-23 14:53:43 +0200
committerMichal Simek <[email protected]>2026-07-08 08:55:52 +0200
commitbbc71f8c28c11fc3fca44371c347b000500509f2 (patch)
treee10e7ca416939b68a3e594da47bf2c7f1de27997 /arch
parentd18ebbf33950d33d2292bd26b597493b66a2a991 (diff)
arm64: versal-net: Add mmc_get_env_dev() and deduplicate MMC handling
The SD and eMMC cases in boot_targets_setup() duplicated the MMC device lookup, and versal-net relied on the weak mmc_get_env_dev() default instead of selecting the device matching the boot mode (unlike versal and zynqmp). Factor the lookup into mmc_get_bootseq(), mirroring spi_get_bootseq(): it maps the boot mode to the MMC node and returns the device sequence, optionally handing back the mode banner so only boot_targets_setup() prints it. mmc_get_env_dev() is now provided as a thin wrapper, and the SD/eMMC cases call the helper instead of open-coding the lookups. The local udevice pointer in boot_targets_setup() is no longer needed. Signed-off-by: Michal Simek <[email protected]> Link: https://patch.msgid.link/7750a79c17146c66adeb83ad6d1bfa78b22ec8fa.1782219202.git.michal.simek@amd.com
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions