[U-Boot] [PATCH 1/2] arm: zynq: Do not show information from checkboard twice

There is no reason to show information about board twice. Remove boardinfo late calls.
Signed-off-by: Michal Simek michal.simek@xilinx.com ---
include/configs/zynq-common.h | 3 --- 1 file changed, 3 deletions(-)
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index e6aab081e440..7247c9030755 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -291,9 +291,6 @@ /* FIT support */ #define CONFIG_IMAGE_FORMAT_LEGACY /* enable also legacy image format */
-/* FDT support */ -#define CONFIG_DISPLAY_BOARDINFO_LATE - /* Extend size of kernel image for uncompression */ #define CONFIG_SYS_BOOTM_LEN (60 * 1024 * 1024)

Show information about silicon in bootlog.
Signed-off-by: Michal Simek michal.simek@xilinx.com ---
board/xilinx/zynq/board.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 871e9dcba07f..e59038106aa6 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
participants (1)
-
Michal Simek