[U-Boot] [PATCH] print true board names on socfpga

Pavel Machek pavel at denx.de
Wed Oct 8 23:59:11 CEST 2014


Make boards with Altera Socfpga print real board names.
    
Signed-off-by: Pavel Machek <pavel at denx.de>

---

This is against Marek's tree. Ignore the missing file for mainline.

diff --git a/board/altera/socfpga/socfpga_cyclone5.c b/board/altera/socfpga/socfpga_cyclone5.c
index 7661ac9..43307f5 100644
--- a/board/altera/socfpga/socfpga_cyclone5.c
+++ b/board/altera/socfpga/socfpga_cyclone5.c
@@ -17,7 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 int checkboard(void)
 {
-	puts("BOARD: Altera SoCFPGA Cyclone5 Board\n");
+	puts("BOARD: " CONFIG_BOARD_NAME "\n");
 	return 0;
 }
 
diff --git a/include/configs/mcvevk.h b/include/configs/mcvevk.h
index 09b1eb2..0c5d688 100644
--- a/include/configs/mcvevk.h
+++ b/include/configs/mcvevk.h
@@ -11,6 +11,8 @@
 #include "../../board/denx/mcvevk/iocsr_config.h"
 #include "../../board/denx/mcvevk/pll_config.h"
 
+#define CONFIG_BOARD_NAME "Denx MCVEVK Board"
+
 /* U-Boot Commands */
 #define CONFIG_SYS_NO_FLASH
 #ifndef MCVEVK_RECOVERY
diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h
index bee328c..2a42389 100644
--- a/include/configs/socfpga_cyclone5.h
+++ b/include/configs/socfpga_cyclone5.h
@@ -11,6 +11,8 @@
 #include "../../board/altera/socfpga/iocsr_config.h"
 #include "../../board/altera/socfpga/pll_config.h"
 
+#define CONFIG_BOARD_NAME "Altera SoCFPGA Cyclone5 Board"
+
 /* U-Boot Commands */
 #define CONFIG_SYS_NO_FLASH
 #include <config_cmd_default.h>
diff --git a/include/configs/wagabuibui.h b/include/configs/wagabuibui.h
index 458e1a1..c85bee4 100644
--- a/include/configs/wagabuibui.h
+++ b/include/configs/wagabuibui.h
@@ -11,6 +11,8 @@
 #include "../../board/motec/wagabuibui/iocsr_config.h"
 #include "../../board/motec/wagabuibui/pll_config.h"
 
+#define CONFIG_BOARD_NAME "Wagabuibui Board"
+
 /* U-Boot Commands */
 #define CONFIG_SYS_NO_FLASH
 #include <config_cmd_default.h>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


More information about the U-Boot mailing list