Merge branch 'iommu/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[linux-2.6-block.git] / arch / cris / Kconfig
CommitLineData
1da177e4
LT
1#
2# For a description of the syntax of this configuration file,
3# see the Configure script.
4#
5
6mainmenu "Linux/CRIS Kernel Configuration"
7
8config MMU
9 bool
10 default y
11
66701b14
CL
12config ZONE_DMA
13 bool
14 default y
15
1da177e4
LT
16config RWSEM_GENERIC_SPINLOCK
17 bool
18 default y
19
20config RWSEM_XCHGADD_ALGORITHM
21 bool
22
ba875ba6 23config GENERIC_TIME
24 def_bool y
25
26config ARCH_USES_GETTIMEOFFSET
27 def_bool y
28
923dd2a4
JN
29config GENERIC_IOMAP
30 bool
31 default y
32
f0d1b0b3
DH
33config ARCH_HAS_ILOG2_U32
34 bool
35 default n
36
37config ARCH_HAS_ILOG2_U64
38 bool
39 default n
40
e9f26df1
AM
41config GENERIC_FIND_NEXT_BIT
42 bool
43 default y
44
45config GENERIC_HWEIGHT
46 bool
47 default y
48
1da177e4
LT
49config GENERIC_CALIBRATE_DELAY
50 bool
51 default y
52
5ea81769
AV
53config NO_IOPORT
54 def_bool y
55
923dd2a4
JN
56config FORCE_MAX_ZONEORDER
57 int
58 default 6
59
1da177e4
LT
60config CRIS
61 bool
62 default y
ec7748b5 63 select HAVE_IDE
1da177e4 64
bdc80787
PA
65config HZ
66 int
67 default 100
68
1da177e4
LT
69source "init/Kconfig"
70
dc52ddc0
MH
71source "kernel/Kconfig.freezer"
72
1da177e4
LT
73menu "General setup"
74
75source "fs/Kconfig.binfmt"
76
eb2746dd
JN
77config GENERIC_HARDIRQS
78 bool
79 default y
80
1da177e4
LT
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
114config OOM_REBOOT
115 bool "Enable reboot at out of memory"
1da177e4 116
923dd2a4 117source "kernel/Kconfig.preempt"
1da177e4 118
3f22ab27
DH
119source mm/Kconfig
120
1da177e4
LT
121endmenu
122
123menu "Hardware setup"
124
125choice
126 prompt "Processor type"
127 default ETRAX100LX
128
129config ETRAX100LX
130 bool "ETRAX-100LX-v1"
131 help
132 Support version 1 of the ETRAX 100LX.
133
134config ETRAX100LX_V2
135 bool "ETRAX-100LX-v2"
136 help
137 Support version 2 of the ETRAX 100LX.
138
139config SVINTO_SIM
140 bool "ETRAX-100LX-for-xsim-simulator"
141 help
142 Support the xsim ETRAX Simulator.
143
923dd2a4
JN
144config ETRAXFS
145 bool "ETRAX-FS-V32"
146 help
147 Support CRIS V32.
148
149config CRIS_MACH_ARTPEC3
150 bool "ARTPEC-3"
151 help
152 Support Axis ARTPEC-3.
153
1da177e4
LT
154endchoice
155
923dd2a4
JN
156config ETRAX_VCS_SIM
157 bool "VCS Simulator"
158 help
159 Setup hardware to be run in the VCS simulator.
160
1da177e4
LT
161config ETRAX_ARCH_V10
162 bool
163 default y if ETRAX100LX || ETRAX100LX_V2
164 default n if !(ETRAX100LX || ETRAX100LX_V2)
165
923dd2a4
JN
166config ETRAX_ARCH_V32
167 bool
168 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
169 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
170
1da177e4
LT
171config ETRAX_DRAM_SIZE
172 int "DRAM size (dec, in MB)"
173 default "8"
174 help
175 Size of DRAM (decimal in MB) typically 2, 8 or 16.
176
923dd2a4
JN
177config ETRAX_VMEM_SIZE
178 int "Video memory size (dec, in MB)"
179 depends on ETRAX_ARCH_V32 && !ETRAXFS
180 default 8 if !ETRAXFS
181 help
182 Size of Video accessible memory (decimal, in MB).
183
1da177e4 184config ETRAX_FLASH_BUSWIDTH
923dd2a4 185 int "Buswidth of NOR flash in bytes"
1da177e4
LT
186 default "2"
187 help
923dd2a4
JN
188 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
189
190config ETRAX_NANDFLASH_BUSWIDTH
191 int "Buswidth of NAND flash in bytes"
192 default "1"
193 help
194 Width in bytes of the NAND flash (1 or 2).
195
196config ETRAX_FLASH1_SIZE
197 int "FLASH1 size (dec, in MB. 0 = Unknown)"
198 default "0"
199
200choice
201 prompt "Product debug-port"
202 default ETRAX_DEBUG_PORT0
203
204config ETRAX_DEBUG_PORT0
205 bool "Serial-0"
206 help
207 Choose a serial port for the ETRAX debug console. Default to
208 port 0.
209
210config ETRAX_DEBUG_PORT1
211 bool "Serial-1"
212 help
213 Use serial port 1 for the console.
214
215config ETRAX_DEBUG_PORT2
216 bool "Serial-2"
217 help
218 Use serial port 2 for the console.
219
220config ETRAX_DEBUG_PORT3
221 bool "Serial-3"
222 help
223 Use serial port 3 for the console.
224
225config ETRAX_DEBUG_PORT_NULL
226 bool "disabled"
227 help
228 Disable serial-port debugging.
229
230endchoice
231
232choice
233 prompt "Kernel GDB port"
234 depends on ETRAX_KGDB
235 default ETRAX_KGDB_PORT0
236 help
237 Choose a serial port for kernel debugging. NOTE: This port should
238 not be enabled under Drivers for built-in interfaces (as it has its
239 own initialization code) and should not be the same as the debug port.
240
241config ETRAX_KGDB_PORT0
242 bool "Serial-0"
243 help
244 Use serial port 0 for kernel debugging.
245
246config ETRAX_KGDB_PORT1
247 bool "Serial-1"
248 help
249 Use serial port 1 for kernel debugging.
250
251config ETRAX_KGDB_PORT2
252 bool "Serial-2"
253 help
254 Use serial port 2 for kernel debugging.
255
256config ETRAX_KGDB_PORT3
257 bool "Serial-3"
258 help
259 Use serial port 3 for kernel debugging.
260
261endchoice
1da177e4
LT
262
263source arch/cris/arch-v10/Kconfig
2d33d563 264source arch/cris/arch-v32/Kconfig
1da177e4
LT
265
266endmenu
267
d5950b43
SR
268source "net/Kconfig"
269
1da177e4
LT
270# bring in ETRAX built-in drivers
271menu "Drivers for built-in interfaces"
2d33d563
JN
272source arch/cris/arch-v10/drivers/Kconfig
273source arch/cris/arch-v32/drivers/Kconfig
1da177e4 274
79e04fdb
JN
275config ETRAX_AXISFLASHMAP
276 bool "Axis flash-map support"
277 select MTD
278 select MTD_CFI
279 select MTD_CFI_AMDSTD
280 select MTD_JEDECPROBE if ETRAX_ARCH_V32
281 select MTD_CHAR
282 select MTD_BLOCK
283 select MTD_PARTITIONS
284 select MTD_CONCAT
285 select MTD_COMPLEX_MAPPINGS
286 help
287 This option enables MTD mapping of flash devices. Needed to use
288 flash memories. If unsure, say Y.
289
c3d6dddd
JN
290config ETRAX_RTC
291 bool "Real Time Clock support"
292 depends on ETRAX_I2C
293 help
294 Enables drivers for the Real-Time Clock battery-backed chips on
295 some products. The kernel reads the time when booting, and
296 the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a
297 rtc_time struct (see <file:include/asm-cris/rtc.h>) on the /dev/rtc
298 device. You can check the time with cat /proc/rtc, but
299 normal time reading should be done using libc function time and
300 friends.
301
923dd2a4
JN
302choice
303 prompt "RTC chip"
304 depends on ETRAX_RTC
305 default ETRAX_PCF8563 if ETRAX_ARCH_V32
306 default ETRAX_DS1302 if ETRAX_ARCH_V10
307
308config ETRAX_DS1302
309 depends on ETRAX_ARCH_V10
310 bool "DS1302"
311 help
312 Enables the driver for the DS1302 Real-Time Clock battery-backed
313 chip on some products.
314
315config ETRAX_PCF8563
316 bool "PCF8563"
317 help
318 Enables the driver for the PCF8563 Real-Time Clock battery-backed
319 chip on some products.
320
321endchoice
322
c974a9e5
JN
323config ETRAX_SYNCHRONOUS_SERIAL
324 bool "Synchronous serial-port support"
325 help
326 Select this to enable the synchronous serial port driver.
327
328config ETRAX_SYNCHRONOUS_SERIAL_PORT0
329 bool "Synchronous serial port 0 enabled"
330 depends on ETRAX_SYNCHRONOUS_SERIAL
331 help
332 Enabled synchronous serial port 0.
333
334config ETRAX_SYNCHRONOUS_SERIAL0_DMA
335 bool "Enable DMA on synchronous serial port 0."
336 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
337 help
338 A synchronous serial port can run in manual or DMA mode.
339 Selecting this option will make it run in DMA mode.
340
341config ETRAX_SYNCHRONOUS_SERIAL_PORT1
342 bool "Synchronous serial port 1 enabled"
343 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
344 help
345 Enabled synchronous serial port 1.
346
347config ETRAX_SYNCHRONOUS_SERIAL1_DMA
348 bool "Enable DMA on synchronous serial port 1."
349 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
350 help
351 A synchronous serial port can run in manual or DMA mode.
352 Selecting this option will make it run in DMA mode.
353
923dd2a4
JN
354choice
355 prompt "Network LED behavior"
356 depends on ETRAX_ETHERNET
357 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
358
359config ETRAX_NETWORK_LED_ON_WHEN_LINK
360 bool "LED_on_when_link"
361 help
362 Selecting LED_on_when_link will light the LED when there is a
363 connection and will flash off when there is activity.
364
365 Selecting LED_on_when_activity will light the LED only when
366 there is activity.
367
368 This setting will also affect the behaviour of other activity LEDs
369 e.g. Bluetooth.
370
371config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
372 bool "LED_on_when_activity"
373 help
374 Selecting LED_on_when_link will light the LED when there is a
375 connection and will flash off when there is activity.
376
377 Selecting LED_on_when_activity will light the LED only when
378 there is activity.
379
380 This setting will also affect the behaviour of other activity LEDs
381 e.g. Bluetooth.
382
383endchoice
384
385choice
386 prompt "Ser0 DMA out channel"
387 depends on ETRAX_SERIAL_PORT0
388 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
389 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
390
391config ETRAX_SERIAL_PORT0_NO_DMA_OUT
392 bool "Ser0 uses no DMA for output"
393 help
394 Do not use DMA for ser0 output.
395
396config ETRAX_SERIAL_PORT0_DMA6_OUT
397 bool "Ser0 uses DMA6 for output"
398 depends on ETRAXFS
399 help
400 Enables the DMA6 output channel for ser0 (ttyS0).
401 If you do not enable DMA, an interrupt for each character will be
402 used when transmitting data.
403 Normally you want to use DMA, unless you use the DMA channel for
404 something else.
405
406config ETRAX_SERIAL_PORT0_DMA0_OUT
407 bool "Ser0 uses DMA0 for output"
408 depends on CRIS_MACH_ARTPEC3
409 help
410 Enables the DMA0 output channel for ser0 (ttyS0).
411 If you do not enable DMA, an interrupt for each character will be
412 used when transmitting data.
413 Normally you want to use DMA, unless you use the DMA channel for
414 something else.
415
416endchoice
417
418choice
419 prompt "Ser0 DMA in channel "
420 depends on ETRAX_SERIAL_PORT0
421 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
422 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
423 help
424 What DMA channel to use for ser0.
425
426config ETRAX_SERIAL_PORT0_NO_DMA_IN
427 bool "Ser0 uses no DMA for input"
428 help
429 Do not use DMA for ser0 input.
430
431config ETRAX_SERIAL_PORT0_DMA7_IN
432 bool "Ser0 uses DMA7 for input"
433 depends on ETRAXFS
434 help
435 Enables the DMA7 input channel for ser0 (ttyS0).
436 If you do not enable DMA, an interrupt for each character will be
437 used when receiving data.
438 Normally you want to use DMA, unless you use the DMA channel for
439 something else.
440
441config ETRAX_SERIAL_PORT0_DMA1_IN
442 bool "Ser0 uses DMA1 for input"
443 depends on CRIS_MACH_ARTPEC3
444 help
445 Enables the DMA1 input channel for ser0 (ttyS0).
446 If you do not enable DMA, an interrupt for each character will be
692105b8 447 used when receiving data.
923dd2a4
JN
448 Normally you want to use DMA, unless you use the DMA channel for
449 something else.
450
451endchoice
452
453choice
454 prompt "Ser1 DMA in channel "
455 depends on ETRAX_SERIAL_PORT1
456 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
457 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
458 help
459 What DMA channel to use for ser1.
460
461config ETRAX_SERIAL_PORT1_NO_DMA_IN
462 bool "Ser1 uses no DMA for input"
463 help
464 Do not use DMA for ser1 input.
465
466config ETRAX_SERIAL_PORT1_DMA5_IN
467 bool "Ser1 uses DMA5 for input"
468 depends on ETRAX_ARCH_V32
469 help
470 Enables the DMA5 input channel for ser1 (ttyS1).
471 If you do not enable DMA, an interrupt for each character will be
472 used when receiving data.
473 Normally you want this on, unless you use the DMA channel for
474 something else.
475
476config ETRAX_SERIAL_PORT1_DMA9_IN
477 depends on ETRAX_ARCH_V10
478 bool "Ser1 uses DMA9 for input"
479
480endchoice
481
482
483choice
484 prompt "Ser1 DMA out channel"
485 depends on ETRAX_SERIAL_PORT1
486 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
487 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
488 help
489 What DMA channel to use for ser1.
490
491config ETRAX_SERIAL_PORT1_NO_DMA_OUT
492 bool "Ser1 uses no DMA for output"
493 help
494 Do not use DMA for ser1 output.
495
496config ETRAX_SERIAL_PORT1_DMA8_OUT
497 depends on ETRAX_ARCH_V10
498 bool "Ser1 uses DMA8 for output"
499
500config ETRAX_SERIAL_PORT1_DMA4_OUT
501 depends on ETRAX_ARCH_V32
502 bool "Ser1 uses DMA4 for output"
503 help
504 Enables the DMA4 output channel for ser1 (ttyS1).
505 If you do not enable DMA, an interrupt for each character will be
506 used when transmitting data.
507 Normally you want this on, unless you use the DMA channel for
508 something else.
509
510endchoice
511
512choice
513 prompt "Ser2 DMA out channel"
514 depends on ETRAX_SERIAL_PORT2
515 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
516 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
517
518config ETRAX_SERIAL_PORT2_NO_DMA_OUT
519 bool "Ser2 uses no DMA for output"
520 help
521 Do not use DMA for ser2 output.
522
523config ETRAX_SERIAL_PORT2_DMA2_OUT
524 bool "Ser2 uses DMA2 for output"
525 depends on ETRAXFS || ETRAX_ARCH_V10
526 help
527 Enables the DMA2 output channel for ser2 (ttyS2).
528 If you do not enable DMA, an interrupt for each character will be
529 used when transmitting data.
530 Normally you want to use DMA, unless you use the DMA channel for
531 something else.
532
533config ETRAX_SERIAL_PORT2_DMA6_OUT
534 bool "Ser2 uses DMA6 for output"
535 depends on CRIS_MACH_ARTPEC3
536 help
537 Enables the DMA6 output channel for ser2 (ttyS2).
538 If you do not enable DMA, an interrupt for each character will be
539 used when transmitting data.
540 Normally you want to use DMA, unless you use the DMA channel for
541 something else.
542
543endchoice
544
545choice
546 prompt "Ser2 DMA in channel"
547 depends on ETRAX_SERIAL_PORT2
548 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
549 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
550 help
551 What DMA channel to use for ser2.
552
553config ETRAX_SERIAL_PORT2_NO_DMA_IN
554 bool "Ser2 uses no DMA for input"
555 help
556 Do not use DMA for ser2 input.
557
558config ETRAX_SERIAL_PORT2_DMA3_IN
559 bool "Ser2 uses DMA3 for input"
560 depends on ETRAXFS || ETRAX_ARCH_V10
561 help
562 Enables the DMA3 input channel for ser2 (ttyS2).
563 If you do not enable DMA, an interrupt for each character will be
564 used when receiving data.
565 Normally you want to use DMA, unless you use the DMA channel for
566 something else.
567
568config ETRAX_SERIAL_PORT2_DMA7_IN
569 bool "Ser2 uses DMA7 for input"
570 depends on CRIS_MACH_ARTPEC3
571 help
572 Enables the DMA7 input channel for ser2 (ttyS2).
573 If you do not enable DMA, an interrupt for each character will be
692105b8 574 used when receiving data.
923dd2a4
JN
575 Normally you want to use DMA, unless you use the DMA channel for
576 something else.
577
578endchoice
579
580choice
581 prompt "Ser3 DMA in channel"
582 depends on ETRAX_SERIAL_PORT3
583 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
584 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
585 help
586 What DMA channel to use for ser3.
587
588config ETRAX_SERIAL_PORT3_NO_DMA_IN
589 bool "Ser3 uses no DMA for input"
590 help
591 Do not use DMA for ser3 input.
592
593config ETRAX_SERIAL_PORT3_DMA5_IN
594 depends on ETRAX_ARCH_V10
595 bool "DMA 5"
596
597config ETRAX_SERIAL_PORT3_DMA9_IN
598 bool "Ser3 uses DMA9 for input"
599 depends on ETRAXFS
600 help
601 Enables the DMA9 input channel for ser3 (ttyS3).
602 If you do not enable DMA, an interrupt for each character will be
603 used when receiving data.
604 Normally you want to use DMA, unless you use the DMA channel for
605 something else.
606
607config ETRAX_SERIAL_PORT3_DMA3_IN
608 bool "Ser3 uses DMA3 for input"
609 depends on CRIS_MACH_ARTPEC3
610 help
611 Enables the DMA3 input channel for ser3 (ttyS3).
612 If you do not enable DMA, an interrupt for each character will be
692105b8 613 used when receiving data.
923dd2a4
JN
614 Normally you want to use DMA, unless you use the DMA channel for
615 something else.
616
617endchoice
618
619choice
620 prompt "Ser3 DMA out channel"
621 depends on ETRAX_SERIAL_PORT3
622 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
623 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
624
625config ETRAX_SERIAL_PORT3_NO_DMA_OUT
626 bool "Ser3 uses no DMA for output"
627 help
628 Do not use DMA for ser3 output.
629
630config ETRAX_SERIAL_PORT3_DMA4_OUT
631 depends on ETRAX_ARCH_V10
632 bool "DMA 4"
633
634config ETRAX_SERIAL_PORT3_DMA8_OUT
635 bool "Ser3 uses DMA8 for output"
636 depends on ETRAXFS
637 help
638 Enables the DMA8 output channel for ser3 (ttyS3).
639 If you do not enable DMA, an interrupt for each character will be
640 used when transmitting data.
641 Normally you want to use DMA, unless you use the DMA channel for
642 something else.
643
644config ETRAX_SERIAL_PORT3_DMA2_OUT
645 bool "Ser3 uses DMA2 for output"
646 depends on CRIS_MACH_ARTPEC3
647 help
648 Enables the DMA2 output channel for ser3 (ttyS3).
649 If you do not enable DMA, an interrupt for each character will be
650 used when transmitting data.
651 Normally you want to use DMA, unless you use the DMA channel for
652 something else.
653
654endchoice
655
1da177e4
LT
656endmenu
657
658source "drivers/base/Kconfig"
659
660# standard linux drivers
661source "drivers/mtd/Kconfig"
662
663source "drivers/parport/Kconfig"
664
665source "drivers/pnp/Kconfig"
666
667source "drivers/block/Kconfig"
668
1da177e4
LT
669source "drivers/ide/Kconfig"
670
d5950b43 671source "drivers/net/Kconfig"
1da177e4 672
7b275523
JN
673source "drivers/i2c/Kconfig"
674
675source "drivers/rtc/Kconfig"
676
1da177e4
LT
677#
678# input before char - char/joystick depends on it. As does USB.
679#
680source "drivers/input/Kconfig"
681
682source "drivers/char/Kconfig"
683
1da177e4
LT
684source "fs/Kconfig"
685
1da177e4
LT
686source "drivers/usb/Kconfig"
687
2f86c3e6
GKH
688source "drivers/uwb/Kconfig"
689
6e38a2ba
DH
690source "drivers/staging/Kconfig"
691
1da177e4
LT
692source "arch/cris/Kconfig.debug"
693
694source "security/Kconfig"
695
696source "crypto/Kconfig"
697
698source "lib/Kconfig"