sh: Wire up URAM node on SH7785.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 21 Sep 2007 02:34:31 +0000 (11:34 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 21 Sep 2007 02:57:55 +0000 (11:57 +0900)
Add SH7785 URAM as node 1, follows the SH-X3 change.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
arch/sh/mm/Kconfig

index 486dabe4d27294b8ca649671ae934621d3e377d9..267114d4127ca333b116997dace83140f125839d 100644 (file)
@@ -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);
+}
index 96775ff03703694bf4860cf713decda0da3e06c7..5aaf6248e0aab6c2398dde10cc7909887c030a3f 100644 (file)
@@ -181,6 +181,8 @@ config CPU_SUBTYPE_SH7785
        bool "Support SH7785 processor"
        select CPU_SH4A
        select CPU_SHX2
+       select ARCH_SPARSEMEM_ENABLE
+       select SYS_SUPPORTS_NUMA
 
 config CPU_SUBTYPE_SHX3
        bool "Support SH-X3 processor"