From: Michal Simek Date: Wed, 28 Jul 2021 10:25:49 +0000 (+0200) Subject: xilinx: zynqmp: Add debug messages for boot mode X-Git-Tag: v2021.10~41^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afb08a86340872df3dfa1c918cd194f2e01c7b6c;p=platform%2Fkernel%2Fu-boot.git xilinx: zynqmp: Add debug messages for boot mode Add debug messages to see HW boot mode and also alternative boot mode in logs directly. Signed-off-by: Michal Simek --- diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 27bb2b0..e43177e 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;