diff options
| author | Michal Simek <[email protected]> | 2026-06-23 14:53:28 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2026-07-08 08:55:51 +0200 |
| commit | 789a48719480095645cd9ac7b6447b473764f5a7 (patch) | |
| tree | c2da49a056f65f312fdc8f2bbd95379b9cb3e9df /include/linux | |
| parent | da4783f7835630141d684369518141d1b0e86fe1 (diff) | |
arm64: versal2: Move bootmode decoding out of board code
versal2_get_bootmode() lived in board code and accessed the CRP boot
mode register with a direct readl(). To keep generic board code free of
SoC register details and ready for firmware/SCMI based access, move the
whole function, including the alt-shift and mask decoding, into
arch/arm/mach-versal2 as a __weak default.
Board code now simply calls versal2_get_bootmode(). When a firmware
based implementation is available and tested it can provide a strong
definition that overrides the weak one at link time; until then only the
weak MMIO version is built.
Signed-off-by: Michal Simek <[email protected]>
Link: https://patch.msgid.link/f3274ec77218373bc0452f6795a3ad6016be0058.1782219202.git.michal.simek@amd.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
