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