[U-Boot] [PATCH 5/5] MIPS: Malta: convert to generic board

Paul Burton paul.burton at imgtec.com
Fri Apr 4 13:20:27 CEST 2014


This patch converts the MIPS Malta development board to make use of the
generic board code now that it is supported on MIPS.

Signed-off-by: Paul Burton <paul.burton at imgtec.com>
---
 board/imgtec/malta/malta.c | 9 ++++-----
 include/configs/malta.h    | 3 +++
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/board/imgtec/malta/malta.c b/board/imgtec/malta/malta.c
index d363e49..0f16b74 100644
--- a/board/imgtec/malta/malta.c
+++ b/board/imgtec/malta/malta.c
@@ -19,6 +19,8 @@
 
 #include "superio.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 enum core_card {
 	CORE_UNKNOWN,
 	CORE_LV,
@@ -82,11 +84,6 @@ static enum sys_con malta_sys_con(void)
 	}
 }
 
-phys_size_t initdram(int board_type)
-{
-	return CONFIG_SYS_MEM_SIZE;
-}
-
 int checkboard(void)
 {
 	enum core_card core;
@@ -129,6 +126,8 @@ int board_early_init_f(void)
 {
 	void *io_base;
 
+	gd->ram_size = CONFIG_SYS_MEM_SIZE;
+
 	/* choose correct PCI I/O base */
 	switch (malta_sys_con()) {
 	case SYSCON_GT64120:
diff --git a/include/configs/malta.h b/include/configs/malta.h
index cc574ed..a29b86b 100644
--- a/include/configs/malta.h
+++ b/include/configs/malta.h
@@ -14,6 +14,9 @@
  * System configuration
  */
 #define CONFIG_MALTA
+#define CONFIG_SYS_GENERIC_BOARD
+#define CONFIG_BOARD_EARLY_INIT_F
+#define CONFIG_DISPLAY_BOARDINFO
 
 #define CONFIG_MEMSIZE_IN_BYTES
 
-- 
1.8.5.3



More information about the U-Boot mailing list