[U-Boot] [PATCH 11/12] arm: socfpga: Zap checkboard()

Marek Vasut marex at denx.de
Wed Dec 31 20:14:59 CET 2014


Since all boards now have a DT, instead of hard-coding the board
name into the U-Boot binary, read the board name from DT "model"
property.

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Chin Liang See <clsee at opensource.altera.com>
Cc: Dinh Nguyen <dinguyen at opensource.altera.com>
Cc: Pavel Machek <pavel at denx.de>
Cc: Stefan Roese <sr at denx.de>
Cc: Vince Bridgers <vbridger at opensource.altera.com>
---
 board/altera/socfpga/socfpga.c   | 16 ----------------
 include/configs/socfpga_common.h |  2 +-
 2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/board/altera/socfpga/socfpga.c b/board/altera/socfpga/socfpga.c
index a9c330d..2b2b63d 100644
--- a/board/altera/socfpga/socfpga.c
+++ b/board/altera/socfpga/socfpga.c
@@ -19,22 +19,6 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /*
- * Print Board information
- */
-int checkboard(void)
-{
-#ifdef CONFIG_TARGET_SOCFPGA_CYCLONE5
-	puts("BOARD: Altera SoCFPGA Cyclone5 Board\n");
-#endif
-
-#ifdef CONFIG_TARGET_SOCFPGA_ARRIA5
-	puts("BOARD: Altera SoCFPGA Arria5 Board\n");
-#endif
-
-	return 0;
-}
-
-/*
  * Initialization function which happen at early stage of c code
  */
 int board_early_init_f(void)
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 6b1f967..c2a4c72 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -19,7 +19,7 @@
  * High level configuration
  */
 #define CONFIG_DISPLAY_CPUINFO
-#define CONFIG_DISPLAY_BOARDINFO
+#define CONFIG_DISPLAY_BOARDINFO_LATE
 #define CONFIG_BOARD_EARLY_INIT_F
 #define CONFIG_ARCH_EARLY_INIT_R
 #define CONFIG_SYS_NO_FLASH
-- 
2.1.3



More information about the U-Boot mailing list