Make most arch asm/module.h files use asm-generic/module.h
[deliverable/linux.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
f0d1b0b3
DH
16config ARCH_HAS_ILOG2_U32
17 bool
18 default n
19
20config ARCH_HAS_ILOG2_U64
21 bool
22 default n
23
e9f26df1
AM
24config GENERIC_HWEIGHT
25 bool
26 default y
27
1da177e4
LT
28config GENERIC_CALIBRATE_DELAY
29 bool
30 default y
31
5ea81769
AV
32config NO_IOPORT
33 def_bool y
34
923dd2a4
JN
35config FORCE_MAX_ZONEORDER
36 int
37 default 6
38
1da177e4
LT
39config CRIS
40 bool
41 default y
ec7748b5 42 select HAVE_IDE
4c9c6a1b 43 select GENERIC_ATOMIC64
30139785 44 select HAVE_GENERIC_HARDIRQS
c1d7e01d 45 select ARCH_WANT_IPC_PARSE_VERSION
15825a5c 46 select GENERIC_IRQ_SHOW
4673ca8e 47 select GENERIC_IOMAP
a4cfc31d 48 select GENERIC_SMP_IDLE_THREAD if ETRAX_ARCH_V32
5227b636 49 select GENERIC_CMOS_UPDATE
786d35d4 50 select MODULES_USE_ELF_RELA
1da177e4 51
bdc80787
PA
52config HZ
53 int
54 default 100
55
1da177e4
LT
56source "init/Kconfig"
57
dc52ddc0
MH
58source "kernel/Kconfig.freezer"
59
1da177e4
LT
60menu "General setup"
61
62source "fs/Kconfig.binfmt"
63
64config ETRAX_CMDLINE
65 string "Kernel command line"
66 default "root=/dev/mtdblock3"
67 help
68 Pass additional commands to the kernel.
69
70config ETRAX_WATCHDOG
71 bool "Enable ETRAX watchdog"
72 help
73 Enable the built-in watchdog timer support on ETRAX based embedded
74 network computers.
75
76config ETRAX_WATCHDOG_NICE_DOGGY
77 bool "Disable watchdog during Oops printouts"
78 depends on ETRAX_WATCHDOG
79 help
80 By enabling this you make sure that the watchdog does not bite while
81 printing oopses. Recommended for development systems but not for
82 production releases.
83
84config ETRAX_FAST_TIMER
85 bool "Enable ETRAX fast timer API"
86 help
87 This options enables the API to a fast timer implementation using
88 timer1 to get sub jiffie resolution timers (primarily one-shot
89 timers).
90 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
91
923dd2a4
JN
92config ETRAX_KMALLOCED_MODULES
93 bool "Enable module allocation with kmalloc"
1da177e4 94 help
923dd2a4
JN
95 Enable module allocation with kmalloc instead of vmalloc.
96
97config OOM_REBOOT
98 bool "Enable reboot at out of memory"
1da177e4 99
923dd2a4 100source "kernel/Kconfig.preempt"
1da177e4 101
3f22ab27
DH
102source mm/Kconfig
103
1da177e4
LT
104endmenu
105
106menu "Hardware setup"
107
108choice
109 prompt "Processor type"
110 default ETRAX100LX
111
112config ETRAX100LX
113 bool "ETRAX-100LX-v1"
60dbd663 114 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
115 help
116 Support version 1 of the ETRAX 100LX.
117
118config ETRAX100LX_V2
119 bool "ETRAX-100LX-v2"
60dbd663 120 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
121 help
122 Support version 2 of the ETRAX 100LX.
123
124config SVINTO_SIM
125 bool "ETRAX-100LX-for-xsim-simulator"
60dbd663 126 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
127 help
128 Support the xsim ETRAX Simulator.
129
923dd2a4
JN
130config ETRAXFS
131 bool "ETRAX-FS-V32"
132 help
133 Support CRIS V32.
134
135config CRIS_MACH_ARTPEC3
136 bool "ARTPEC-3"
137 help
138 Support Axis ARTPEC-3.
139
1da177e4
LT
140endchoice
141
923dd2a4
JN
142config ETRAX_VCS_SIM
143 bool "VCS Simulator"
144 help
145 Setup hardware to be run in the VCS simulator.
146
1da177e4
LT
147config ETRAX_ARCH_V10
148 bool
149 default y if ETRAX100LX || ETRAX100LX_V2
150 default n if !(ETRAX100LX || ETRAX100LX_V2)
151
923dd2a4
JN
152config ETRAX_ARCH_V32
153 bool
154 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
155 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
156
1da177e4
LT
157config 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
923dd2a4
JN
163config 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
1da177e4 170config ETRAX_FLASH_BUSWIDTH
923dd2a4 171 int "Buswidth of NOR flash in bytes"
1da177e4
LT
172 default "2"
173 help
923dd2a4
JN
174 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
175
176config 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
182config ETRAX_FLASH1_SIZE
183 int "FLASH1 size (dec, in MB. 0 = Unknown)"
184 default "0"
185
186choice
187 prompt "Product debug-port"
188 default ETRAX_DEBUG_PORT0
189
190config 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
196config ETRAX_DEBUG_PORT1
197 bool "Serial-1"
198 help
199 Use serial port 1 for the console.
200
201config ETRAX_DEBUG_PORT2
202 bool "Serial-2"
203 help
204 Use serial port 2 for the console.
205
206config ETRAX_DEBUG_PORT3
207 bool "Serial-3"
208 help
209 Use serial port 3 for the console.
210
211config ETRAX_DEBUG_PORT_NULL
212 bool "disabled"
213 help
214 Disable serial-port debugging.
215
216endchoice
217
218choice
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
227config ETRAX_KGDB_PORT0
228 bool "Serial-0"
229 help
230 Use serial port 0 for kernel debugging.
231
232config ETRAX_KGDB_PORT1
233 bool "Serial-1"
234 help
235 Use serial port 1 for kernel debugging.
236
237config ETRAX_KGDB_PORT2
238 bool "Serial-2"
239 help
240 Use serial port 2 for kernel debugging.
241
242config ETRAX_KGDB_PORT3
243 bool "Serial-3"
244 help
245 Use serial port 3 for kernel debugging.
246
247endchoice
1da177e4
LT
248
249source arch/cris/arch-v10/Kconfig
2d33d563 250source arch/cris/arch-v32/Kconfig
1da177e4
LT
251
252endmenu
253
d5950b43
SR
254source "net/Kconfig"
255
1da177e4
LT
256# bring in ETRAX built-in drivers
257menu "Drivers for built-in interfaces"
2d33d563
JN
258source arch/cris/arch-v10/drivers/Kconfig
259source arch/cris/arch-v32/drivers/Kconfig
1da177e4 260
79e04fdb
JN
261config 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
79e04fdb
JN
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
c3d6dddd
JN
274config 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
0348299a
JFS
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
c3d6dddd
JN
283 normal time reading should be done using libc function time and
284 friends.
285
923dd2a4
JN
286choice
287 prompt "RTC chip"
288 depends on ETRAX_RTC
7673538c 289 default ETRAX_DS1302
923dd2a4
JN
290
291config 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
298config 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
304endchoice
305
c974a9e5
JN
306config ETRAX_SYNCHRONOUS_SERIAL
307 bool "Synchronous serial-port support"
308 help
309 Select this to enable the synchronous serial port driver.
310
311config 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
317config 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
324config 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
330config 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
923dd2a4
JN
337choice
338 prompt "Network LED behavior"
339 depends on ETRAX_ETHERNET
340 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
341
342config 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
354config 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
366endchoice
367
368choice
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
374config 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
379config 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
389config 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
399endchoice
400
401choice
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
409config 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
414config 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
424config 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
692105b8 430 used when receiving data.
923dd2a4
JN
431 Normally you want to use DMA, unless you use the DMA channel for
432 something else.
433
434endchoice
435
436choice
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
444config 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
449config 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
459config ETRAX_SERIAL_PORT1_DMA9_IN
460 depends on ETRAX_ARCH_V10
461 bool "Ser1 uses DMA9 for input"
462
463endchoice
464
465
466choice
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
474config 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
479config ETRAX_SERIAL_PORT1_DMA8_OUT
480 depends on ETRAX_ARCH_V10
481 bool "Ser1 uses DMA8 for output"
482
483config 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
493endchoice
494
495choice
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
501config 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
506config 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
516config 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
526endchoice
527
528choice
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
536config 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
541config 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
551config 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
692105b8 557 used when receiving data.
923dd2a4
JN
558 Normally you want to use DMA, unless you use the DMA channel for
559 something else.
560
561endchoice
562
563choice
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
571config 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
576config ETRAX_SERIAL_PORT3_DMA5_IN
577 depends on ETRAX_ARCH_V10
578 bool "DMA 5"
579
580config 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
590config 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
692105b8 596 used when receiving data.
923dd2a4
JN
597 Normally you want to use DMA, unless you use the DMA channel for
598 something else.
599
600endchoice
601
602choice
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
608config 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
613config ETRAX_SERIAL_PORT3_DMA4_OUT
614 depends on ETRAX_ARCH_V10
615 bool "DMA 4"
616
617config 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
627config 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
637endchoice
638
1da177e4
LT
639endmenu
640
641source "drivers/base/Kconfig"
642
643# standard linux drivers
644source "drivers/mtd/Kconfig"
645
646source "drivers/parport/Kconfig"
647
648source "drivers/pnp/Kconfig"
649
650source "drivers/block/Kconfig"
651
1da177e4
LT
652source "drivers/ide/Kconfig"
653
d5950b43 654source "drivers/net/Kconfig"
1da177e4 655
7b275523
JN
656source "drivers/i2c/Kconfig"
657
658source "drivers/rtc/Kconfig"
659
1da177e4
LT
660#
661# input before char - char/joystick depends on it. As does USB.
662#
663source "drivers/input/Kconfig"
664
665source "drivers/char/Kconfig"
666
1da177e4
LT
667source "fs/Kconfig"
668
1da177e4
LT
669source "drivers/usb/Kconfig"
670
2f86c3e6
GKH
671source "drivers/uwb/Kconfig"
672
6e38a2ba
DH
673source "drivers/staging/Kconfig"
674
1da177e4
LT
675source "arch/cris/Kconfig.debug"
676
677source "security/Kconfig"
678
679source "crypto/Kconfig"
680
681source "lib/Kconfig"
This page took 0.545299 seconds and 5 git commands to generate.