diff options
author | Greg Ungerer <gerg@uclinux.org> | 2010-11-09 01:00:17 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-01-05 00:19:20 -0500 |
commit | 4a5bae416562a8224707a1ff30e83ddab1474fb3 (patch) | |
tree | e827800effdcb4d96a5042aa5540fd5553881775 /arch/m68knommu/Kconfig | |
parent | 0ef6c9b8f7bf62ea05be5b26ee14b18a116b0c2a (diff) |
m68knommu: support ColdFire caches that do copyback and write-through
The version 3 and version 4 ColdFire cache controllers support both
write-through and copy-back modes on the data cache. Allow for Kconfig
time configuration of this, and set the cache mode appropriately.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68knommu/Kconfig')
-rw-r--r-- | arch/m68knommu/Kconfig | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/m68knommu/Kconfig b/arch/m68knommu/Kconfig index 61c29081b998..89b12237e1ed 100644 --- a/arch/m68knommu/Kconfig +++ b/arch/m68knommu/Kconfig | |||
@@ -82,6 +82,9 @@ config COLDFIRE_SW_A7 | |||
82 | config HAVE_CACHE_SPLIT | 82 | config HAVE_CACHE_SPLIT |
83 | bool | 83 | bool |
84 | 84 | ||
85 | config HAVE_CACHE_CB | ||
86 | bool | ||
87 | |||
85 | source "init/Kconfig" | 88 | source "init/Kconfig" |
86 | 89 | ||
87 | source "kernel/Kconfig.freezer" | 90 | source "kernel/Kconfig.freezer" |
@@ -172,27 +175,32 @@ config M528x | |||
172 | config M5307 | 175 | config M5307 |
173 | bool "MCF5307" | 176 | bool "MCF5307" |
174 | select COLDFIRE_SW_A7 | 177 | select COLDFIRE_SW_A7 |
178 | select HAVE_CACHE_CB | ||
175 | help | 179 | help |
176 | Motorola ColdFire 5307 processor support. | 180 | Motorola ColdFire 5307 processor support. |
177 | 181 | ||
178 | config M532x | 182 | config M532x |
179 | bool "MCF532x" | 183 | bool "MCF532x" |
184 | select HAVE_CACHE_CB | ||
180 | help | 185 | help |
181 | Freescale (Motorola) ColdFire 532x processor support. | 186 | Freescale (Motorola) ColdFire 532x processor support. |
182 | 187 | ||
183 | config M5407 | 188 | config M5407 |
184 | bool "MCF5407" | 189 | bool "MCF5407" |
185 | select COLDFIRE_SW_A7 | 190 | select COLDFIRE_SW_A7 |
191 | select HAVE_CACHE_CB | ||
186 | help | 192 | help |
187 | Motorola ColdFire 5407 processor support. | 193 | Motorola ColdFire 5407 processor support. |
188 | 194 | ||
189 | config M547x | 195 | config M547x |
190 | bool "MCF547x" | 196 | bool "MCF547x" |
197 | select HAVE_CACHE_CB | ||
191 | help | 198 | help |
192 | Freescale ColdFire 5470/5471/5472/5473/5474/5475 processor support. | 199 | Freescale ColdFire 5470/5471/5472/5473/5474/5475 processor support. |
193 | 200 | ||
194 | config M548x | 201 | config M548x |
195 | bool "MCF548x" | 202 | bool "MCF548x" |
203 | select HAVE_CACHE_CB | ||
196 | help | 204 | help |
197 | Freescale ColdFire 5480/5481/5482/5483/5484/5485 processor support. | 205 | Freescale ColdFire 5480/5481/5482/5483/5484/5485 processor support. |
198 | 206 | ||
@@ -279,7 +287,23 @@ config CACHE_BOTH | |||
279 | Split the ColdFire CPU cache, and use half as an instruction cache | 287 | Split the ColdFire CPU cache, and use half as an instruction cache |
280 | and half as a data cache. | 288 | and half as a data cache. |
281 | endchoice | 289 | endchoice |
290 | endif | ||
291 | |||
292 | if HAVE_CACHE_CB | ||
293 | choice | ||
294 | prompt "Data cache mode" | ||
295 | default CACHE_WRITETHRU | ||
282 | 296 | ||
297 | config CACHE_WRITETHRU | ||
298 | bool "Write-through" | ||
299 | help | ||
300 | The ColdFire CPU cache is set into Write-through mode. | ||
301 | |||
302 | config CACHE_COPYBACK | ||
303 | bool "Copy-back" | ||
304 | help | ||
305 | The ColdFire CPU cache is set into Copy-back mode. | ||
306 | endchoice | ||
283 | endif | 307 | endif |
284 | 308 | ||
285 | comment "Platform" | 309 | comment "Platform" |