kbuild: migrate all arch to the kconfig mainmenu upgrade
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / cris / Kconfig
CommitLineData
1da177e4
LT
1config MMU
2 bool
3 default y
4
66701b14
CL
5config ZONE_DMA
6 bool
7 default y
8
1da177e4
LT
9config RWSEM_GENERIC_SPINLOCK
10 bool
11 default y
12
13config RWSEM_XCHGADD_ALGORITHM
14 bool
15
ba875ba6
JS
16config GENERIC_TIME
17 def_bool y
18
8eff8a5c
JS
19config GENERIC_CMOS_UPDATE
20 def_bool y
21
ba875ba6
JS
22config ARCH_USES_GETTIMEOFFSET
23 def_bool y
24
923dd2a4
JN
25config GENERIC_IOMAP
26 bool
27 default y
28
f0d1b0b3
DH
29config ARCH_HAS_ILOG2_U32
30 bool
31 default n
32
33config ARCH_HAS_ILOG2_U64
34 bool
35 default n
36
e9f26df1
AM
37config GENERIC_FIND_NEXT_BIT
38 bool
39 default y
40
41config GENERIC_HWEIGHT
42 bool
43 default y
44
1da177e4
LT
45config GENERIC_CALIBRATE_DELAY
46 bool
47 default y
48
5ea81769
AV
49config NO_IOPORT
50 def_bool y
51
923dd2a4
JN
52config FORCE_MAX_ZONEORDER
53 int
54 default 6
55
1da177e4
LT
56config CRIS
57 bool
58 default y
ec7748b5 59 select HAVE_IDE
1da177e4 60
bdc80787
PA
61config HZ
62 int
63 default 100
64
1da177e4
LT
65source "init/Kconfig"
66
dc52ddc0
MH
67source "kernel/Kconfig.freezer"
68
1da177e4
LT
69menu "General setup"
70
71source "fs/Kconfig.binfmt"
72
eb2746dd
JN
73config GENERIC_HARDIRQS
74 bool
75 default y
76
1da177e4
LT
77config ETRAX_CMDLINE
78 string "Kernel command line"
79 default "root=/dev/mtdblock3"
80 help
81 Pass additional commands to the kernel.
82
83config 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
89config 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
97config 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
923dd2a4
JN
105config ETRAX_KMALLOCED_MODULES
106 bool "Enable module allocation with kmalloc"
1da177e4 107 help
923dd2a4
JN
108 Enable module allocation with kmalloc instead of vmalloc.
109
110config OOM_REBOOT
111 bool "Enable reboot at out of memory"
1da177e4 112
923dd2a4 113source "kernel/Kconfig.preempt"
1da177e4 114
3f22ab27
DH
115source mm/Kconfig
116
1da177e4
LT
117endmenu
118
119menu "Hardware setup"
120
121choice
122 prompt "Processor type"
123 default ETRAX100LX
124
125config ETRAX100LX
126 bool "ETRAX-100LX-v1"
127 help
128 Support version 1 of the ETRAX 100LX.
129
130config ETRAX100LX_V2
131 bool "ETRAX-100LX-v2"
132 help
133 Support version 2 of the ETRAX 100LX.
134
135config SVINTO_SIM
136 bool "ETRAX-100LX-for-xsim-simulator"
137 help
138 Support the xsim ETRAX Simulator.
139
923dd2a4
JN
140config ETRAXFS
141 bool "ETRAX-FS-V32"
142 help
143 Support CRIS V32.
144
145config CRIS_MACH_ARTPEC3
146 bool "ARTPEC-3"
147 help
148 Support Axis ARTPEC-3.
149
1da177e4
LT
150endchoice
151
923dd2a4
JN
152config ETRAX_VCS_SIM
153 bool "VCS Simulator"
154 help
155 Setup hardware to be run in the VCS simulator.
156
1da177e4
LT
157config ETRAX_ARCH_V10
158 bool
159 default y if ETRAX100LX || ETRAX100LX_V2
160 default n if !(ETRAX100LX || ETRAX100LX_V2)
161
923dd2a4
JN
162config ETRAX_ARCH_V32
163 bool
164 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
165 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
166
1da177e4
LT
167config 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
923dd2a4
JN
173config 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
1da177e4 180config ETRAX_FLASH_BUSWIDTH
923dd2a4 181 int "Buswidth of NOR flash in bytes"
1da177e4
LT
182 default "2"
183 help
923dd2a4
JN
184 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
185
186config 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
192config ETRAX_FLASH1_SIZE
193 int "FLASH1 size (dec, in MB. 0 = Unknown)"
194 default "0"
195
196choice
197 prompt "Product debug-port"
198 default ETRAX_DEBUG_PORT0
199
200config 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
206config ETRAX_DEBUG_PORT1
207 bool "Serial-1"
208 help
209 Use serial port 1 for the console.
210
211config ETRAX_DEBUG_PORT2
212 bool "Serial-2"
213 help
214 Use serial port 2 for the console.
215
216config ETRAX_DEBUG_PORT3
217 bool "Serial-3"
218 help
219 Use serial port 3 for the console.
220
221config ETRAX_DEBUG_PORT_NULL
222 bool "disabled"
223 help
224 Disable serial-port debugging.
225
226endchoice
227
228choice
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
237config ETRAX_KGDB_PORT0
238 bool "Serial-0"
239 help
240 Use serial port 0 for kernel debugging.
241
242config ETRAX_KGDB_PORT1
243 bool "Serial-1"
244 help
245 Use serial port 1 for kernel debugging.
246
247config ETRAX_KGDB_PORT2
248 bool "Serial-2"
249 help
250 Use serial port 2 for kernel debugging.
251
252config ETRAX_KGDB_PORT3
253 bool "Serial-3"
254 help
255 Use serial port 3 for kernel debugging.
256
257endchoice
1da177e4
LT
258
259source arch/cris/arch-v10/Kconfig
2d33d563 260source arch/cris/arch-v32/Kconfig
1da177e4
LT
261
262endmenu
263
d5950b43
SR
264source "net/Kconfig"
265
1da177e4
LT
266# bring in ETRAX built-in drivers
267menu "Drivers for built-in interfaces"
2d33d563
JN
268source arch/cris/arch-v10/drivers/Kconfig
269source arch/cris/arch-v32/drivers/Kconfig
1da177e4 270
79e04fdb
JN
271config 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
c3d6dddd
JN
286config 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
923dd2a4
JN
298choice
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
304config 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
311config 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
317endchoice
318
c974a9e5
JN
319config ETRAX_SYNCHRONOUS_SERIAL
320 bool "Synchronous serial-port support"
321 help
322 Select this to enable the synchronous serial port driver.
323
324config 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
330config 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
337config 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
343config 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
923dd2a4
JN
350choice
351 prompt "Network LED behavior"
352 depends on ETRAX_ETHERNET
353 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
354
355config 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
367config 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
379endchoice
380
381choice
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
387config 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
392config 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
402config 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
412endchoice
413
414choice
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
422config 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
427config 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
437config 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
692105b8 443 used when receiving data.
923dd2a4
JN
444 Normally you want to use DMA, unless you use the DMA channel for
445 something else.
446
447endchoice
448
449choice
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
457config 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
462config 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
472config ETRAX_SERIAL_PORT1_DMA9_IN
473 depends on ETRAX_ARCH_V10
474 bool "Ser1 uses DMA9 for input"
475
476endchoice
477
478
479choice
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
487config 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
492config ETRAX_SERIAL_PORT1_DMA8_OUT
493 depends on ETRAX_ARCH_V10
494 bool "Ser1 uses DMA8 for output"
495
496config 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
506endchoice
507
508choice
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
514config 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
519config 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
529config 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
539endchoice
540
541choice
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
549config 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
554config 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
564config 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
692105b8 570 used when receiving data.
923dd2a4
JN
571 Normally you want to use DMA, unless you use the DMA channel for
572 something else.
573
574endchoice
575
576choice
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
584config 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
589config ETRAX_SERIAL_PORT3_DMA5_IN
590 depends on ETRAX_ARCH_V10
591 bool "DMA 5"
592
593config 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
603config 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
692105b8 609 used when receiving data.
923dd2a4
JN
610 Normally you want to use DMA, unless you use the DMA channel for
611 something else.
612
613endchoice
614
615choice
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
621config 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
626config ETRAX_SERIAL_PORT3_DMA4_OUT
627 depends on ETRAX_ARCH_V10
628 bool "DMA 4"
629
630config 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
640config 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
650endchoice
651
1da177e4
LT
652endmenu
653
654source "drivers/base/Kconfig"
655
656# standard linux drivers
657source "drivers/mtd/Kconfig"
658
659source "drivers/parport/Kconfig"
660
661source "drivers/pnp/Kconfig"
662
663source "drivers/block/Kconfig"
664
1da177e4
LT
665source "drivers/ide/Kconfig"
666
d5950b43 667source "drivers/net/Kconfig"
1da177e4 668
7b275523
JN
669source "drivers/i2c/Kconfig"
670
671source "drivers/rtc/Kconfig"
672
1da177e4
LT
673#
674# input before char - char/joystick depends on it. As does USB.
675#
676source "drivers/input/Kconfig"
677
678source "drivers/char/Kconfig"
679
1da177e4
LT
680source "fs/Kconfig"
681
1da177e4
LT
682source "drivers/usb/Kconfig"
683
2f86c3e6
GKH
684source "drivers/uwb/Kconfig"
685
6e38a2ba
DH
686source "drivers/staging/Kconfig"
687
1da177e4
LT
688source "arch/cris/Kconfig.debug"
689
690source "security/Kconfig"
691
692source "crypto/Kconfig"
693
694source "lib/Kconfig"