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