aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2021-07-28 12:25:49 +0200
committerMichal Simek <michal.simek@xilinx.com>2021-08-26 08:08:11 +0200
commitafb08a86340872df3dfa1c918cd194f2e01c7b6c (patch)
tree04281a6fb4d09827733df0b170f9df0ff6f83052
parentaa5fb3de23dd05e6da3e3cf7fc20eea983a9dab9 (diff)
downloadu-boot-afb08a86340872df3dfa1c918cd194f2e01c7b6c.zip
u-boot-afb08a86340872df3dfa1c918cd194f2e01c7b6c.tar.gz
u-boot-afb08a86340872df3dfa1c918cd194f2e01c7b6c.tar.bz2
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 <michal.simek@xilinx.com>
-rw-r--r--board/xilinx/zynqmp/zynqmp.c3
1 files changed, 3 insertions, 0 deletions
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;