diff options
author | Michal Simek <michal.simek@xilinx.com> | 2020-02-11 14:43:14 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-04-06 13:51:30 +0300 |
commit | c51430133718d5ac9c0983c0f9dd4714f02c6184 (patch) | |
tree | d6fcbde16c769143d17375c16cf692b5b142e385 /board | |
parent | 74bf17db394d49c7041ee01a277fcf8d99b9a514 (diff) | |
download | u-boot-c51430133718d5ac9c0983c0f9dd4714f02c6184.tar.xz |
arm64: zynqmp: Print multiboot register value in EL3
Multi boot register can be used for using different boot images and design
better boot strategy. Let EL3 SPL or U-Boot to read it and print it.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 8bdc67748e..ba1a126fbf 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -328,6 +328,17 @@ int board_early_init_f(void) return ret; } +static int multi_boot(void) +{ + u32 multiboot; + + multiboot = readl(&csu_base->multi_boot); + + printf("Multiboot:\t%x\n", multiboot); + + return 0; +} + int board_init(void) { struct udevice *dev; @@ -356,6 +367,9 @@ int board_init(void) } #endif + if (current_el() == 3) + multi_boot(); + return 0; } |