diff options
Diffstat (limited to 'arch/mn10300/mm/Kconfig.cache')
-rw-r--r-- | arch/mn10300/mm/Kconfig.cache | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/mn10300/mm/Kconfig.cache b/arch/mn10300/mm/Kconfig.cache index 97adc06e7128..653254a34f88 100644 --- a/arch/mn10300/mm/Kconfig.cache +++ b/arch/mn10300/mm/Kconfig.cache | |||
@@ -22,12 +22,26 @@ choice | |||
22 | 22 | ||
23 | config MN10300_CACHE_WBACK | 23 | config MN10300_CACHE_WBACK |
24 | bool "Write-Back" | 24 | bool "Write-Back" |
25 | help | ||
26 | The dcache operates in delayed write-back mode. It must be manually | ||
27 | flushed if writes are made that subsequently need to be executed or | ||
28 | to be DMA'd by a device. | ||
25 | 29 | ||
26 | config MN10300_CACHE_WTHRU | 30 | config MN10300_CACHE_WTHRU |
27 | bool "Write-Through" | 31 | bool "Write-Through" |
32 | help | ||
33 | The dcache operates in immediate write-through mode. Writes are | ||
34 | committed to RAM immediately in addition to being stored in the | ||
35 | cache. This means that the written data is immediately available for | ||
36 | execution or DMA. | ||
37 | |||
38 | This is not available for use with an SMP kernel if cache flushing | ||
39 | and invalidation by automatic purge register is not selected. | ||
28 | 40 | ||
29 | config MN10300_CACHE_DISABLED | 41 | config MN10300_CACHE_DISABLED |
30 | bool "Disabled" | 42 | bool "Disabled" |
43 | help | ||
44 | The icache and dcache are disabled. | ||
31 | 45 | ||
32 | endchoice | 46 | endchoice |
33 | 47 | ||
@@ -64,3 +78,23 @@ config MN10300_CACHE_FLUSH_BY_TAG | |||
64 | 78 | ||
65 | config MN10300_CACHE_FLUSH_BY_REG | 79 | config MN10300_CACHE_FLUSH_BY_REG |
66 | def_bool y if MN10300_CACHE_MANAGE_BY_REG && MN10300_CACHE_WBACK | 80 | def_bool y if MN10300_CACHE_MANAGE_BY_REG && MN10300_CACHE_WBACK |
81 | |||
82 | |||
83 | config MN10300_HAS_CACHE_SNOOP | ||
84 | def_bool n | ||
85 | |||
86 | config MN10300_CACHE_SNOOP | ||
87 | bool "Use CPU Cache Snooping" | ||
88 | depends on MN10300_CACHE_ENABLED && MN10300_HAS_CACHE_SNOOP | ||
89 | default y | ||
90 | |||
91 | config MN10300_CACHE_FLUSH_ICACHE | ||
92 | def_bool y if MN10300_CACHE_WBACK && !MN10300_CACHE_SNOOP | ||
93 | help | ||
94 | Set if we need the dcache flushing before the icache is invalidated. | ||
95 | |||
96 | config MN10300_CACHE_INV_ICACHE | ||
97 | def_bool y if MN10300_CACHE_WTHRU && !MN10300_CACHE_SNOOP | ||
98 | help | ||
99 | Set if we need the icache to be invalidated, even if the dcache is in | ||
100 | write-through mode and doesn't need flushing. | ||