arm64: versal: RO multi_boot register in non JTAG bootmode
authorMichal Simek <michal.simek@amd.com>
Mon, 6 Jan 2025 09:20:40 +0000 (10:20 +0100)
committerMichal Simek <michal.simek@amd.com>
Tue, 14 Jan 2025 07:29:45 +0000 (08:29 +0100)
commitd1de34798a5b829f38357a4faa1a31f6f44ab83b
tree7b04371c761e9aaca25e557956bc72285ded47e9
parenta6ca9310ef0e929c57ad8873463cc483fc716e59
arm64: versal: RO multi_boot register in non JTAG bootmode

The main reason for this change is that upstream QEMU has no multiboot
register implemented that's why access to it fails which ends up in CI
failure for our target.
That's why in JTAG bootmode returns 0 which is correct behaviour because
multiboot register is not used in this mode and value should be ignored and
as a side effect it is also fixing CI/Qemu issue.

Also move versal_get_bootmode() to avoid function declaration.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/484b9cafc45e72308a1a29a3ab772020f96784cc.1736155238.git.michal.simek@amd.com
board/xilinx/versal/board.c