diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-09-20 22:34:31 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-20 22:57:55 -0400 |
commit | db2504966ceb9f08557b6ea3ab7e367016fcaba9 (patch) | |
tree | 9fa8d6b4028720e25c3b42fb359d944981a68d45 /arch/sh | |
parent | 0e01059c3db95b638aa0cc75be4b0e7a134fe904 (diff) |
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')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7785.c | 8 | ||||
-rw-r--r-- | arch/sh/mm/Kconfig | 2 |
2 files changed, 10 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 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | #include <linux/mm.h> | ||
15 | #include <asm/mmzone.h> | ||
14 | #include <asm/sci.h> | 16 | #include <asm/sci.h> |
15 | 17 | ||
16 | static struct plat_sci_port sci_platform_data[] = { | 18 | static struct plat_sci_port sci_platform_data[] = { |
@@ -349,3 +351,9 @@ void __init plat_irq_setup_pins(int mode) | |||
349 | BUG(); | 351 | BUG(); |
350 | } | 352 | } |
351 | } | 353 | } |
354 | |||
355 | void __init plat_mem_setup(void) | ||
356 | { | ||
357 | /* Register the URAM space as Node 1 */ | ||
358 | setup_bootmem_node(1, 0x055f0000, 0x05610000); | ||
359 | } | ||
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index 96775ff03703..5aaf6248e0aa 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -181,6 +181,8 @@ config CPU_SUBTYPE_SH7785 | |||
181 | bool "Support SH7785 processor" | 181 | bool "Support SH7785 processor" |
182 | select CPU_SH4A | 182 | select CPU_SH4A |
183 | select CPU_SHX2 | 183 | select CPU_SHX2 |
184 | select ARCH_SPARSEMEM_ENABLE | ||
185 | select SYS_SUPPORTS_NUMA | ||
184 | 186 | ||
185 | config CPU_SUBTYPE_SHX3 | 187 | config CPU_SUBTYPE_SHX3 |
186 | bool "Support SH-X3 processor" | 188 | bool "Support SH-X3 processor" |