[PATCH 4/4] MIPS: dlink-dir-320: use mips_add_ram0()

Antony Pavlov antonynpavlov at gmail.com
Sat Jan 26 11:52:40 EST 2013


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 arch/mips/boards/dlink-dir-320/Makefile |    1 +
 arch/mips/boards/dlink-dir-320/board.c  |   12 ++++++++++++
 2 files changed, 13 insertions(+)
 create mode 100644 arch/mips/boards/dlink-dir-320/board.c

diff --git a/arch/mips/boards/dlink-dir-320/Makefile b/arch/mips/boards/dlink-dir-320/Makefile
index ff1a655..9e14763 100644
--- a/arch/mips/boards/dlink-dir-320/Makefile
+++ b/arch/mips/boards/dlink-dir-320/Makefile
@@ -1 +1,2 @@
+obj-y += board.o
 obj-$(CONFIG_DRIVER_SERIAL_NS16550) += serial.o
diff --git a/arch/mips/boards/dlink-dir-320/board.c b/arch/mips/boards/dlink-dir-320/board.c
new file mode 100644
index 0000000..3eed6f0
--- /dev/null
+++ b/arch/mips/boards/dlink-dir-320/board.c
@@ -0,0 +1,12 @@
+#include <common.h>
+#include <init.h>
+#include <sizes.h>
+#include <asm/memory.h>
+
+static int mem_init(void)
+{
+	mips_add_ram0(SZ_32M);
+
+	return 0;
+}
+mem_initcall(mem_init);
-- 
1.7.10.4




More information about the barebox mailing list