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