[PATCH] MIPS: malta: register memory bank

Antony Pavlov antonynpavlov at gmail.com
Fri Jul 6 06:34:02 EDT 2012


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 arch/mips/boards/qemu-malta/init.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/mips/boards/qemu-malta/init.c b/arch/mips/boards/qemu-malta/init.c
index 2a6eadb..0efc92a 100644
--- a/arch/mips/boards/qemu-malta/init.c
+++ b/arch/mips/boards/qemu-malta/init.c
@@ -23,6 +23,7 @@
 #include <types.h>
 #include <driver.h>
 #include <init.h>
+#include <memory.h>
 #include <ns16550.h>
 #include <mach/hardware.h>
 #include <io.h>
@@ -30,6 +31,14 @@
 #include <sizes.h>
 #include <asm/common.h>
 
+static int malta_mem_init(void)
+{
+	barebox_add_memory_bank("ram0", 0xa0000000, SZ_256M);
+
+	return 0;
+}
+mem_initcall(malta_mem_init);
+
 static int malta_devices_init(void)
 {
 	add_cfi_flash_device(0, 0x1e000000, SZ_4M, 0);
-- 
1.7.10




More information about the barebox mailing list