diff options
Diffstat (limited to 'arch/sh/mm/Kconfig')
-rw-r--r-- | arch/sh/mm/Kconfig | 19 |
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 | # |
4 | config CPU_SH2 | 4 | config CPU_SH2 |
5 | select SH_WRITETHROUGH if !CPU_SH2A | ||
6 | bool | 5 | bool |
7 | 6 | ||
8 | config CPU_SH2A | 7 | config 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 | ||
417 | config SH_WRITETHROUGH | 416 | choice |
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 | |||
421 | config CACHE_WRITEBACK | ||
422 | bool "Write-back" | ||
423 | depends on CPU_SH2A || CPU_SH3 || CPU_SH4 | ||
424 | |||
425 | config 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 | ||
437 | config CACHE_OFF | ||
438 | bool "Off" | ||
439 | |||
440 | endchoice | ||
441 | |||
429 | endmenu | 442 | endmenu |