diff options
| author | Michal Simek <[email protected]> | 2025-11-27 09:28:46 +0100 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2025-12-19 08:25:27 +0100 |
| commit | 29427fdf7198953f361ce6535b67272e3645d53b (patch) | |
| tree | 5224726c850d594afed4ff4c06a0567ca86a8720 /drivers/firmware | |
| parent | b6391d1d9b3d04c1986b3ce7951528f8fde76bbd (diff) | |
arm64: versal2: Read and show multiboot value
SOC can boot from different boot medias and also different offsets that's
why by default show multiboot value to be aware which image system is
booting out of. It is especially useful for systems with A/B update
enabled.
Also limit zynqmp_pm_get_pmc_multi_boot_reg() usage only for Versal and
Versal Gen 2.
Signed-off-by: Michal Simek <[email protected]>
Link: https://lore.kernel.org/r/fd7564ce2f51d965c273e939e98de01beb92e6f5.1764232124.git.michal.simek@amd.com
Diffstat (limited to 'drivers/firmware')
| -rw-r--r-- | drivers/firmware/firmware-zynqmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c index 2ef499bf408..f8a9945c1da 100644 --- a/drivers/firmware/firmware-zynqmp.c +++ b/drivers/firmware/firmware-zynqmp.c @@ -248,6 +248,7 @@ u32 zynqmp_pm_get_bootmode_reg(void) return ret_payload[1]; } +#if defined(CONFIG_ARCH_VERSAL) || defined(CONFIG_ARCH_VERSAL2) u32 zynqmp_pm_get_pmc_multi_boot_reg(void) { int ret; @@ -271,6 +272,7 @@ u32 zynqmp_pm_get_pmc_multi_boot_reg(void) return ret_payload[1]; } +#endif int zynqmp_pm_feature(const u32 api_id) { |
