mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Dmitry Smagin <dmitry.s.smagin@gmail.com>
To: barebox@lists.infradead.org
Cc: Dmitry Smagin <dmitry.s.smagin@gmail.com>
Subject: [PATCH 2/3] MIPS: rxz50: add initial devicetree support
Date: Wed, 18 Sep 2013 09:20:32 +0400	[thread overview]
Message-ID: <1379481633-24534-3-git-send-email-dmitry.s.smagin@gmail.com> (raw)
In-Reply-To: <1379481633-24534-1-git-send-email-dmitry.s.smagin@gmail.com>

Memory initialization is moved from board.c to rzx50.dts file.

Signed-off-by: Dmitry Smagin <dmitry.s.smagin@gmail.com>
---
 arch/mips/boards/rzx50/Makefile |  1 -
 arch/mips/boards/rzx50/board.c  | 12 ------------
 arch/mips/boards/rzx50/serial.c |  1 -
 arch/mips/dts/rzx50.dts         | 12 ++++++++++++
 4 files changed, 12 insertions(+), 14 deletions(-)
 delete mode 100644 arch/mips/boards/rzx50/board.c
 create mode 100644 arch/mips/dts/rzx50.dts

diff --git a/arch/mips/boards/rzx50/Makefile b/arch/mips/boards/rzx50/Makefile
index 9e14763..ff1a655 100644
--- a/arch/mips/boards/rzx50/Makefile
+++ b/arch/mips/boards/rzx50/Makefile
@@ -1,2 +1 @@
-obj-y += board.o
 obj-$(CONFIG_DRIVER_SERIAL_NS16550) += serial.o
diff --git a/arch/mips/boards/rzx50/board.c b/arch/mips/boards/rzx50/board.c
deleted file mode 100644
index 9e655ab..0000000
--- a/arch/mips/boards/rzx50/board.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <common.h>
-#include <init.h>
-#include <sizes.h>
-#include <asm/memory.h>
-
-static int mem_init(void)
-{
-	mips_add_ram0(SZ_64M);
-
-	return 0;
-}
-mem_initcall(mem_init);
diff --git a/arch/mips/boards/rzx50/serial.c b/arch/mips/boards/rzx50/serial.c
index 0038c1d..566356a 100644
--- a/arch/mips/boards/rzx50/serial.c
+++ b/arch/mips/boards/rzx50/serial.c
@@ -22,7 +22,6 @@
 
 static int rzx50_console_init(void)
 {
-	barebox_set_model("Ritmix RZX-50");
 	barebox_set_hostname("rzx50");
 
 	/* Register the serial port */
diff --git a/arch/mips/dts/rzx50.dts b/arch/mips/dts/rzx50.dts
new file mode 100644
index 0000000..69320dd
--- /dev/null
+++ b/arch/mips/dts/rzx50.dts
@@ -0,0 +1,12 @@
+/dts-v1/;
+
+/include/ "skeleton.dtsi"
+
+/ {
+	model = "Ritmix RZX-50";
+	compatible = "ritmix,rzx50";
+
+	memory {
+		reg = <0x00000000 0x4000000>;
+	};
+};
-- 
1.8.4.rc3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2013-09-18  5:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-18  5:20 [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Dmitry Smagin
2013-09-18  5:20 ` [PATCH 1/3] Add missing dependency ENV_HANDLING for OF_BAREBOX_DRIVER option Dmitry Smagin
2013-09-18  5:20 ` Dmitry Smagin [this message]
2013-09-18  5:20 ` [PATCH 3/3] MIPS: rzx50_defconfig: enable devicetree Dmitry Smagin
2013-09-19  6:30 ` [PATCH 0/3] Enable devicetree for Ritmix RZX-50 board Antony Pavlov
2013-09-19  6:54 ` Sascha Hauer

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=1379481633-24534-3-git-send-email-dmitry.s.smagin@gmail.com \
    --to=dmitry.s.smagin@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox