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