[PATCH] xilinx: zynqmp: Add debug messages for boot mode
Michal Simek
monstr at monstr.eu
Mon Aug 23 08:53:04 CEST 2021
út 17. 8. 2021 v 9:08 odesílatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> Add debug messages to see HW boot mode and also alternative boot mode in
> logs directly.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
> board/xilinx/zynqmp/zynqmp.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
> index 27bb2b056c58..e43177ea4e48 100644
> --- a/board/xilinx/zynqmp/zynqmp.c
> +++ b/board/xilinx/zynqmp/zynqmp.c
> @@ -518,6 +518,9 @@ static u8 __maybe_unused zynqmp_get_bootmode(void)
> if (ret)
> return -EINVAL;
>
> + debug("HW boot mode: %x\n", reg & BOOT_MODES_MASK);
> + debug("ALT boot mode: %x\n", reg >> BOOT_MODE_ALT_SHIFT);
> +
> if (reg >> BOOT_MODE_ALT_SHIFT)
> reg >>= BOOT_MODE_ALT_SHIFT;
>
> --
> 2.32.0
>
Applied.
M
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
More information about the U-Boot
mailing list