aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68knommu/Kconfig
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2010-11-09 01:00:17 -0500
committerGreg Ungerer <gerg@uclinux.org>2011-01-05 00:19:20 -0500
commit4a5bae416562a8224707a1ff30e83ddab1474fb3 (patch)
treee827800effdcb4d96a5042aa5540fd5553881775 /arch/m68knommu/Kconfig
parent0ef6c9b8f7bf62ea05be5b26ee14b18a116b0c2a (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/Kconfig24
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
82config HAVE_CACHE_SPLIT 82config HAVE_CACHE_SPLIT
83 bool 83 bool
84 84
85config HAVE_CACHE_CB
86 bool
87
85source "init/Kconfig" 88source "init/Kconfig"
86 89
87source "kernel/Kconfig.freezer" 90source "kernel/Kconfig.freezer"
@@ -172,27 +175,32 @@ config M528x
172config M5307 175config 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
178config M532x 182config 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
183config M5407 188config 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
189config M547x 195config 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
194config M548x 201config 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.
281endchoice 289endchoice
290endif
291
292if HAVE_CACHE_CB
293choice
294 prompt "Data cache mode"
295 default CACHE_WRITETHRU
282 296
297config CACHE_WRITETHRU
298 bool "Write-through"
299 help
300 The ColdFire CPU cache is set into Write-through mode.
301
302config CACHE_COPYBACK
303 bool "Copy-back"
304 help
305 The ColdFire CPU cache is set into Copy-back mode.
306endchoice
283endif 307endif
284 308
285comment "Platform" 309comment "Platform"