[PATCH 2/3] MIPS: rxz50: add initial devicetree support
Dmitry Smagin
dmitry.s.smagin at gmail.com
Wed Sep 18 01:20:32 EDT 2013
Memory initialization is moved from board.c to rzx50.dts file.
Signed-off-by: Dmitry Smagin <dmitry.s.smagin at 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
More information about the barebox
mailing list