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