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