diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-06-11 02:32:07 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-06-11 02:32:07 -0400 |
commit | 357d59469c1179c30b8c425aba302346fac3594e (patch) | |
tree | 6e27fcd85967ad06072ac84788ac891cbcc10235 /arch/sh/mm | |
parent | 54039591cee40ef1f440f1245ed066c3e7d54a9a (diff) |
sh: Tidy up dependencies for SH-2 build.
SH-2 can presently get in to some pretty bogus states, so
we tidy up the dependencies a bit and get it all building
again.
This gets us a bit closer to a functional allyesconfig
and allmodconfig, though there are still a few things to
fix up.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/Kconfig | 16 | ||||
-rw-r--r-- | arch/sh/mm/init.c | 2 |
2 files changed, 6 insertions, 12 deletions
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index b013a05fbc51..58bf6225d913 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig | |||
@@ -48,6 +48,7 @@ choice | |||
48 | config CPU_SUBTYPE_SH7619 | 48 | config CPU_SUBTYPE_SH7619 |
49 | bool "Support SH7619 processor" | 49 | bool "Support SH7619 processor" |
50 | select CPU_SH2 | 50 | select CPU_SH2 |
51 | select CPU_HAS_IPR_IRQ | ||
51 | 52 | ||
52 | # SH-2A Processor Support | 53 | # SH-2A Processor Support |
53 | 54 | ||
@@ -208,6 +209,7 @@ config CPU_SUBTYPE_SH7722 | |||
208 | select CPU_SHX2 | 209 | select CPU_SHX2 |
209 | select CPU_HAS_IPR_IRQ | 210 | select CPU_HAS_IPR_IRQ |
210 | select ARCH_SPARSEMEM_ENABLE | 211 | select ARCH_SPARSEMEM_ENABLE |
212 | select SYS_SUPPORTS_NUMA | ||
211 | 213 | ||
212 | endchoice | 214 | endchoice |
213 | 215 | ||
@@ -292,7 +294,7 @@ config VSYSCALL | |||
292 | 294 | ||
293 | config NUMA | 295 | config NUMA |
294 | bool "Non Uniform Memory Access (NUMA) Support" | 296 | bool "Non Uniform Memory Access (NUMA) Support" |
295 | depends on MMU && SPARSEMEM && EXPERIMENTAL | 297 | depends on MMU && SYS_SUPPORTS_NUMA && EXPERIMENTAL |
296 | default n | 298 | default n |
297 | help | 299 | help |
298 | Some SH systems have many various memories scattered around | 300 | Some SH systems have many various memories scattered around |
@@ -308,6 +310,7 @@ config NODES_SHIFT | |||
308 | 310 | ||
309 | config ARCH_FLATMEM_ENABLE | 311 | config ARCH_FLATMEM_ENABLE |
310 | def_bool y | 312 | def_bool y |
313 | depends on !NUMA | ||
311 | 314 | ||
312 | config ARCH_SPARSEMEM_ENABLE | 315 | config ARCH_SPARSEMEM_ENABLE |
313 | def_bool y | 316 | def_bool y |
@@ -419,15 +422,4 @@ config SH_WRITETHROUGH | |||
419 | 422 | ||
420 | If unsure, say N. | 423 | If unsure, say N. |
421 | 424 | ||
422 | config SH_OCRAM | ||
423 | bool "Operand Cache RAM (OCRAM) support" | ||
424 | help | ||
425 | Selecting this option will automatically tear down the number of | ||
426 | sets in the dcache by half, which in turn exposes a memory range. | ||
427 | |||
428 | The addresses for the OC RAM base will vary according to the | ||
429 | processor version. Consult vendor documentation for specifics. | ||
430 | |||
431 | If unsure, say N. | ||
432 | |||
433 | endmenu | 425 | endmenu |
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index 40d4e798e7fb..82b68c789a5f 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -300,6 +300,7 @@ int remove_memory(u64 start, u64 size) | |||
300 | } | 300 | } |
301 | EXPORT_SYMBOL_GPL(remove_memory); | 301 | EXPORT_SYMBOL_GPL(remove_memory); |
302 | 302 | ||
303 | #ifdef CONFIG_NUMA | ||
303 | int memory_add_physaddr_to_nid(u64 addr) | 304 | int memory_add_physaddr_to_nid(u64 addr) |
304 | { | 305 | { |
305 | /* Node 0 for now.. */ | 306 | /* Node 0 for now.. */ |
@@ -307,3 +308,4 @@ int memory_add_physaddr_to_nid(u64 addr) | |||
307 | } | 308 | } |
308 | EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); | 309 | EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); |
309 | #endif | 310 | #endif |
311 | #endif | ||