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