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