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