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