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