aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-09-21 11:34:31 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-09-21 11:57:55 +0900
commitdb2504966ceb9f08557b6ea3ab7e367016fcaba9 (patch)
tree9fa8d6b4028720e25c3b42fb359d944981a68d45 /arch/sh/kernel
parentsh: se7206: update defconfig. (diff)
downloadlinux-dev-db2504966ceb9f08557b6ea3ab7e367016fcaba9.tar.xz
linux-dev-db2504966ceb9f08557b6ea3ab7e367016fcaba9.zip
sh: Wire up URAM node on SH7785.
Add SH7785 URAM as node 1, follows the SH-X3 change. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-sh7785.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c
index 486dabe4d272..267114d4127c 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c
@@ -11,6 +11,8 @@
#include <linux/init.h>
#include <linux/serial.h>
#include <linux/io.h>
+#include <linux/mm.h>
+#include <asm/mmzone.h>
#include <asm/sci.h>
static struct plat_sci_port sci_platform_data[] = {
@@ -349,3 +351,9 @@ void __init plat_irq_setup_pins(int mode)
BUG();
}
}
+
+void __init plat_mem_setup(void)
+{
+ /* Register the URAM space as Node 1 */
+ setup_bootmem_node(1, 0x055f0000, 0x05610000);
+}