diff options
author | Greg Ungerer <gerg@uclinux.org> | 2010-11-09 00:31:08 -0500 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-01-05 00:19:20 -0500 |
commit | 0ef6c9b8f7bf62ea05be5b26ee14b18a116b0c2a (patch) | |
tree | 01ffb12226fef2f4de5f3408e21fe64e19b5a522 /arch/m68knommu | |
parent | d475e3e4739ce465df740b51decbbea3b1b51823 (diff) |
m68knommu: support version 2 ColdFire split cache
The newer version 2 ColdFire CPU cores support a configurable cache
arrangement. The cache memory can be used as all instruction cache, all
data cache, or split in half for both instruction and data caching.
Support this setup via a Kconfig time menu that allows a kernel builder
to choose the arrangement they want to use.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68knommu')
-rw-r--r-- | arch/m68knommu/Kconfig | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/m68knommu/Kconfig b/arch/m68knommu/Kconfig index e6f482d18d05..61c29081b998 100644 --- a/arch/m68knommu/Kconfig +++ b/arch/m68knommu/Kconfig | |||
@@ -79,6 +79,9 @@ config COLDFIRE_SW_A7 | |||
79 | bool | 79 | bool |
80 | default n | 80 | default n |
81 | 81 | ||
82 | config HAVE_CACHE_SPLIT | ||
83 | bool | ||
84 | |||
82 | source "init/Kconfig" | 85 | source "init/Kconfig" |
83 | 86 | ||
84 | source "kernel/Kconfig.freezer" | 87 | source "kernel/Kconfig.freezer" |
@@ -124,12 +127,14 @@ config M5206e | |||
124 | config M520x | 127 | config M520x |
125 | bool "MCF520x" | 128 | bool "MCF520x" |
126 | select GENERIC_CLOCKEVENTS | 129 | select GENERIC_CLOCKEVENTS |
130 | select HAVE_CACHE_SPLIT | ||
127 | help | 131 | help |
128 | Freescale Coldfire 5207/5208 processor support. | 132 | Freescale Coldfire 5207/5208 processor support. |
129 | 133 | ||
130 | config M523x | 134 | config M523x |
131 | bool "MCF523x" | 135 | bool "MCF523x" |
132 | select GENERIC_CLOCKEVENTS | 136 | select GENERIC_CLOCKEVENTS |
137 | select HAVE_CACHE_SPLIT | ||
133 | help | 138 | help |
134 | Freescale Coldfire 5230/1/2/4/5 processor support | 139 | Freescale Coldfire 5230/1/2/4/5 processor support |
135 | 140 | ||
@@ -141,6 +146,7 @@ config M5249 | |||
141 | 146 | ||
142 | config M5271 | 147 | config M5271 |
143 | bool "MCF5271" | 148 | bool "MCF5271" |
149 | select HAVE_CACHE_SPLIT | ||
144 | help | 150 | help |
145 | Freescale (Motorola) ColdFire 5270/5271 processor support. | 151 | Freescale (Motorola) ColdFire 5270/5271 processor support. |
146 | 152 | ||
@@ -152,12 +158,14 @@ config M5272 | |||
152 | 158 | ||
153 | config M5275 | 159 | config M5275 |
154 | bool "MCF5275" | 160 | bool "MCF5275" |
161 | select HAVE_CACHE_SPLIT | ||
155 | help | 162 | help |
156 | Freescale (Motorola) ColdFire 5274/5275 processor support. | 163 | Freescale (Motorola) ColdFire 5274/5275 processor support. |
157 | 164 | ||
158 | config M528x | 165 | config M528x |
159 | bool "MCF528x" | 166 | bool "MCF528x" |
160 | select GENERIC_CLOCKEVENTS | 167 | select GENERIC_CLOCKEVENTS |
168 | select HAVE_CACHE_SPLIT | ||
161 | help | 169 | help |
162 | Motorola ColdFire 5280/5282 processor support. | 170 | Motorola ColdFire 5280/5282 processor support. |
163 | 171 | ||
@@ -250,6 +258,30 @@ config OLDMASK | |||
250 | Build support for the older revision ColdFire 5307 silicon. | 258 | Build support for the older revision ColdFire 5307 silicon. |
251 | Specifically this is the 1H55J mask revision. | 259 | Specifically this is the 1H55J mask revision. |
252 | 260 | ||
261 | if HAVE_CACHE_SPLIT | ||
262 | choice | ||
263 | prompt "Split Cache Configuration" | ||
264 | default CACHE_I | ||
265 | |||
266 | config CACHE_I | ||
267 | bool "Instruction" | ||
268 | help | ||
269 | Use all of the ColdFire CPU cache memory as an instruction cache. | ||
270 | |||
271 | config CACHE_D | ||
272 | bool "Data" | ||
273 | help | ||
274 | Use all of the ColdFire CPU cache memory as a data cache. | ||
275 | |||
276 | config CACHE_BOTH | ||
277 | bool "Both" | ||
278 | help | ||
279 | Split the ColdFire CPU cache, and use half as an instruction cache | ||
280 | and half as a data cache. | ||
281 | endchoice | ||
282 | |||
283 | endif | ||
284 | |||
253 | comment "Platform" | 285 | comment "Platform" |
254 | 286 | ||
255 | config PILOT3 | 287 | config PILOT3 |