aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/Kconfig
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-07-31 04:07:28 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-09-20 22:57:46 -0400
commite7bd34a15b85655f24d1b45edbe3bdfebf9d027e (patch)
tree051647273266582fe95dcc5cf008534c264be5ae /arch/sh/mm/Kconfig
parentac919986d7dfc5d1d9f5585521307f222a8ebeaf (diff)
sh: Support explicit L1 cache disabling.
This reworks the cache mode configuration in Kconfig, and allows for explicit selection of write-back/write-through/off configurations. All of the cache flushing routines are optimized away for the off case. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/Kconfig')
-rw-r--r--arch/sh/mm/Kconfig19
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig
index 093d491424fd..c2777555003e 100644
--- a/arch/sh/mm/Kconfig
+++ b/arch/sh/mm/Kconfig
@@ -2,7 +2,6 @@
2# Processor families 2# Processor families
3# 3#
4config CPU_SH2 4config CPU_SH2
5 select SH_WRITETHROUGH if !CPU_SH2A
6 bool 5 bool
7 6
8config CPU_SH2A 7config CPU_SH2A
@@ -414,8 +413,17 @@ config SH_DIRECT_MAPPED
414 Turn this option off for platforms that do not have a direct-mapped 413 Turn this option off for platforms that do not have a direct-mapped
415 cache, and you have no need to run the caches in such a configuration. 414 cache, and you have no need to run the caches in such a configuration.
416 415
417config SH_WRITETHROUGH 416choice
418 bool "Use write-through caching" 417 prompt "Cache mode"
418 default CACHE_WRITEBACK if CPU_SH2A || CPU_SH3 || CPU_SH4
419 default CACHE_WRITETHROUGH if (CPU_SH2 && !CPU_SH2A)
420
421config CACHE_WRITEBACK
422 bool "Write-back"
423 depends on CPU_SH2A || CPU_SH3 || CPU_SH4
424
425config CACHE_WRITETHROUGH
426 bool "Write-through"
419 help 427 help
420 Selecting this option will configure the caches in write-through 428 Selecting this option will configure the caches in write-through
421 mode, as opposed to the default write-back configuration. 429 mode, as opposed to the default write-back configuration.
@@ -426,4 +434,9 @@ config SH_WRITETHROUGH
426 434
427 If unsure, say N. 435 If unsure, say N.
428 436
437config CACHE_OFF
438 bool "Off"
439
440endchoice
441
429endmenu 442endmenu