diff options
author | Michal Simek <michal.simek@xilinx.com> | 2017-11-10 15:01:10 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-11-29 10:02:40 +0300 |
commit | 29fb5703781dd60cd664989d6fe62da59cf42820 (patch) | |
tree | 6c05b592a37c6f5889c91011b63ff4822450d0ad /board/xilinx/zynq | |
parent | d28dc3d3dc31e45693e93601bede700f9e28211f (diff) | |
download | u-boot-29fb5703781dd60cd664989d6fe62da59cf42820.tar.xz |
arm: zynq: Show information about silicon version
Show information about silicon in bootlog.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/zynq')
-rw-r--r-- | board/xilinx/zynq/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 871e9dcba0..e59038106a 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -11,6 +11,7 @@ #include <zynqpl.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> +#include <asm/arch/ps7_init_gpl.h> DECLARE_GLOBAL_DATA_PTR; @@ -111,7 +112,15 @@ int board_late_init(void) #ifdef CONFIG_DISPLAY_BOARDINFO int checkboard(void) { + u32 version = zynq_get_silicon_version(); + + version <<= 1; + if (version > (PCW_SILICON_VERSION_3 << 1)) + version += 1; + puts("Board: Xilinx Zynq\n"); + printf("Silicon: v%d.%d\n", version >> 1, version & 1); + return 0; } #endif |