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