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