mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
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>
This commit is contained in:
parent
aa5fb3de23
commit
afb08a8634
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue