All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Burton <paul.burton@imgtec.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] MIPS: Malta: convert to generic board
Date: Fri, 4 Apr 2014 12:20:27 +0100	[thread overview]
Message-ID: <1396610427-55434-1-git-send-email-paul.burton@imgtec.com> (raw)
In-Reply-To: <1396610351-55344-1-git-send-email-paul.burton@imgtec.com>

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@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

  parent reply	other threads:[~2014-04-04 11:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-04 11:19 [U-Boot] [PATCH 0/5] MIPS Malta generic board conversion Paul Burton
2014-04-04 11:19 ` [U-Boot] [PATCH 1/5] MIPS: stub interrupt_init function Paul Burton
2014-04-04 11:19 ` [U-Boot] [PATCH 2/5] MIPS: move mips_io_port_base out of board.c Paul Burton
2014-04-04 11:19 ` [U-Boot] [PATCH 3/5] MIPS: define __init_end in u-boot.lds Paul Burton
2014-04-04 11:19 ` [U-Boot] [PATCH 4/5] MIPS: allow use of generic board Paul Burton
2014-04-04 11:20 ` Paul Burton [this message]
2014-04-06 18:58   ` [U-Boot] [PATCH 5/5] MIPS: Malta: convert to " Daniel Schwierzeck
2014-04-07  9:00     ` Paul Burton
2014-04-06 18:56 ` [U-Boot] [PATCH 0/5] MIPS Malta generic board conversion Daniel Schwierzeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1396610427-55434-1-git-send-email-paul.burton@imgtec.com \
    --to=paul.burton@imgtec.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.