summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2013-01-26 20:52:39 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-27 22:41:27 +0100
commit73d54d0dc67cd63023aa04345eefab098994a434 (patch)
tree0d0fd947f88e2548c07848ec298bcd2e6326e890 /arch
parent7eb6159f18c795e9e98ac8f31a2c7b3af34c3021 (diff)
downloadbarebox-73d54d0dc67cd63023aa04345eefab098994a434.tar.gz
barebox-73d54d0dc67cd63023aa04345eefab098994a434.tar.xz
MIPS: rzx50: use mips_add_ram0()
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/boards/rzx50/Makefile1
-rw-r--r--arch/mips/boards/rzx50/board.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/boards/rzx50/Makefile b/arch/mips/boards/rzx50/Makefile
index ff1a655afe..9e14763111 100644
--- a/arch/mips/boards/rzx50/Makefile
+++ b/arch/mips/boards/rzx50/Makefile
@@ -1 +1,2 @@
+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
new file mode 100644
index 0000000000..9e655aba50
--- /dev/null
+++ b/arch/mips/boards/rzx50/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_64M);
+
+ return 0;
+}
+mem_initcall(mem_init);