CRISv32: use MMIO clocksource
[linux-2.6-block.git] / arch / cris / Kconfig
CommitLineData
1da177e4
LT
1config MMU
2 bool
3 default y
4
66701b14
CL
5config ZONE_DMA
6 bool
7 default y
8
1da177e4
LT
9config RWSEM_GENERIC_SPINLOCK
10 bool
11 default y
12
13config RWSEM_XCHGADD_ALGORITHM
14 bool
15
f0d1b0b3
DH
16config ARCH_HAS_ILOG2_U32
17 bool
18 default n
19
20config ARCH_HAS_ILOG2_U64
21 bool
22 default n
23
e9f26df1
AM
24config GENERIC_HWEIGHT
25 bool
26 default y
27
1da177e4
LT
28config GENERIC_CALIBRATE_DELAY
29 bool
30 default y
31
ce816fa8 32config NO_IOPORT_MAP
5ea81769
AV
33 def_bool y
34
923dd2a4
JN
35config FORCE_MAX_ZONEORDER
36 int
37 default 6
38
1da177e4
LT
39config CRIS
40 bool
41 default y
ec7748b5 42 select HAVE_IDE
4c9c6a1b 43 select GENERIC_ATOMIC64
af1839eb 44 select HAVE_UID16
4febd95a 45 select VIRT_TO_BUS
c1d7e01d 46 select ARCH_WANT_IPC_PARSE_VERSION
15825a5c 47 select GENERIC_IRQ_SHOW
4673ca8e 48 select GENERIC_IOMAP
5227b636 49 select GENERIC_CMOS_UPDATE
786d35d4 50 select MODULES_USE_ELF_RELA
27d892fb 51 select CLONE_BACKWARDS2
86df89a0 52 select OLD_SIGSUSPEND
eb2f2566 53 select OLD_SIGACTION
8fda64c2 54 select ARCH_REQUIRE_GPIOLIB
43f7071e 55 select IRQ_DOMAIN if ETRAX_ARCH_V32
a9f75ac5
RV
56 select OF if ETRAX_ARCH_V32
57 select OF_EARLY_FLATTREE if ETRAX_ARCH_V32
edfb6d5f 58 select CLKSRC_MMIO if ETRAX_ARCH_V32
ed9fd3ff 59 select GENERIC_CLOCKEVENTS if ETRAX_ARCH_V32
1da177e4 60
bdc80787
PA
61config HZ
62 int
63 default 100
64
dd82094c
JN
65config NR_CPUS
66 int
67 default "1"
68
a9f75ac5
RV
69config BUILTIN_DTB
70 string "DTB to build into the kernel image"
71 depends on OF
72
1da177e4
LT
73source "init/Kconfig"
74
dc52ddc0
MH
75source "kernel/Kconfig.freezer"
76
1da177e4
LT
77menu "General setup"
78
79source "fs/Kconfig.binfmt"
80
81config ETRAX_CMDLINE
82 string "Kernel command line"
83 default "root=/dev/mtdblock3"
84 help
85 Pass additional commands to the kernel.
86
87config ETRAX_WATCHDOG
88 bool "Enable ETRAX watchdog"
89 help
90 Enable the built-in watchdog timer support on ETRAX based embedded
91 network computers.
92
93config ETRAX_WATCHDOG_NICE_DOGGY
94 bool "Disable watchdog during Oops printouts"
95 depends on ETRAX_WATCHDOG
96 help
97 By enabling this you make sure that the watchdog does not bite while
98 printing oopses. Recommended for development systems but not for
99 production releases.
100
101config ETRAX_FAST_TIMER
102 bool "Enable ETRAX fast timer API"
103 help
104 This options enables the API to a fast timer implementation using
105 timer1 to get sub jiffie resolution timers (primarily one-shot
106 timers).
107 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
108
923dd2a4
JN
109config ETRAX_KMALLOCED_MODULES
110 bool "Enable module allocation with kmalloc"
1da177e4 111 help
923dd2a4
JN
112 Enable module allocation with kmalloc instead of vmalloc.
113
923dd2a4 114source "kernel/Kconfig.preempt"
1da177e4 115
3f22ab27
DH
116source mm/Kconfig
117
1da177e4
LT
118endmenu
119
120menu "Hardware setup"
121
122choice
123 prompt "Processor type"
124 default ETRAX100LX
125
126config ETRAX100LX
127 bool "ETRAX-100LX-v1"
60dbd663 128 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
129 help
130 Support version 1 of the ETRAX 100LX.
131
132config ETRAX100LX_V2
133 bool "ETRAX-100LX-v2"
60dbd663 134 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
135 help
136 Support version 2 of the ETRAX 100LX.
137
923dd2a4
JN
138config ETRAXFS
139 bool "ETRAX-FS-V32"
140 help
141 Support CRIS V32.
142
143config CRIS_MACH_ARTPEC3
144 bool "ARTPEC-3"
145 help
146 Support Axis ARTPEC-3.
147
1da177e4
LT
148endchoice
149
150config ETRAX_ARCH_V10
151 bool
152 default y if ETRAX100LX || ETRAX100LX_V2
153 default n if !(ETRAX100LX || ETRAX100LX_V2)
ae797bdf 154 select TTY
1da177e4 155
923dd2a4
JN
156config ETRAX_ARCH_V32
157 bool
158 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
159 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
160
1da177e4
LT
161config ETRAX_DRAM_SIZE
162 int "DRAM size (dec, in MB)"
163 default "8"
164 help
165 Size of DRAM (decimal in MB) typically 2, 8 or 16.
166
923dd2a4
JN
167config ETRAX_VMEM_SIZE
168 int "Video memory size (dec, in MB)"
169 depends on ETRAX_ARCH_V32 && !ETRAXFS
170 default 8 if !ETRAXFS
171 help
172 Size of Video accessible memory (decimal, in MB).
173
1da177e4 174config ETRAX_FLASH_BUSWIDTH
923dd2a4 175 int "Buswidth of NOR flash in bytes"
1da177e4
LT
176 default "2"
177 help
923dd2a4
JN
178 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
179
923dd2a4
JN
180config ETRAX_FLASH1_SIZE
181 int "FLASH1 size (dec, in MB. 0 = Unknown)"
182 default "0"
183
184choice
185 prompt "Product debug-port"
186 default ETRAX_DEBUG_PORT0
187
188config ETRAX_DEBUG_PORT0
189 bool "Serial-0"
190 help
191 Choose a serial port for the ETRAX debug console. Default to
192 port 0.
193
194config ETRAX_DEBUG_PORT1
195 bool "Serial-1"
196 help
197 Use serial port 1 for the console.
198
199config ETRAX_DEBUG_PORT2
200 bool "Serial-2"
201 help
202 Use serial port 2 for the console.
203
204config ETRAX_DEBUG_PORT3
205 bool "Serial-3"
206 help
207 Use serial port 3 for the console.
208
209config ETRAX_DEBUG_PORT_NULL
210 bool "disabled"
211 help
212 Disable serial-port debugging.
213
214endchoice
215
216choice
217 prompt "Kernel GDB port"
218 depends on ETRAX_KGDB
219 default ETRAX_KGDB_PORT0
220 help
221 Choose a serial port for kernel debugging. NOTE: This port should
222 not be enabled under Drivers for built-in interfaces (as it has its
223 own initialization code) and should not be the same as the debug port.
224
225config ETRAX_KGDB_PORT0
226 bool "Serial-0"
227 help
228 Use serial port 0 for kernel debugging.
229
230config ETRAX_KGDB_PORT1
231 bool "Serial-1"
232 help
233 Use serial port 1 for kernel debugging.
234
235config ETRAX_KGDB_PORT2
236 bool "Serial-2"
237 help
238 Use serial port 2 for kernel debugging.
239
240config ETRAX_KGDB_PORT3
241 bool "Serial-3"
242 help
243 Use serial port 3 for kernel debugging.
244
245endchoice
1da177e4
LT
246
247source arch/cris/arch-v10/Kconfig
2d33d563 248source arch/cris/arch-v32/Kconfig
1da177e4
LT
249
250endmenu
251
d5950b43
SR
252source "net/Kconfig"
253
1da177e4
LT
254# bring in ETRAX built-in drivers
255menu "Drivers for built-in interfaces"
2d33d563
JN
256source arch/cris/arch-v10/drivers/Kconfig
257source arch/cris/arch-v32/drivers/Kconfig
1da177e4 258
79e04fdb
JN
259config ETRAX_AXISFLASHMAP
260 bool "Axis flash-map support"
261 select MTD
262 select MTD_CFI
263 select MTD_CFI_AMDSTD
264 select MTD_JEDECPROBE if ETRAX_ARCH_V32
79e04fdb 265 select MTD_BLOCK
79e04fdb
JN
266 select MTD_COMPLEX_MAPPINGS
267 help
268 This option enables MTD mapping of flash devices. Needed to use
269 flash memories. If unsure, say Y.
270
c974a9e5
JN
271config ETRAX_SYNCHRONOUS_SERIAL
272 bool "Synchronous serial-port support"
273 help
274 Select this to enable the synchronous serial port driver.
275
276config ETRAX_SYNCHRONOUS_SERIAL_PORT0
277 bool "Synchronous serial port 0 enabled"
278 depends on ETRAX_SYNCHRONOUS_SERIAL
279 help
280 Enabled synchronous serial port 0.
281
282config ETRAX_SYNCHRONOUS_SERIAL0_DMA
283 bool "Enable DMA on synchronous serial port 0."
284 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
285 help
286 A synchronous serial port can run in manual or DMA mode.
287 Selecting this option will make it run in DMA mode.
288
289config ETRAX_SYNCHRONOUS_SERIAL_PORT1
290 bool "Synchronous serial port 1 enabled"
291 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
292 help
293 Enabled synchronous serial port 1.
294
295config ETRAX_SYNCHRONOUS_SERIAL1_DMA
296 bool "Enable DMA on synchronous serial port 1."
297 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
298 help
299 A synchronous serial port can run in manual or DMA mode.
300 Selecting this option will make it run in DMA mode.
301
923dd2a4
JN
302choice
303 prompt "Network LED behavior"
304 depends on ETRAX_ETHERNET
305 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
306
307config ETRAX_NETWORK_LED_ON_WHEN_LINK
308 bool "LED_on_when_link"
309 help
310 Selecting LED_on_when_link will light the LED when there is a
311 connection and will flash off when there is activity.
312
313 Selecting LED_on_when_activity will light the LED only when
314 there is activity.
315
316 This setting will also affect the behaviour of other activity LEDs
317 e.g. Bluetooth.
318
319config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
320 bool "LED_on_when_activity"
321 help
322 Selecting LED_on_when_link will light the LED when there is a
323 connection and will flash off when there is activity.
324
325 Selecting LED_on_when_activity will light the LED only when
326 there is activity.
327
328 This setting will also affect the behaviour of other activity LEDs
329 e.g. Bluetooth.
330
331endchoice
332
333choice
334 prompt "Ser0 DMA out channel"
335 depends on ETRAX_SERIAL_PORT0
336 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
337 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
338
339config ETRAX_SERIAL_PORT0_NO_DMA_OUT
340 bool "Ser0 uses no DMA for output"
341 help
342 Do not use DMA for ser0 output.
343
344config ETRAX_SERIAL_PORT0_DMA6_OUT
345 bool "Ser0 uses DMA6 for output"
346 depends on ETRAXFS
347 help
348 Enables the DMA6 output channel for ser0 (ttyS0).
349 If you do not enable DMA, an interrupt for each character will be
350 used when transmitting data.
351 Normally you want to use DMA, unless you use the DMA channel for
352 something else.
353
354config ETRAX_SERIAL_PORT0_DMA0_OUT
355 bool "Ser0 uses DMA0 for output"
356 depends on CRIS_MACH_ARTPEC3
357 help
358 Enables the DMA0 output channel for ser0 (ttyS0).
359 If you do not enable DMA, an interrupt for each character will be
360 used when transmitting data.
361 Normally you want to use DMA, unless you use the DMA channel for
362 something else.
363
364endchoice
365
366choice
367 prompt "Ser0 DMA in channel "
368 depends on ETRAX_SERIAL_PORT0
369 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
370 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
371 help
372 What DMA channel to use for ser0.
373
374config ETRAX_SERIAL_PORT0_NO_DMA_IN
375 bool "Ser0 uses no DMA for input"
376 help
377 Do not use DMA for ser0 input.
378
379config ETRAX_SERIAL_PORT0_DMA7_IN
380 bool "Ser0 uses DMA7 for input"
381 depends on ETRAXFS
382 help
383 Enables the DMA7 input channel for ser0 (ttyS0).
384 If you do not enable DMA, an interrupt for each character will be
385 used when receiving data.
386 Normally you want to use DMA, unless you use the DMA channel for
387 something else.
388
389config ETRAX_SERIAL_PORT0_DMA1_IN
390 bool "Ser0 uses DMA1 for input"
391 depends on CRIS_MACH_ARTPEC3
392 help
393 Enables the DMA1 input channel for ser0 (ttyS0).
394 If you do not enable DMA, an interrupt for each character will be
692105b8 395 used when receiving data.
923dd2a4
JN
396 Normally you want to use DMA, unless you use the DMA channel for
397 something else.
398
399endchoice
400
401choice
402 prompt "Ser1 DMA in channel "
403 depends on ETRAX_SERIAL_PORT1
404 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
405 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
406 help
407 What DMA channel to use for ser1.
408
409config ETRAX_SERIAL_PORT1_NO_DMA_IN
410 bool "Ser1 uses no DMA for input"
411 help
412 Do not use DMA for ser1 input.
413
414config ETRAX_SERIAL_PORT1_DMA5_IN
415 bool "Ser1 uses DMA5 for input"
416 depends on ETRAX_ARCH_V32
417 help
418 Enables the DMA5 input channel for ser1 (ttyS1).
419 If you do not enable DMA, an interrupt for each character will be
420 used when receiving data.
421 Normally you want this on, unless you use the DMA channel for
422 something else.
423
424config ETRAX_SERIAL_PORT1_DMA9_IN
425 depends on ETRAX_ARCH_V10
426 bool "Ser1 uses DMA9 for input"
427
428endchoice
429
430
431choice
432 prompt "Ser1 DMA out channel"
433 depends on ETRAX_SERIAL_PORT1
434 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
435 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
436 help
437 What DMA channel to use for ser1.
438
439config ETRAX_SERIAL_PORT1_NO_DMA_OUT
440 bool "Ser1 uses no DMA for output"
441 help
442 Do not use DMA for ser1 output.
443
444config ETRAX_SERIAL_PORT1_DMA8_OUT
445 depends on ETRAX_ARCH_V10
446 bool "Ser1 uses DMA8 for output"
447
448config ETRAX_SERIAL_PORT1_DMA4_OUT
449 depends on ETRAX_ARCH_V32
450 bool "Ser1 uses DMA4 for output"
451 help
452 Enables the DMA4 output channel for ser1 (ttyS1).
453 If you do not enable DMA, an interrupt for each character will be
454 used when transmitting data.
455 Normally you want this on, unless you use the DMA channel for
456 something else.
457
458endchoice
459
460choice
461 prompt "Ser2 DMA out channel"
462 depends on ETRAX_SERIAL_PORT2
463 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
464 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
465
466config ETRAX_SERIAL_PORT2_NO_DMA_OUT
467 bool "Ser2 uses no DMA for output"
468 help
469 Do not use DMA for ser2 output.
470
471config ETRAX_SERIAL_PORT2_DMA2_OUT
472 bool "Ser2 uses DMA2 for output"
473 depends on ETRAXFS || ETRAX_ARCH_V10
474 help
475 Enables the DMA2 output channel for ser2 (ttyS2).
476 If you do not enable DMA, an interrupt for each character will be
477 used when transmitting data.
478 Normally you want to use DMA, unless you use the DMA channel for
479 something else.
480
481config ETRAX_SERIAL_PORT2_DMA6_OUT
482 bool "Ser2 uses DMA6 for output"
483 depends on CRIS_MACH_ARTPEC3
484 help
485 Enables the DMA6 output channel for ser2 (ttyS2).
486 If you do not enable DMA, an interrupt for each character will be
487 used when transmitting data.
488 Normally you want to use DMA, unless you use the DMA channel for
489 something else.
490
491endchoice
492
493choice
494 prompt "Ser2 DMA in channel"
495 depends on ETRAX_SERIAL_PORT2
496 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
497 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
498 help
499 What DMA channel to use for ser2.
500
501config ETRAX_SERIAL_PORT2_NO_DMA_IN
502 bool "Ser2 uses no DMA for input"
503 help
504 Do not use DMA for ser2 input.
505
506config ETRAX_SERIAL_PORT2_DMA3_IN
507 bool "Ser2 uses DMA3 for input"
508 depends on ETRAXFS || ETRAX_ARCH_V10
509 help
510 Enables the DMA3 input channel for ser2 (ttyS2).
511 If you do not enable DMA, an interrupt for each character will be
512 used when receiving data.
513 Normally you want to use DMA, unless you use the DMA channel for
514 something else.
515
516config ETRAX_SERIAL_PORT2_DMA7_IN
517 bool "Ser2 uses DMA7 for input"
518 depends on CRIS_MACH_ARTPEC3
519 help
520 Enables the DMA7 input channel for ser2 (ttyS2).
521 If you do not enable DMA, an interrupt for each character will be
692105b8 522 used when receiving data.
923dd2a4
JN
523 Normally you want to use DMA, unless you use the DMA channel for
524 something else.
525
526endchoice
527
528choice
529 prompt "Ser3 DMA in channel"
530 depends on ETRAX_SERIAL_PORT3
531 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
532 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
533 help
534 What DMA channel to use for ser3.
535
536config ETRAX_SERIAL_PORT3_NO_DMA_IN
537 bool "Ser3 uses no DMA for input"
538 help
539 Do not use DMA for ser3 input.
540
541config ETRAX_SERIAL_PORT3_DMA5_IN
542 depends on ETRAX_ARCH_V10
543 bool "DMA 5"
544
923dd2a4
JN
545endchoice
546
547choice
548 prompt "Ser3 DMA out channel"
549 depends on ETRAX_SERIAL_PORT3
550 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
551 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
552
553config ETRAX_SERIAL_PORT3_NO_DMA_OUT
554 bool "Ser3 uses no DMA for output"
555 help
556 Do not use DMA for ser3 output.
557
558config ETRAX_SERIAL_PORT3_DMA4_OUT
559 depends on ETRAX_ARCH_V10
560 bool "DMA 4"
561
923dd2a4
JN
562endchoice
563
1da177e4
LT
564endmenu
565
acf83630 566source "drivers/Kconfig"
1da177e4 567
1da177e4
LT
568source "fs/Kconfig"
569
1da177e4
LT
570source "arch/cris/Kconfig.debug"
571
572source "security/Kconfig"
573
574source "crypto/Kconfig"
575
576source "lib/Kconfig"