aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/Kconfig
diff options
context:
space:
mode:
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