Commit | Line | Data |
---|---|---|
1394f032 BW |
1 | # |
2 | # For a description of the syntax of this configuration file, | |
3 | # see Documentation/kbuild/kconfig-language.txt. | |
4 | # | |
5 | ||
53f8a252 | 6 | mainmenu "Blackfin Kernel Configuration" |
1394f032 | 7 | |
9e1b9b80 AJ |
8 | config SYMBOL_PREFIX |
9 | string | |
10 | default "_" | |
11 | ||
1394f032 | 12 | config MMU |
bac7d89e | 13 | def_bool n |
1394f032 BW |
14 | |
15 | config FPU | |
bac7d89e | 16 | def_bool n |
1394f032 BW |
17 | |
18 | config RWSEM_GENERIC_SPINLOCK | |
bac7d89e | 19 | def_bool y |
1394f032 BW |
20 | |
21 | config RWSEM_XCHGADD_ALGORITHM | |
bac7d89e | 22 | def_bool n |
1394f032 BW |
23 | |
24 | config BLACKFIN | |
bac7d89e | 25 | def_bool y |
1ee76d7e | 26 | select HAVE_FUNCTION_GRAPH_TRACER |
1c873be7 | 27 | select HAVE_FUNCTION_TRACER |
ec7748b5 | 28 | select HAVE_IDE |
d86bfb16 BS |
29 | select HAVE_KERNEL_GZIP if RAMKERNEL |
30 | select HAVE_KERNEL_BZIP2 if RAMKERNEL | |
31 | select HAVE_KERNEL_LZMA if RAMKERNEL | |
42d4b839 | 32 | select HAVE_OPROFILE |
a4f0b32c | 33 | select ARCH_WANT_OPTIONAL_GPIOLIB |
1394f032 | 34 | |
ddf9ddac MF |
35 | config GENERIC_CSUM |
36 | def_bool y | |
37 | ||
70f12567 MF |
38 | config GENERIC_BUG |
39 | def_bool y | |
40 | depends on BUG | |
41 | ||
e3defffe | 42 | config ZONE_DMA |
bac7d89e | 43 | def_bool y |
e3defffe | 44 | |
1394f032 | 45 | config GENERIC_FIND_NEXT_BIT |
bac7d89e | 46 | def_bool y |
1394f032 | 47 | |
1394f032 | 48 | config GENERIC_HARDIRQS |
bac7d89e | 49 | def_bool y |
1394f032 BW |
50 | |
51 | config GENERIC_IRQ_PROBE | |
bac7d89e | 52 | def_bool y |
1394f032 | 53 | |
796dada9 MH |
54 | config GENERIC_HARDIRQS_NO__DO_IRQ |
55 | def_bool y | |
56 | ||
b2d1583f | 57 | config GENERIC_GPIO |
bac7d89e | 58 | def_bool y |
1394f032 BW |
59 | |
60 | config FORCE_MAX_ZONEORDER | |
61 | int | |
62 | default "14" | |
63 | ||
64 | config GENERIC_CALIBRATE_DELAY | |
bac7d89e | 65 | def_bool y |
1394f032 | 66 | |
6fa68e7a MF |
67 | config LOCKDEP_SUPPORT |
68 | def_bool y | |
69 | ||
c7b412f4 MF |
70 | config STACKTRACE_SUPPORT |
71 | def_bool y | |
72 | ||
8f86001f MF |
73 | config TRACE_IRQFLAGS_SUPPORT |
74 | def_bool y | |
1394f032 | 75 | |
1394f032 | 76 | source "init/Kconfig" |
dc52ddc0 | 77 | |
1394f032 BW |
78 | source "kernel/Kconfig.preempt" |
79 | ||
dc52ddc0 MH |
80 | source "kernel/Kconfig.freezer" |
81 | ||
1394f032 BW |
82 | menu "Blackfin Processor Options" |
83 | ||
84 | comment "Processor and Board Settings" | |
85 | ||
86 | choice | |
87 | prompt "CPU" | |
88 | default BF533 | |
89 | ||
2f6f4bcd BW |
90 | config BF512 |
91 | bool "BF512" | |
92 | help | |
93 | BF512 Processor Support. | |
94 | ||
95 | config BF514 | |
96 | bool "BF514" | |
97 | help | |
98 | BF514 Processor Support. | |
99 | ||
100 | config BF516 | |
101 | bool "BF516" | |
102 | help | |
103 | BF516 Processor Support. | |
104 | ||
105 | config BF518 | |
106 | bool "BF518" | |
107 | help | |
108 | BF518 Processor Support. | |
109 | ||
59003145 MH |
110 | config BF522 |
111 | bool "BF522" | |
112 | help | |
113 | BF522 Processor Support. | |
114 | ||
1545a111 MF |
115 | config BF523 |
116 | bool "BF523" | |
117 | help | |
118 | BF523 Processor Support. | |
119 | ||
120 | config BF524 | |
121 | bool "BF524" | |
122 | help | |
123 | BF524 Processor Support. | |
124 | ||
59003145 MH |
125 | config BF525 |
126 | bool "BF525" | |
127 | help | |
128 | BF525 Processor Support. | |
129 | ||
1545a111 MF |
130 | config BF526 |
131 | bool "BF526" | |
132 | help | |
133 | BF526 Processor Support. | |
134 | ||
59003145 MH |
135 | config BF527 |
136 | bool "BF527" | |
137 | help | |
138 | BF527 Processor Support. | |
139 | ||
1394f032 BW |
140 | config BF531 |
141 | bool "BF531" | |
142 | help | |
143 | BF531 Processor Support. | |
144 | ||
145 | config BF532 | |
146 | bool "BF532" | |
147 | help | |
148 | BF532 Processor Support. | |
149 | ||
150 | config BF533 | |
151 | bool "BF533" | |
152 | help | |
153 | BF533 Processor Support. | |
154 | ||
155 | config BF534 | |
156 | bool "BF534" | |
157 | help | |
158 | BF534 Processor Support. | |
159 | ||
160 | config BF536 | |
161 | bool "BF536" | |
162 | help | |
163 | BF536 Processor Support. | |
164 | ||
165 | config BF537 | |
166 | bool "BF537" | |
167 | help | |
168 | BF537 Processor Support. | |
169 | ||
dc26aec2 MH |
170 | config BF538 |
171 | bool "BF538" | |
172 | help | |
173 | BF538 Processor Support. | |
174 | ||
175 | config BF539 | |
176 | bool "BF539" | |
177 | help | |
178 | BF539 Processor Support. | |
179 | ||
5df326ac | 180 | config BF542_std |
24a07a12 RH |
181 | bool "BF542" |
182 | help | |
183 | BF542 Processor Support. | |
184 | ||
2f89c063 MF |
185 | config BF542M |
186 | bool "BF542m" | |
187 | help | |
188 | BF542 Processor Support. | |
189 | ||
5df326ac | 190 | config BF544_std |
24a07a12 RH |
191 | bool "BF544" |
192 | help | |
193 | BF544 Processor Support. | |
194 | ||
2f89c063 MF |
195 | config BF544M |
196 | bool "BF544m" | |
197 | help | |
198 | BF544 Processor Support. | |
199 | ||
5df326ac | 200 | config BF547_std |
7c7fd170 MF |
201 | bool "BF547" |
202 | help | |
203 | BF547 Processor Support. | |
204 | ||
2f89c063 MF |
205 | config BF547M |
206 | bool "BF547m" | |
207 | help | |
208 | BF547 Processor Support. | |
209 | ||
5df326ac | 210 | config BF548_std |
24a07a12 RH |
211 | bool "BF548" |
212 | help | |
213 | BF548 Processor Support. | |
214 | ||
2f89c063 MF |
215 | config BF548M |
216 | bool "BF548m" | |
217 | help | |
218 | BF548 Processor Support. | |
219 | ||
5df326ac | 220 | config BF549_std |
24a07a12 RH |
221 | bool "BF549" |
222 | help | |
223 | BF549 Processor Support. | |
224 | ||
2f89c063 MF |
225 | config BF549M |
226 | bool "BF549m" | |
227 | help | |
228 | BF549 Processor Support. | |
229 | ||
1394f032 BW |
230 | config BF561 |
231 | bool "BF561" | |
232 | help | |
cd88b4dc | 233 | BF561 Processor Support. |
1394f032 BW |
234 | |
235 | endchoice | |
236 | ||
46fa5eec GY |
237 | config SMP |
238 | depends on BF561 | |
0d152c27 | 239 | select TICKSOURCE_CORETMR |
46fa5eec GY |
240 | bool "Symmetric multi-processing support" |
241 | ---help--- | |
242 | This enables support for systems with more than one CPU, | |
243 | like the dual core BF561. If you have a system with only one | |
244 | CPU, say N. If you have a system with more than one CPU, say Y. | |
245 | ||
246 | If you don't know what to do here, say N. | |
247 | ||
248 | config NR_CPUS | |
249 | int | |
250 | depends on SMP | |
251 | default 2 if BF561 | |
252 | ||
0b39db28 GY |
253 | config HOTPLUG_CPU |
254 | bool "Support for hot-pluggable CPUs" | |
255 | depends on SMP && HOTPLUG | |
256 | default y | |
257 | ||
46fa5eec GY |
258 | config IRQ_PER_CPU |
259 | bool | |
260 | depends on SMP | |
261 | default y | |
262 | ||
ead9b115 GY |
263 | config HAVE_LEGACY_PER_CPU_AREA |
264 | def_bool y | |
265 | depends on SMP | |
266 | ||
0c0497c2 MF |
267 | config BF_REV_MIN |
268 | int | |
2f89c063 | 269 | default 0 if (BF51x || BF52x || (BF54x && !BF54xM)) |
0c0497c2 | 270 | default 2 if (BF537 || BF536 || BF534) |
2f89c063 | 271 | default 3 if (BF561 || BF533 || BF532 || BF531 || BF54xM) |
2f6f4bcd | 272 | default 4 if (BF538 || BF539) |
0c0497c2 MF |
273 | |
274 | config BF_REV_MAX | |
275 | int | |
2f89c063 MF |
276 | default 2 if (BF51x || BF52x || (BF54x && !BF54xM)) |
277 | default 3 if (BF537 || BF536 || BF534 || BF54xM) | |
2f6f4bcd | 278 | default 5 if (BF561 || BF538 || BF539) |
0c0497c2 MF |
279 | default 6 if (BF533 || BF532 || BF531) |
280 | ||
1394f032 BW |
281 | choice |
282 | prompt "Silicon Rev" | |
f8b55651 MF |
283 | default BF_REV_0_0 if (BF51x || BF52x) |
284 | default BF_REV_0_2 if (BF534 || BF536 || BF537 || (BF54x && !BF54xM)) | |
2f89c063 | 285 | default BF_REV_0_3 if (BF531 || BF532 || BF533 || BF54xM || BF561) |
24a07a12 RH |
286 | |
287 | config BF_REV_0_0 | |
288 | bool "0.0" | |
2f89c063 | 289 | depends on (BF51x || BF52x || (BF54x && !BF54xM)) |
59003145 MH |
290 | |
291 | config BF_REV_0_1 | |
d07f4380 | 292 | bool "0.1" |
3d15f302 | 293 | depends on (BF51x || BF52x || (BF54x && !BF54xM)) |
1394f032 BW |
294 | |
295 | config BF_REV_0_2 | |
296 | bool "0.2" | |
2f89c063 | 297 | depends on (BF52x || BF537 || BF536 || BF534 || (BF54x && !BF54xM)) |
1394f032 BW |
298 | |
299 | config BF_REV_0_3 | |
300 | bool "0.3" | |
2f89c063 | 301 | depends on (BF54xM || BF561 || BF537 || BF536 || BF534 || BF533 || BF532 || BF531) |
1394f032 BW |
302 | |
303 | config BF_REV_0_4 | |
304 | bool "0.4" | |
dc26aec2 | 305 | depends on (BF561 || BF533 || BF532 || BF531 || BF538 || BF539) |
1394f032 BW |
306 | |
307 | config BF_REV_0_5 | |
308 | bool "0.5" | |
dc26aec2 | 309 | depends on (BF561 || BF533 || BF532 || BF531 || BF538 || BF539) |
1394f032 | 310 | |
49f7253c MF |
311 | config BF_REV_0_6 |
312 | bool "0.6" | |
313 | depends on (BF533 || BF532 || BF531) | |
314 | ||
de3025f4 JZ |
315 | config BF_REV_ANY |
316 | bool "any" | |
317 | ||
318 | config BF_REV_NONE | |
319 | bool "none" | |
320 | ||
1394f032 BW |
321 | endchoice |
322 | ||
24a07a12 RH |
323 | config BF53x |
324 | bool | |
325 | depends on (BF531 || BF532 || BF533 || BF534 || BF536 || BF537) | |
326 | default y | |
327 | ||
1394f032 BW |
328 | config MEM_GENERIC_BOARD |
329 | bool | |
330 | depends on GENERIC_BOARD | |
331 | default y | |
332 | ||
333 | config MEM_MT48LC64M4A2FB_7E | |
334 | bool | |
335 | depends on (BFIN533_STAMP) | |
336 | default y | |
337 | ||
338 | config MEM_MT48LC16M16A2TG_75 | |
339 | bool | |
340 | depends on (BFIN533_EZKIT || BFIN561_EZKIT \ | |
60584344 HK |
341 | || BFIN533_BLUETECHNIX_CM || BFIN537_BLUETECHNIX_CM_E \ |
342 | || BFIN537_BLUETECHNIX_CM_U || H8606_HVSISTEMAS \ | |
343 | || BFIN527_BLUETECHNIX_CM) | |
1394f032 BW |
344 | default y |
345 | ||
346 | config MEM_MT48LC32M8A2_75 | |
347 | bool | |
dc26aec2 | 348 | depends on (BFIN537_STAMP || PNAV10 || BFIN538_EZKIT) |
1394f032 BW |
349 | default y |
350 | ||
351 | config MEM_MT48LC8M32B2B5_7 | |
352 | bool | |
353 | depends on (BFIN561_BLUETECHNIX_CM) | |
354 | default y | |
355 | ||
59003145 MH |
356 | config MEM_MT48LC32M16A2TG_75 |
357 | bool | |
6924dfb0 | 358 | depends on (BFIN527_EZKIT || BFIN527_EZKIT_V2 || BFIN532_IP0X || BLACKSTAMP) |
59003145 MH |
359 | default y |
360 | ||
4934540d SZ |
361 | config MEM_MT48LC32M8A2_75 |
362 | bool | |
363 | depends on (BFIN518F_EZBRD) | |
364 | default y | |
365 | ||
ee48efb5 GY |
366 | config MEM_MT48H32M16LFCJ_75 |
367 | bool | |
368 | depends on (BFIN526_EZBRD) | |
369 | default y | |
370 | ||
2f6f4bcd | 371 | source "arch/blackfin/mach-bf518/Kconfig" |
59003145 | 372 | source "arch/blackfin/mach-bf527/Kconfig" |
1394f032 BW |
373 | source "arch/blackfin/mach-bf533/Kconfig" |
374 | source "arch/blackfin/mach-bf561/Kconfig" | |
375 | source "arch/blackfin/mach-bf537/Kconfig" | |
dc26aec2 | 376 | source "arch/blackfin/mach-bf538/Kconfig" |
24a07a12 | 377 | source "arch/blackfin/mach-bf548/Kconfig" |
1394f032 BW |
378 | |
379 | menu "Board customizations" | |
380 | ||
381 | config CMDLINE_BOOL | |
382 | bool "Default bootloader kernel arguments" | |
383 | ||
384 | config CMDLINE | |
385 | string "Initial kernel command string" | |
386 | depends on CMDLINE_BOOL | |
387 | default "console=ttyBF0,57600" | |
388 | help | |
389 | If you don't have a boot loader capable of passing a command line string | |
390 | to the kernel, you may specify one here. As a minimum, you should specify | |
391 | the memory size and the root device (e.g., mem=8M, root=/dev/nfs). | |
392 | ||
5f004c20 MF |
393 | config BOOT_LOAD |
394 | hex "Kernel load address for booting" | |
395 | default "0x1000" | |
396 | range 0x1000 0x20000000 | |
397 | help | |
398 | This option allows you to set the load address of the kernel. | |
399 | This can be useful if you are on a board which has a small amount | |
400 | of memory or you wish to reserve some memory at the beginning of | |
401 | the address space. | |
402 | ||
403 | Note that you need to keep this value above 4k (0x1000) as this | |
404 | memory region is used to capture NULL pointer references as well | |
405 | as some core kernel functions. | |
406 | ||
8cc7117e MH |
407 | config ROM_BASE |
408 | hex "Kernel ROM Base" | |
86249911 | 409 | depends on ROMKERNEL |
d86bfb16 | 410 | default "0x20040040" |
8cc7117e MH |
411 | range 0x20000000 0x20400000 if !(BF54x || BF561) |
412 | range 0x20000000 0x30000000 if (BF54x || BF561) | |
413 | help | |
d86bfb16 BS |
414 | Make sure your ROM base does not include any file-header |
415 | information that is prepended to the kernel. | |
416 | ||
417 | For example, the bootable U-Boot format (created with | |
418 | mkimage) has a 64 byte header (0x40). So while the image | |
419 | you write to flash might start at say 0x20080000, you have | |
420 | to add 0x40 to get the kernel's ROM base as it will come | |
421 | after the header. | |
8cc7117e | 422 | |
f16295e7 | 423 | comment "Clock/PLL Setup" |
1394f032 BW |
424 | |
425 | config CLKIN_HZ | |
2fb6cb41 | 426 | int "Frequency of the crystal on the board in Hz" |
d0cb9b4e | 427 | default "10000000" if BFIN532_IP0X |
1394f032 | 428 | default "11059200" if BFIN533_STAMP |
d0cb9b4e MF |
429 | default "24576000" if PNAV10 |
430 | default "25000000" # most people use this | |
1394f032 | 431 | default "27000000" if BFIN533_EZKIT |
1394f032 | 432 | default "30000000" if BFIN561_EZKIT |
1394f032 BW |
433 | help |
434 | The frequency of CLKIN crystal oscillator on the board in Hz. | |
2fb6cb41 SZ |
435 | Warning: This value should match the crystal on the board. Otherwise, |
436 | peripherals won't work properly. | |
1394f032 | 437 | |
f16295e7 RG |
438 | config BFIN_KERNEL_CLOCK |
439 | bool "Re-program Clocks while Kernel boots?" | |
440 | default n | |
441 | help | |
442 | This option decides if kernel clocks are re-programed from the | |
443 | bootloader settings. If the clocks are not set, the SDRAM settings | |
444 | are also not changed, and the Bootloader does 100% of the hardware | |
445 | configuration. | |
446 | ||
447 | config PLL_BYPASS | |
e4e9a7ad MF |
448 | bool "Bypass PLL" |
449 | depends on BFIN_KERNEL_CLOCK | |
450 | default n | |
f16295e7 RG |
451 | |
452 | config CLKIN_HALF | |
453 | bool "Half Clock In" | |
454 | depends on BFIN_KERNEL_CLOCK && (! PLL_BYPASS) | |
455 | default n | |
456 | help | |
457 | If this is set the clock will be divided by 2, before it goes to the PLL. | |
458 | ||
459 | config VCO_MULT | |
460 | int "VCO Multiplier" | |
461 | depends on BFIN_KERNEL_CLOCK && (! PLL_BYPASS) | |
462 | range 1 64 | |
463 | default "22" if BFIN533_EZKIT | |
464 | default "45" if BFIN533_STAMP | |
6924dfb0 | 465 | default "20" if (BFIN537_STAMP || BFIN527_EZKIT || BFIN527_EZKIT_V2 || BFIN548_EZKIT || BFIN548_BLUETECHNIX_CM || BFIN538_EZKIT) |
f16295e7 | 466 | default "22" if BFIN533_BLUETECHNIX_CM |
60584344 | 467 | default "20" if (BFIN537_BLUETECHNIX_CM_E || BFIN537_BLUETECHNIX_CM_U || BFIN527_BLUETECHNIX_CM || BFIN561_BLUETECHNIX_CM) |
f16295e7 | 468 | default "20" if BFIN561_EZKIT |
2f6f4bcd | 469 | default "16" if (H8606_HVSISTEMAS || BLACKSTAMP || BFIN526_EZBRD || BFIN518F_EZBRD) |
f16295e7 RG |
470 | help |
471 | This controls the frequency of the on-chip PLL. This can be between 1 and 64. | |
472 | PLL Frequency = (Crystal Frequency) * (this setting) | |
473 | ||
474 | choice | |
475 | prompt "Core Clock Divider" | |
476 | depends on BFIN_KERNEL_CLOCK | |
477 | default CCLK_DIV_1 | |
478 | help | |
479 | This sets the frequency of the core. It can be 1, 2, 4 or 8 | |
480 | Core Frequency = (PLL frequency) / (this setting) | |
481 | ||
482 | config CCLK_DIV_1 | |
483 | bool "1" | |
484 | ||
485 | config CCLK_DIV_2 | |
486 | bool "2" | |
487 | ||
488 | config CCLK_DIV_4 | |
489 | bool "4" | |
490 | ||
491 | config CCLK_DIV_8 | |
492 | bool "8" | |
493 | endchoice | |
494 | ||
495 | config SCLK_DIV | |
496 | int "System Clock Divider" | |
497 | depends on BFIN_KERNEL_CLOCK | |
498 | range 1 15 | |
5f004c20 | 499 | default 5 |
f16295e7 RG |
500 | help |
501 | This sets the frequency of the system clock (including SDRAM or DDR). | |
502 | This can be between 1 and 15 | |
503 | System Clock = (PLL frequency) / (this setting) | |
504 | ||
5f004c20 MF |
505 | choice |
506 | prompt "DDR SDRAM Chip Type" | |
507 | depends on BFIN_KERNEL_CLOCK | |
508 | depends on BF54x | |
509 | default MEM_MT46V32M16_5B | |
510 | ||
511 | config MEM_MT46V32M16_6T | |
512 | bool "MT46V32M16_6T" | |
513 | ||
514 | config MEM_MT46V32M16_5B | |
515 | bool "MT46V32M16_5B" | |
516 | endchoice | |
517 | ||
73feb5c0 MH |
518 | choice |
519 | prompt "DDR/SDRAM Timing" | |
520 | depends on BFIN_KERNEL_CLOCK | |
521 | default BFIN_KERNEL_CLOCK_MEMINIT_CALC | |
522 | help | |
523 | This option allows you to specify Blackfin SDRAM/DDR Timing parameters | |
524 | The calculated SDRAM timing parameters may not be 100% | |
525 | accurate - This option is therefore marked experimental. | |
526 | ||
527 | config BFIN_KERNEL_CLOCK_MEMINIT_CALC | |
528 | bool "Calculate Timings (EXPERIMENTAL)" | |
529 | depends on EXPERIMENTAL | |
530 | ||
531 | config BFIN_KERNEL_CLOCK_MEMINIT_SPEC | |
532 | bool "Provide accurate Timings based on target SCLK" | |
533 | help | |
534 | Please consult the Blackfin Hardware Reference Manuals as well | |
535 | as the memory device datasheet. | |
536 | http://docs.blackfin.uclinux.org/doku.php?id=bfin:sdram | |
537 | endchoice | |
538 | ||
539 | menu "Memory Init Control" | |
540 | depends on BFIN_KERNEL_CLOCK_MEMINIT_SPEC | |
541 | ||
542 | config MEM_DDRCTL0 | |
543 | depends on BF54x | |
544 | hex "DDRCTL0" | |
545 | default 0x0 | |
546 | ||
547 | config MEM_DDRCTL1 | |
548 | depends on BF54x | |
549 | hex "DDRCTL1" | |
550 | default 0x0 | |
551 | ||
552 | config MEM_DDRCTL2 | |
553 | depends on BF54x | |
554 | hex "DDRCTL2" | |
555 | default 0x0 | |
556 | ||
557 | config MEM_EBIU_DDRQUE | |
558 | depends on BF54x | |
559 | hex "DDRQUE" | |
560 | default 0x0 | |
561 | ||
562 | config MEM_SDRRC | |
563 | depends on !BF54x | |
564 | hex "SDRRC" | |
565 | default 0x0 | |
566 | ||
567 | config MEM_SDGCTL | |
568 | depends on !BF54x | |
569 | hex "SDGCTL" | |
570 | default 0x0 | |
571 | endmenu | |
572 | ||
f16295e7 RG |
573 | # |
574 | # Max & Min Speeds for various Chips | |
575 | # | |
576 | config MAX_VCO_HZ | |
577 | int | |
2f6f4bcd BW |
578 | default 400000000 if BF512 |
579 | default 400000000 if BF514 | |
580 | default 400000000 if BF516 | |
581 | default 400000000 if BF518 | |
7b06263b MF |
582 | default 400000000 if BF522 |
583 | default 600000000 if BF523 | |
1545a111 | 584 | default 400000000 if BF524 |
f16295e7 | 585 | default 600000000 if BF525 |
1545a111 | 586 | default 400000000 if BF526 |
f16295e7 RG |
587 | default 600000000 if BF527 |
588 | default 400000000 if BF531 | |
589 | default 400000000 if BF532 | |
590 | default 750000000 if BF533 | |
591 | default 500000000 if BF534 | |
592 | default 400000000 if BF536 | |
593 | default 600000000 if BF537 | |
f72eecb9 RG |
594 | default 533333333 if BF538 |
595 | default 533333333 if BF539 | |
f16295e7 | 596 | default 600000000 if BF542 |
f72eecb9 | 597 | default 533333333 if BF544 |
1545a111 MF |
598 | default 600000000 if BF547 |
599 | default 600000000 if BF548 | |
f72eecb9 | 600 | default 533333333 if BF549 |
f16295e7 RG |
601 | default 600000000 if BF561 |
602 | ||
603 | config MIN_VCO_HZ | |
604 | int | |
605 | default 50000000 | |
606 | ||
607 | config MAX_SCLK_HZ | |
608 | int | |
f72eecb9 | 609 | default 133333333 |
f16295e7 RG |
610 | |
611 | config MIN_SCLK_HZ | |
612 | int | |
613 | default 27000000 | |
614 | ||
615 | comment "Kernel Timer/Scheduler" | |
616 | ||
617 | source kernel/Kconfig.hz | |
618 | ||
8b5f79f9 | 619 | config GENERIC_TIME |
10f03f1a | 620 | def_bool y |
8b5f79f9 VM |
621 | |
622 | config GENERIC_CLOCKEVENTS | |
623 | bool "Generic clock events" | |
8b5f79f9 VM |
624 | default y |
625 | ||
0d152c27 | 626 | menu "Clock event device" |
1fa9be72 | 627 | depends on GENERIC_CLOCKEVENTS |
1fa9be72 | 628 | config TICKSOURCE_GPTMR0 |
0d152c27 YL |
629 | bool "GPTimer0" |
630 | depends on !SMP | |
1fa9be72 | 631 | select BFIN_GPTIMERS |
1fa9be72 GY |
632 | |
633 | config TICKSOURCE_CORETMR | |
0d152c27 YL |
634 | bool "Core timer" |
635 | default y | |
636 | endmenu | |
1fa9be72 | 637 | |
0d152c27 | 638 | menu "Clock souce" |
8b5f79f9 | 639 | depends on GENERIC_CLOCKEVENTS |
0d152c27 YL |
640 | config CYCLES_CLOCKSOURCE |
641 | bool "CYCLES" | |
642 | default y | |
8b5f79f9 | 643 | depends on !BFIN_SCRATCH_REG_CYCLES |
1fa9be72 | 644 | depends on !SMP |
8b5f79f9 VM |
645 | help |
646 | If you say Y here, you will enable support for using the 'cycles' | |
647 | registers as a clock source. Doing so means you will be unable to | |
648 | safely write to the 'cycles' register during runtime. You will | |
649 | still be able to read it (such as for performance monitoring), but | |
650 | writing the registers will most likely crash the kernel. | |
651 | ||
1fa9be72 | 652 | config GPTMR0_CLOCKSOURCE |
0d152c27 | 653 | bool "GPTimer0" |
3aca47c0 | 654 | select BFIN_GPTIMERS |
1fa9be72 | 655 | depends on !TICKSOURCE_GPTMR0 |
0d152c27 | 656 | endmenu |
1fa9be72 | 657 | |
10f03f1a | 658 | config ARCH_USES_GETTIMEOFFSET |
659 | depends on !GENERIC_CLOCKEVENTS | |
660 | def_bool y | |
661 | ||
8b5f79f9 VM |
662 | source kernel/time/Kconfig |
663 | ||
5f004c20 | 664 | comment "Misc" |
971d5bc4 | 665 | |
f0b5d12f MF |
666 | choice |
667 | prompt "Blackfin Exception Scratch Register" | |
668 | default BFIN_SCRATCH_REG_RETN | |
669 | help | |
670 | Select the resource to reserve for the Exception handler: | |
671 | - RETN: Non-Maskable Interrupt (NMI) | |
672 | - RETE: Exception Return (JTAG/ICE) | |
673 | - CYCLES: Performance counter | |
674 | ||
675 | If you are unsure, please select "RETN". | |
676 | ||
677 | config BFIN_SCRATCH_REG_RETN | |
678 | bool "RETN" | |
679 | help | |
680 | Use the RETN register in the Blackfin exception handler | |
681 | as a stack scratch register. This means you cannot | |
682 | safely use NMI on the Blackfin while running Linux, but | |
683 | you can debug the system with a JTAG ICE and use the | |
684 | CYCLES performance registers. | |
685 | ||
686 | If you are unsure, please select "RETN". | |
687 | ||
688 | config BFIN_SCRATCH_REG_RETE | |
689 | bool "RETE" | |
690 | help | |
691 | Use the RETE register in the Blackfin exception handler | |
692 | as a stack scratch register. This means you cannot | |
693 | safely use a JTAG ICE while debugging a Blackfin board, | |
694 | but you can safely use the CYCLES performance registers | |
695 | and the NMI. | |
696 | ||
697 | If you are unsure, please select "RETN". | |
698 | ||
699 | config BFIN_SCRATCH_REG_CYCLES | |
700 | bool "CYCLES" | |
701 | help | |
702 | Use the CYCLES register in the Blackfin exception handler | |
703 | as a stack scratch register. This means you cannot | |
704 | safely use the CYCLES performance registers on a Blackfin | |
705 | board at anytime, but you can debug the system with a JTAG | |
706 | ICE and use the NMI. | |
707 | ||
708 | If you are unsure, please select "RETN". | |
709 | ||
710 | endchoice | |
711 | ||
1394f032 BW |
712 | endmenu |
713 | ||
714 | ||
715 | menu "Blackfin Kernel Optimizations" | |
46fa5eec | 716 | depends on !SMP |
1394f032 | 717 | |
1394f032 BW |
718 | comment "Memory Optimizations" |
719 | ||
720 | config I_ENTRY_L1 | |
721 | bool "Locate interrupt entry code in L1 Memory" | |
722 | default y | |
723 | help | |
01dd2fbf ML |
724 | If enabled, interrupt entry code (STORE/RESTORE CONTEXT) is linked |
725 | into L1 instruction memory. (less latency) | |
1394f032 BW |
726 | |
727 | config EXCPT_IRQ_SYSC_L1 | |
01dd2fbf | 728 | bool "Locate entire ASM lowlevel exception / interrupt - Syscall and CPLB handler code in L1 Memory" |
1394f032 BW |
729 | default y |
730 | help | |
01dd2fbf | 731 | If enabled, the entire ASM lowlevel exception and interrupt entry code |
cfefe3c6 | 732 | (STORE/RESTORE CONTEXT) is linked into L1 instruction memory. |
01dd2fbf | 733 | (less latency) |
1394f032 BW |
734 | |
735 | config DO_IRQ_L1 | |
736 | bool "Locate frequently called do_irq dispatcher function in L1 Memory" | |
737 | default y | |
738 | help | |
01dd2fbf ML |
739 | If enabled, the frequently called do_irq dispatcher function is linked |
740 | into L1 instruction memory. (less latency) | |
1394f032 BW |
741 | |
742 | config CORE_TIMER_IRQ_L1 | |
743 | bool "Locate frequently called timer_interrupt() function in L1 Memory" | |
744 | default y | |
745 | help | |
01dd2fbf ML |
746 | If enabled, the frequently called timer_interrupt() function is linked |
747 | into L1 instruction memory. (less latency) | |
1394f032 BW |
748 | |
749 | config IDLE_L1 | |
750 | bool "Locate frequently idle function in L1 Memory" | |
751 | default y | |
752 | help | |
01dd2fbf ML |
753 | If enabled, the frequently called idle function is linked |
754 | into L1 instruction memory. (less latency) | |
1394f032 BW |
755 | |
756 | config SCHEDULE_L1 | |
757 | bool "Locate kernel schedule function in L1 Memory" | |
758 | default y | |
759 | help | |
01dd2fbf ML |
760 | If enabled, the frequently called kernel schedule is linked |
761 | into L1 instruction memory. (less latency) | |
1394f032 BW |
762 | |
763 | config ARITHMETIC_OPS_L1 | |
764 | bool "Locate kernel owned arithmetic functions in L1 Memory" | |
765 | default y | |
766 | help | |
01dd2fbf ML |
767 | If enabled, arithmetic functions are linked |
768 | into L1 instruction memory. (less latency) | |
1394f032 BW |
769 | |
770 | config ACCESS_OK_L1 | |
771 | bool "Locate access_ok function in L1 Memory" | |
772 | default y | |
773 | help | |
01dd2fbf ML |
774 | If enabled, the access_ok function is linked |
775 | into L1 instruction memory. (less latency) | |
1394f032 BW |
776 | |
777 | config MEMSET_L1 | |
778 | bool "Locate memset function in L1 Memory" | |
779 | default y | |
780 | help | |
01dd2fbf ML |
781 | If enabled, the memset function is linked |
782 | into L1 instruction memory. (less latency) | |
1394f032 BW |
783 | |
784 | config MEMCPY_L1 | |
785 | bool "Locate memcpy function in L1 Memory" | |
786 | default y | |
787 | help | |
01dd2fbf ML |
788 | If enabled, the memcpy function is linked |
789 | into L1 instruction memory. (less latency) | |
1394f032 BW |
790 | |
791 | config SYS_BFIN_SPINLOCK_L1 | |
792 | bool "Locate sys_bfin_spinlock function in L1 Memory" | |
793 | default y | |
794 | help | |
01dd2fbf ML |
795 | If enabled, sys_bfin_spinlock function is linked |
796 | into L1 instruction memory. (less latency) | |
1394f032 BW |
797 | |
798 | config IP_CHECKSUM_L1 | |
799 | bool "Locate IP Checksum function in L1 Memory" | |
800 | default n | |
801 | help | |
01dd2fbf ML |
802 | If enabled, the IP Checksum function is linked |
803 | into L1 instruction memory. (less latency) | |
1394f032 BW |
804 | |
805 | config CACHELINE_ALIGNED_L1 | |
806 | bool "Locate cacheline_aligned data to L1 Data Memory" | |
157cc5aa MH |
807 | default y if !BF54x |
808 | default n if BF54x | |
1394f032 BW |
809 | depends on !BF531 |
810 | help | |
692105b8 | 811 | If enabled, cacheline_aligned data is linked |
01dd2fbf | 812 | into L1 data memory. (less latency) |
1394f032 BW |
813 | |
814 | config SYSCALL_TAB_L1 | |
815 | bool "Locate Syscall Table L1 Data Memory" | |
816 | default n | |
817 | depends on !BF531 | |
818 | help | |
01dd2fbf ML |
819 | If enabled, the Syscall LUT is linked |
820 | into L1 data memory. (less latency) | |
1394f032 BW |
821 | |
822 | config CPLB_SWITCH_TAB_L1 | |
823 | bool "Locate CPLB Switch Tables L1 Data Memory" | |
824 | default n | |
825 | depends on !BF531 | |
826 | help | |
01dd2fbf ML |
827 | If enabled, the CPLB Switch Tables are linked |
828 | into L1 data memory. (less latency) | |
1394f032 | 829 | |
ca87b7ad GY |
830 | config APP_STACK_L1 |
831 | bool "Support locating application stack in L1 Scratch Memory" | |
832 | default y | |
833 | help | |
834 | If enabled the application stack can be located in L1 | |
835 | scratch memory (less latency). | |
836 | ||
837 | Currently only works with FLAT binaries. | |
838 | ||
6ad2b84c MF |
839 | config EXCEPTION_L1_SCRATCH |
840 | bool "Locate exception stack in L1 Scratch Memory" | |
841 | default n | |
f82e0a0c | 842 | depends on !APP_STACK_L1 |
6ad2b84c MF |
843 | help |
844 | Whenever an exception occurs, use the L1 Scratch memory for | |
845 | stack storage. You cannot place the stacks of FLAT binaries | |
846 | in L1 when using this option. | |
847 | ||
848 | If you don't use L1 Scratch, then you should say Y here. | |
849 | ||
251383c7 RG |
850 | comment "Speed Optimizations" |
851 | config BFIN_INS_LOWOVERHEAD | |
852 | bool "ins[bwl] low overhead, higher interrupt latency" | |
853 | default y | |
854 | help | |
855 | Reads on the Blackfin are speculative. In Blackfin terms, this means | |
856 | they can be interrupted at any time (even after they have been issued | |
857 | on to the external bus), and re-issued after the interrupt occurs. | |
858 | For memory - this is not a big deal, since memory does not change if | |
859 | it sees a read. | |
860 | ||
861 | If a FIFO is sitting on the end of the read, it will see two reads, | |
862 | when the core only sees one since the FIFO receives both the read | |
863 | which is cancelled (and not delivered to the core) and the one which | |
864 | is re-issued (which is delivered to the core). | |
865 | ||
866 | To solve this, interrupts are turned off before reads occur to | |
867 | I/O space. This option controls which the overhead/latency of | |
868 | controlling interrupts during this time | |
869 | "n" turns interrupts off every read | |
870 | (higher overhead, but lower interrupt latency) | |
871 | "y" turns interrupts off every loop | |
872 | (low overhead, but longer interrupt latency) | |
873 | ||
874 | default behavior is to leave this set to on (type "Y"). If you are experiencing | |
875 | interrupt latency issues, it is safe and OK to turn this off. | |
876 | ||
1394f032 BW |
877 | endmenu |
878 | ||
1394f032 BW |
879 | choice |
880 | prompt "Kernel executes from" | |
881 | help | |
882 | Choose the memory type that the kernel will be running in. | |
883 | ||
884 | config RAMKERNEL | |
885 | bool "RAM" | |
886 | help | |
887 | The kernel will be resident in RAM when running. | |
888 | ||
889 | config ROMKERNEL | |
890 | bool "ROM" | |
891 | help | |
892 | The kernel will be resident in FLASH/ROM when running. | |
893 | ||
894 | endchoice | |
895 | ||
896 | source "mm/Kconfig" | |
897 | ||
780431e3 MF |
898 | config BFIN_GPTIMERS |
899 | tristate "Enable Blackfin General Purpose Timers API" | |
900 | default n | |
901 | help | |
902 | Enable support for the General Purpose Timers API. If you | |
903 | are unsure, say N. | |
904 | ||
905 | To compile this driver as a module, choose M here: the module | |
4737f097 | 906 | will be called gptimers. |
780431e3 | 907 | |
1394f032 | 908 | choice |
d292b000 | 909 | prompt "Uncached DMA region" |
1394f032 | 910 | default DMA_UNCACHED_1M |
86ad7932 CC |
911 | config DMA_UNCACHED_4M |
912 | bool "Enable 4M DMA region" | |
1394f032 BW |
913 | config DMA_UNCACHED_2M |
914 | bool "Enable 2M DMA region" | |
915 | config DMA_UNCACHED_1M | |
916 | bool "Enable 1M DMA region" | |
c45c0659 BS |
917 | config DMA_UNCACHED_512K |
918 | bool "Enable 512K DMA region" | |
919 | config DMA_UNCACHED_256K | |
920 | bool "Enable 256K DMA region" | |
921 | config DMA_UNCACHED_128K | |
922 | bool "Enable 128K DMA region" | |
1394f032 BW |
923 | config DMA_UNCACHED_NONE |
924 | bool "Disable DMA region" | |
925 | endchoice | |
926 | ||
927 | ||
928 | comment "Cache Support" | |
41ba653f | 929 | |
3bebca2d | 930 | config BFIN_ICACHE |
1394f032 | 931 | bool "Enable ICACHE" |
41ba653f | 932 | default y |
41ba653f JZ |
933 | config BFIN_EXTMEM_ICACHEABLE |
934 | bool "Enable ICACHE for external memory" | |
935 | depends on BFIN_ICACHE | |
936 | default y | |
937 | config BFIN_L2_ICACHEABLE | |
938 | bool "Enable ICACHE for L2 SRAM" | |
939 | depends on BFIN_ICACHE | |
940 | depends on BF54x || BF561 | |
941 | default n | |
942 | ||
3bebca2d | 943 | config BFIN_DCACHE |
1394f032 | 944 | bool "Enable DCACHE" |
41ba653f | 945 | default y |
3bebca2d | 946 | config BFIN_DCACHE_BANKA |
1394f032 | 947 | bool "Enable only 16k BankA DCACHE - BankB is SRAM" |
3bebca2d | 948 | depends on BFIN_DCACHE && !BF531 |
1394f032 | 949 | default n |
41ba653f JZ |
950 | config BFIN_EXTMEM_DCACHEABLE |
951 | bool "Enable DCACHE for external memory" | |
3bebca2d | 952 | depends on BFIN_DCACHE |
41ba653f JZ |
953 | default y |
954 | choice | |
955 | prompt "External memory DCACHE policy" | |
956 | depends on BFIN_EXTMEM_DCACHEABLE | |
957 | default BFIN_EXTMEM_WRITEBACK if !SMP | |
958 | default BFIN_EXTMEM_WRITETHROUGH if SMP | |
959 | config BFIN_EXTMEM_WRITEBACK | |
1394f032 | 960 | bool "Write back" |
46fa5eec | 961 | depends on !SMP |
1394f032 BW |
962 | help |
963 | Write Back Policy: | |
964 | Cached data will be written back to SDRAM only when needed. | |
965 | This can give a nice increase in performance, but beware of | |
966 | broken drivers that do not properly invalidate/flush their | |
967 | cache. | |
968 | ||
969 | Write Through Policy: | |
970 | Cached data will always be written back to SDRAM when the | |
971 | cache is updated. This is a completely safe setting, but | |
972 | performance is worse than Write Back. | |
973 | ||
974 | If you are unsure of the options and you want to be safe, | |
975 | then go with Write Through. | |
976 | ||
41ba653f | 977 | config BFIN_EXTMEM_WRITETHROUGH |
1394f032 BW |
978 | bool "Write through" |
979 | help | |
980 | Write Back Policy: | |
981 | Cached data will be written back to SDRAM only when needed. | |
982 | This can give a nice increase in performance, but beware of | |
983 | broken drivers that do not properly invalidate/flush their | |
984 | cache. | |
985 | ||
986 | Write Through Policy: | |
987 | Cached data will always be written back to SDRAM when the | |
988 | cache is updated. This is a completely safe setting, but | |
989 | performance is worse than Write Back. | |
990 | ||
991 | If you are unsure of the options and you want to be safe, | |
992 | then go with Write Through. | |
993 | ||
994 | endchoice | |
995 | ||
41ba653f JZ |
996 | config BFIN_L2_DCACHEABLE |
997 | bool "Enable DCACHE for L2 SRAM" | |
998 | depends on BFIN_DCACHE | |
9c954f89 | 999 | depends on (BF54x || BF561) && !SMP |
41ba653f | 1000 | default n |
5ba76675 | 1001 | choice |
41ba653f JZ |
1002 | prompt "L2 SRAM DCACHE policy" |
1003 | depends on BFIN_L2_DCACHEABLE | |
1004 | default BFIN_L2_WRITEBACK | |
1005 | config BFIN_L2_WRITEBACK | |
5ba76675 | 1006 | bool "Write back" |
5ba76675 | 1007 | |
41ba653f | 1008 | config BFIN_L2_WRITETHROUGH |
5ba76675 | 1009 | bool "Write through" |
5ba76675 | 1010 | endchoice |
f099f39a | 1011 | |
41ba653f JZ |
1012 | |
1013 | comment "Memory Protection Unit" | |
b97b8a99 BS |
1014 | config MPU |
1015 | bool "Enable the memory protection unit (EXPERIMENTAL)" | |
1016 | default n | |
1017 | help | |
1018 | Use the processor's MPU to protect applications from accessing | |
1019 | memory they do not own. This comes at a performance penalty | |
1020 | and is recommended only for debugging. | |
1021 | ||
692105b8 | 1022 | comment "Asynchronous Memory Configuration" |
1394f032 | 1023 | |
ddf416b2 | 1024 | menu "EBIU_AMGCTL Global Control" |
1394f032 BW |
1025 | config C_AMCKEN |
1026 | bool "Enable CLKOUT" | |
1027 | default y | |
1028 | ||
1029 | config C_CDPRIO | |
1030 | bool "DMA has priority over core for ext. accesses" | |
1031 | default n | |
1032 | ||
1033 | config C_B0PEN | |
1034 | depends on BF561 | |
1035 | bool "Bank 0 16 bit packing enable" | |
1036 | default y | |
1037 | ||
1038 | config C_B1PEN | |
1039 | depends on BF561 | |
1040 | bool "Bank 1 16 bit packing enable" | |
1041 | default y | |
1042 | ||
1043 | config C_B2PEN | |
1044 | depends on BF561 | |
1045 | bool "Bank 2 16 bit packing enable" | |
1046 | default y | |
1047 | ||
1048 | config C_B3PEN | |
1049 | depends on BF561 | |
1050 | bool "Bank 3 16 bit packing enable" | |
1051 | default n | |
1052 | ||
1053 | choice | |
692105b8 | 1054 | prompt "Enable Asynchronous Memory Banks" |
1394f032 BW |
1055 | default C_AMBEN_ALL |
1056 | ||
1057 | config C_AMBEN | |
1058 | bool "Disable All Banks" | |
1059 | ||
1060 | config C_AMBEN_B0 | |
1061 | bool "Enable Bank 0" | |
1062 | ||
1063 | config C_AMBEN_B0_B1 | |
1064 | bool "Enable Bank 0 & 1" | |
1065 | ||
1066 | config C_AMBEN_B0_B1_B2 | |
1067 | bool "Enable Bank 0 & 1 & 2" | |
1068 | ||
1069 | config C_AMBEN_ALL | |
1070 | bool "Enable All Banks" | |
1071 | endchoice | |
1072 | endmenu | |
1073 | ||
1074 | menu "EBIU_AMBCTL Control" | |
1075 | config BANK_0 | |
c8342f87 | 1076 | hex "Bank 0 (AMBCTL0.L)" |
1394f032 | 1077 | default 0x7BB0 |
c8342f87 MF |
1078 | help |
1079 | These are the low 16 bits of the EBIU_AMBCTL0 MMR which are | |
1080 | used to control the Asynchronous Memory Bank 0 settings. | |
1394f032 BW |
1081 | |
1082 | config BANK_1 | |
c8342f87 | 1083 | hex "Bank 1 (AMBCTL0.H)" |
1394f032 | 1084 | default 0x7BB0 |
197fba56 | 1085 | default 0x5558 if BF54x |
c8342f87 MF |
1086 | help |
1087 | These are the high 16 bits of the EBIU_AMBCTL0 MMR which are | |
1088 | used to control the Asynchronous Memory Bank 1 settings. | |
1394f032 BW |
1089 | |
1090 | config BANK_2 | |
c8342f87 | 1091 | hex "Bank 2 (AMBCTL1.L)" |
1394f032 | 1092 | default 0x7BB0 |
c8342f87 MF |
1093 | help |
1094 | These are the low 16 bits of the EBIU_AMBCTL1 MMR which are | |
1095 | used to control the Asynchronous Memory Bank 2 settings. | |
1394f032 BW |
1096 | |
1097 | config BANK_3 | |
c8342f87 | 1098 | hex "Bank 3 (AMBCTL1.H)" |
1394f032 | 1099 | default 0x99B3 |
c8342f87 MF |
1100 | help |
1101 | These are the high 16 bits of the EBIU_AMBCTL1 MMR which are | |
1102 | used to control the Asynchronous Memory Bank 3 settings. | |
1103 | ||
1394f032 BW |
1104 | endmenu |
1105 | ||
e40540b3 SZ |
1106 | config EBIU_MBSCTLVAL |
1107 | hex "EBIU Bank Select Control Register" | |
1108 | depends on BF54x | |
1109 | default 0 | |
1110 | ||
1111 | config EBIU_MODEVAL | |
1112 | hex "Flash Memory Mode Control Register" | |
1113 | depends on BF54x | |
1114 | default 1 | |
1115 | ||
1116 | config EBIU_FCTLVAL | |
1117 | hex "Flash Memory Bank Control Register" | |
1118 | depends on BF54x | |
1119 | default 6 | |
1394f032 BW |
1120 | endmenu |
1121 | ||
1122 | ############################################################################# | |
1123 | menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)" | |
1124 | ||
1125 | config PCI | |
1126 | bool "PCI support" | |
a95ca3b2 | 1127 | depends on BROKEN |
1394f032 BW |
1128 | help |
1129 | Support for PCI bus. | |
1130 | ||
1131 | source "drivers/pci/Kconfig" | |
1132 | ||
1394f032 BW |
1133 | source "drivers/pcmcia/Kconfig" |
1134 | ||
1135 | source "drivers/pci/hotplug/Kconfig" | |
1136 | ||
1137 | endmenu | |
1138 | ||
1139 | menu "Executable file formats" | |
1140 | ||
1141 | source "fs/Kconfig.binfmt" | |
1142 | ||
1143 | endmenu | |
1144 | ||
1145 | menu "Power management options" | |
ad46163a | 1146 | |
1394f032 BW |
1147 | source "kernel/power/Kconfig" |
1148 | ||
f4cb5700 JB |
1149 | config ARCH_SUSPEND_POSSIBLE |
1150 | def_bool y | |
f4cb5700 | 1151 | |
1394f032 | 1152 | choice |
1efc80b5 | 1153 | prompt "Standby Power Saving Mode" |
1394f032 | 1154 | depends on PM |
cfefe3c6 MH |
1155 | default PM_BFIN_SLEEP_DEEPER |
1156 | config PM_BFIN_SLEEP_DEEPER | |
1157 | bool "Sleep Deeper" | |
1158 | help | |
1159 | Sleep "Deeper" Mode (High Power Savings) - This mode reduces dynamic | |
1160 | power dissipation by disabling the clock to the processor core (CCLK). | |
1161 | Furthermore, Standby sets the internal power supply voltage (VDDINT) | |
1162 | to 0.85 V to provide the greatest power savings, while preserving the | |
1163 | processor state. | |
1164 | The PLL and system clock (SCLK) continue to operate at a very low | |
1165 | frequency of about 3.3 MHz. To preserve data integrity in the SDRAM, | |
1166 | the SDRAM is put into Self Refresh Mode. Typically an external event | |
1167 | such as GPIO interrupt or RTC activity wakes up the processor. | |
1168 | Various Peripherals such as UART, SPORT, PPI may not function as | |
1169 | normal during Sleep Deeper, due to the reduced SCLK frequency. | |
1170 | When in the sleep mode, system DMA access to L1 memory is not supported. | |
1171 | ||
1efc80b5 MH |
1172 | If unsure, select "Sleep Deeper". |
1173 | ||
cfefe3c6 MH |
1174 | config PM_BFIN_SLEEP |
1175 | bool "Sleep" | |
1176 | help | |
1177 | Sleep Mode (High Power Savings) - The sleep mode reduces power | |
1178 | dissipation by disabling the clock to the processor core (CCLK). | |
1179 | The PLL and system clock (SCLK), however, continue to operate in | |
1180 | this mode. Typically an external event or RTC activity will wake | |
1efc80b5 MH |
1181 | up the processor. When in the sleep mode, system DMA access to L1 |
1182 | memory is not supported. | |
1183 | ||
1184 | If unsure, select "Sleep Deeper". | |
cfefe3c6 | 1185 | endchoice |
1394f032 | 1186 | |
1394f032 | 1187 | config PM_WAKEUP_BY_GPIO |
1efc80b5 | 1188 | bool "Allow Wakeup from Standby by GPIO" |
ff19fed4 | 1189 | depends on PM && !BF54x |
1394f032 BW |
1190 | |
1191 | config PM_WAKEUP_GPIO_NUMBER | |
1efc80b5 | 1192 | int "GPIO number" |
1394f032 BW |
1193 | range 0 47 |
1194 | depends on PM_WAKEUP_BY_GPIO | |
d1a3336e | 1195 | default 2 |
1394f032 BW |
1196 | |
1197 | choice | |
1198 | prompt "GPIO Polarity" | |
1199 | depends on PM_WAKEUP_BY_GPIO | |
1200 | default PM_WAKEUP_GPIO_POLAR_H | |
1201 | config PM_WAKEUP_GPIO_POLAR_H | |
1202 | bool "Active High" | |
1203 | config PM_WAKEUP_GPIO_POLAR_L | |
1204 | bool "Active Low" | |
1205 | config PM_WAKEUP_GPIO_POLAR_EDGE_F | |
1206 | bool "Falling EDGE" | |
1207 | config PM_WAKEUP_GPIO_POLAR_EDGE_R | |
1208 | bool "Rising EDGE" | |
1209 | config PM_WAKEUP_GPIO_POLAR_EDGE_B | |
1210 | bool "Both EDGE" | |
1211 | endchoice | |
1212 | ||
1efc80b5 MH |
1213 | comment "Possible Suspend Mem / Hibernate Wake-Up Sources" |
1214 | depends on PM | |
1215 | ||
1efc80b5 MH |
1216 | config PM_BFIN_WAKE_PH6 |
1217 | bool "Allow Wake-Up from on-chip PHY or PH6 GP" | |
2f6f4bcd | 1218 | depends on PM && (BF51x || BF52x || BF534 || BF536 || BF537) |
1efc80b5 MH |
1219 | default n |
1220 | help | |
1221 | Enable PHY and PH6 GP Wake-Up (Voltage Regulator Power-Up) | |
1222 | ||
1efc80b5 MH |
1223 | config PM_BFIN_WAKE_GP |
1224 | bool "Allow Wake-Up from GPIOs" | |
1225 | depends on PM && BF54x | |
1226 | default n | |
1227 | help | |
1228 | Enable General-Purpose Wake-Up (Voltage Regulator Power-Up) | |
19986289 MH |
1229 | (all processors, except ADSP-BF549). This option sets |
1230 | the general-purpose wake-up enable (GPWE) control bit to enable | |
1231 | wake-up upon detection of an active low signal on the /GPW (PH7) pin. | |
1232 | On ADSP-BF549 this option enables the the same functionality on the | |
1233 | /MRXON pin also PH7. | |
1234 | ||
1394f032 BW |
1235 | endmenu |
1236 | ||
1394f032 | 1237 | menu "CPU Frequency scaling" |
ad46163a | 1238 | depends on !SMP |
1394f032 BW |
1239 | |
1240 | source "drivers/cpufreq/Kconfig" | |
1241 | ||
5ad2ca5f MH |
1242 | config BFIN_CPU_FREQ |
1243 | bool | |
1244 | depends on CPU_FREQ | |
1245 | select CPU_FREQ_TABLE | |
1246 | default y | |
1247 | ||
14b03204 MH |
1248 | config CPU_VOLTAGE |
1249 | bool "CPU Voltage scaling" | |
73feb5c0 | 1250 | depends on EXPERIMENTAL |
14b03204 MH |
1251 | depends on CPU_FREQ |
1252 | default n | |
1253 | help | |
1254 | Say Y here if you want CPU voltage scaling according to the CPU frequency. | |
1255 | This option violates the PLL BYPASS recommendation in the Blackfin Processor | |
73feb5c0 | 1256 | manuals. There is a theoretical risk that during VDDINT transitions |
14b03204 MH |
1257 | the PLL may unlock. |
1258 | ||
1394f032 BW |
1259 | endmenu |
1260 | ||
1394f032 BW |
1261 | source "net/Kconfig" |
1262 | ||
1263 | source "drivers/Kconfig" | |
1264 | ||
872d024b MF |
1265 | source "drivers/firmware/Kconfig" |
1266 | ||
1394f032 BW |
1267 | source "fs/Kconfig" |
1268 | ||
74ce8322 | 1269 | source "arch/blackfin/Kconfig.debug" |
1394f032 BW |
1270 | |
1271 | source "security/Kconfig" | |
1272 | ||
1273 | source "crypto/Kconfig" | |
1274 | ||
1275 | source "lib/Kconfig" |