aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@snapgear.com>2006-06-25 20:55:36 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 00:03:14 -0400
commite648cd2688547516f86709b1d00ad4f8b618d635 (patch)
treefc9ebbd9cf01ea80f5d2300d6671dafda85d3e03 /arch
parent04860bd22f2892cb01b1d3232c656fa1e843090e (diff)
[PATCH] m68knommu: configurable frequency selection
Remove list of fixed clock frequency options used for configuring master clock, and make field an int. Much more flexible this way, no need to add more options for every new used freqency. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/m68knommu/Kconfig148
1 files changed, 33 insertions, 115 deletions
diff --git a/arch/m68knommu/Kconfig b/arch/m68knommu/Kconfig
index 640a4bf3249b..6c6980b9b6d4 100644
--- a/arch/m68knommu/Kconfig
+++ b/arch/m68knommu/Kconfig
@@ -141,122 +141,40 @@ config COLDFIRE
141 depends on (M5206 || M5206e || M520x || M523x || M5249 || M527x || M5272 || M528x || M5307 || M532x || M5407) 141 depends on (M5206 || M5206e || M520x || M523x || M5249 || M527x || M5272 || M528x || M5307 || M532x || M5407)
142 default y 142 default y
143 143
144choice 144config CLOCK_SET
145 prompt "CPU CLOCK Frequency" 145 bool "Enable setting the CPU clock frequency"
146 default AUTO 146 default n
147
148config CLOCK_AUTO
149 bool "AUTO"
150 ---help---
151 Define the CPU clock frequency in use. On many boards you don't
152 really need to know, so you can select the AUTO option. On some
153 boards you need to know the real clock frequency to determine other
154 system timing (for example baud rate dividors, etc). Some processors
155 have an internal PLL and you can select a frequency to run at.
156 You need to know a little about the internals of your processor to
157 set this. If in doubt choose the AUTO option.
158
159config CLOCK_11MHz
160 bool "11MHz"
161 help
162 Select a 11MHz CPU clock frequency.
163
164config CLOCK_16MHz
165 bool "16MHz"
166 help
167 Select a 16MHz CPU clock frequency.
168
169config CLOCK_20MHz
170 bool "20MHz"
171 help
172 Select a 20MHz CPU clock frequency.
173
174config CLOCK_24MHz
175 bool "24MHz"
176 help
177 Select a 24MHz CPU clock frequency.
178
179config CLOCK_25MHz
180 bool "25MHz"
181 help
182 Select a 25MHz CPU clock frequency.
183
184config CLOCK_33MHz
185 bool "33MHz"
186 help
187 Select a 33MHz CPU clock frequency.
188
189config CLOCK_40MHz
190 bool "40MHz"
191 help
192 Select a 40MHz CPU clock frequency.
193
194config CLOCK_45MHz
195 bool "45MHz"
196 help
197 Select a 45MHz CPU clock frequency.
198
199config CLOCK_48MHz
200 bool "48MHz"
201 help
202 Select a 48MHz CPU clock frequency.
203
204config CLOCK_50MHz
205 bool "50MHz"
206 help
207 Select a 50MHz CPU clock frequency.
208
209config CLOCK_54MHz
210 bool "54MHz"
211 help
212 Select a 54MHz CPU clock frequency.
213
214config CLOCK_60MHz
215 bool "60MHz"
216 help
217 Select a 60MHz CPU clock frequency.
218
219config CLOCK_62_5MHz
220 bool "62.5MHz"
221 help
222 Select a 62.5MHz CPU clock frequency.
223
224config CLOCK_64MHz
225 bool "64MHz"
226 help
227 Select a 64MHz CPU clock frequency.
228
229config CLOCK_66MHz
230 bool "66MHz"
231 help
232 Select a 66MHz CPU clock frequency.
233
234config CLOCK_70MHz
235 bool "70MHz"
236 help
237 Select a 70MHz CPU clock frequency.
238
239config CLOCK_100MHz
240 bool "100MHz"
241 help
242 Select a 100MHz CPU clock frequency.
243
244config CLOCK_140MHz
245 bool "140MHz"
246 help
247 Select a 140MHz CPU clock frequency.
248
249config CLOCK_150MHz
250 bool "150MHz"
251 help
252 Select a 150MHz CPU clock frequency.
253
254config CLOCK_166MHz
255 bool "166MHz"
256 help 147 help
257 Select a 166MHz CPU clock frequency. 148 On some CPU's you do not need to know what the core CPU clock
258 149 frequency is. On these you can disable clock setting. On some
259endchoice 150 traditional 68K parts, and on all ColdFire parts you need to set
151 the appropriate CPU clock frequency. On these devices many of the
152 onboard peripherals derive their timing from the master CPU clock
153 frequency.
154
155config CLOCK_FREQ
156 int "Set the core clock frequency"
157 default "66666666"
158 depends on CLOCK_SET
159 help
160 Define the CPU clock frequency in use. This is the core clock
161 frequency, it may or may not be the same as the external clock
162 crystal fitted to your board. Some processors have an internal
163 PLL and can have their frequency programmed at run time, others
164 use internal dividers. In gernal the kernel won't setup a PLL
165 if it is fitted (there are some expections). This value will be
166 specific to the exact CPU that you are using.
167
168config CLOCK_DIV
169 int "Set the core/bus clock divide ratio"
170 default "1"
171 depends on CLOCK_SET
172 help
173 On many SoC style CPUs the master CPU clock is also used to drive
174 on-chip peripherals. The clock that is distributed to these
175 peripherals is sometimes a fixed ratio of the master clock
176 frequency. If so then set this to the divider ration of the
177 master clock to the peripheral clock. If not sure then select 1.
260 178
261config OLDMASK 179config OLDMASK
262 bool "Old mask 5307 (1H55J) silicon" 180 bool "Old mask 5307 (1H55J) silicon"