[U-Boot] [PATCH 07/12] ARM: zynq: Show board information by default

Michal Simek michal.simek at xilinx.com
Wed Jan 14 10:17:57 CET 2015


Show board information in bootlog and enable it by default.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 board/xilinx/zynq/board.c     | 8 ++++++++
 include/configs/zynq-common.h | 1 +
 2 files changed, 9 insertions(+)

diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index 258632e52b0b..e13105654514 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -87,6 +87,14 @@ int board_late_init(void)
 	return 0;
 }

+#ifdef CONFIG_DISPLAY_BOARDINFO
+int checkboard(void)
+{
+	puts("Board:\tXilinx Zynq\n");
+	return 0;
+}
+#endif
+
 int board_eth_init(bd_t *bis)
 {
 	u32 ret = 0;
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 87b4fffeb9fb..3a62ec75dbc9 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -181,6 +181,7 @@
 #define CONFIG_CMDLINE_EDITING
 #define CONFIG_AUTO_COMPLETE
 #define CONFIG_BOARD_LATE_INIT
+#define CONFIG_DISPLAY_BOARDINFO
 #define CONFIG_SYS_LONGHELP
 #define CONFIG_CLOCKS
 #define CONFIG_CMD_CLK
--
1.8.2.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150114/69b6fae0/attachment.pgp>


More information about the U-Boot mailing list