aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/Kconfig
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2007-12-05 12:10:36 -0500
committerJesper Nilsson <jesper.nilsson@axis.com>2008-02-08 05:06:22 -0500
commit923dd2a46349bb1bb94aa894b7ff61093618d68a (patch)
treeb27462e645d8f05fb30449ccb956a4adaa5eee04 /arch/cris/Kconfig
parenta4ffc0a0b240a29cbe489f6db9dae112a49ef1c1 (diff)
CRIS: Rearrange Kconfigs for v10 and v32 to allow compilation without warnings.
- Remove some unneeded configs and add some new ones. - Merge common config items to common file instead of duplicating them. - Pull in standard Kconfig.preempt. - Remove some unneeded Kconfigs for subsystems not (yet) available on CRIS (md, scsi, ieee1394, i2o, isdn, telephony, media, pcmcia, pci) - Rename CRISv32 config items which had different types from CRISv10. (ETRAX_LED2G, ETRAX_LED2R, ETRAX_LED3G, ETRAX_LED3R, ETRAX_I2C_DATA_PORT, ETRAX_I2C_CLK_PORT)
Diffstat (limited to 'arch/cris/Kconfig')
-rw-r--r--arch/cris/Kconfig483
1 files changed, 443 insertions, 40 deletions
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig
index 27b082ac7f11..0e9926d71a31 100644
--- a/arch/cris/Kconfig
+++ b/arch/cris/Kconfig
@@ -13,10 +13,6 @@ config ZONE_DMA
13 bool 13 bool
14 default y 14 default y
15 15
16config NO_DMA
17 bool
18 default y
19
20config RWSEM_GENERIC_SPINLOCK 16config RWSEM_GENERIC_SPINLOCK
21 bool 17 bool
22 default y 18 default y
@@ -24,6 +20,10 @@ config RWSEM_GENERIC_SPINLOCK
24config RWSEM_XCHGADD_ALGORITHM 20config RWSEM_XCHGADD_ALGORITHM
25 bool 21 bool
26 22
23config GENERIC_IOMAP
24 bool
25 default y
26
27config ARCH_HAS_ILOG2_U32 27config ARCH_HAS_ILOG2_U32
28 bool 28 bool
29 default n 29 default n
@@ -44,13 +44,16 @@ config GENERIC_CALIBRATE_DELAY
44 bool 44 bool
45 default y 45 default y
46 46
47config IRQ_PER_CPU
48 bool
49 default y
50
51config NO_IOPORT 47config NO_IOPORT
52 def_bool y 48 def_bool y
53 49
50config NO_IOMEM
51 def_bool y
52
53config FORCE_MAX_ZONEORDER
54 int
55 default 6
56
54config CRIS 57config CRIS
55 bool 58 bool
56 default y 59 default y
@@ -93,17 +96,15 @@ config ETRAX_FAST_TIMER
93 timers). 96 timers).
94 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled. 97 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
95 98
96config PREEMPT 99config ETRAX_KMALLOCED_MODULES
97 bool "Preemptible Kernel" 100 bool "Enable module allocation with kmalloc"
98 help 101 help
99 This option reduces the latency of the kernel when reacting to 102 Enable module allocation with kmalloc instead of vmalloc.
100 real-time or interactive events by allowing a low priority process to 103
101 be preempted even if it is in kernel mode executing a system call. 104config OOM_REBOOT
102 This allows applications to run more reliably even when the system is 105 bool "Enable reboot at out of memory"
103 under load.
104 106
105 Say Y here if you are building a kernel for a desktop, embedded 107source "kernel/Kconfig.preempt"
106 or real-time system. Say N if you are unsure.
107 108
108source mm/Kconfig 109source mm/Kconfig
109 110
@@ -130,24 +131,124 @@ config SVINTO_SIM
130 help 131 help
131 Support the xsim ETRAX Simulator. 132 Support the xsim ETRAX Simulator.
132 133
134config ETRAXFS
135 bool "ETRAX-FS-V32"
136 help
137 Support CRIS V32.
138
139config CRIS_MACH_ARTPEC3
140 bool "ARTPEC-3"
141 help
142 Support Axis ARTPEC-3.
143
133endchoice 144endchoice
134 145
146config ETRAX_VCS_SIM
147 bool "VCS Simulator"
148 help
149 Setup hardware to be run in the VCS simulator.
150
135config ETRAX_ARCH_V10 151config ETRAX_ARCH_V10
136 bool 152 bool
137 default y if ETRAX100LX || ETRAX100LX_V2 153 default y if ETRAX100LX || ETRAX100LX_V2
138 default n if !(ETRAX100LX || ETRAX100LX_V2) 154 default n if !(ETRAX100LX || ETRAX100LX_V2)
139 155
156config ETRAX_ARCH_V32
157 bool
158 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
159 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
160
140config ETRAX_DRAM_SIZE 161config ETRAX_DRAM_SIZE
141 int "DRAM size (dec, in MB)" 162 int "DRAM size (dec, in MB)"
142 default "8" 163 default "8"
143 help 164 help
144 Size of DRAM (decimal in MB) typically 2, 8 or 16. 165 Size of DRAM (decimal in MB) typically 2, 8 or 16.
145 166
167config ETRAX_VMEM_SIZE
168 int "Video memory size (dec, in MB)"
169 depends on ETRAX_ARCH_V32 && !ETRAXFS
170 default 8 if !ETRAXFS
171 help
172 Size of Video accessible memory (decimal, in MB).
173
146config ETRAX_FLASH_BUSWIDTH 174config ETRAX_FLASH_BUSWIDTH
147 int "Buswidth of flash in bytes" 175 int "Buswidth of NOR flash in bytes"
148 default "2" 176 default "2"
149 help 177 help
150 Width in bytes of the Flash bus (1, 2 or 4). Is usually 2. 178 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
179
180config ETRAX_NANDFLASH_BUSWIDTH
181 int "Buswidth of NAND flash in bytes"
182 default "1"
183 help
184 Width in bytes of the NAND flash (1 or 2).
185
186config ETRAX_FLASH1_SIZE
187 int "FLASH1 size (dec, in MB. 0 = Unknown)"
188 default "0"
189
190choice
191 prompt "Product debug-port"
192 default ETRAX_DEBUG_PORT0
193
194config ETRAX_DEBUG_PORT0
195 bool "Serial-0"
196 help
197 Choose a serial port for the ETRAX debug console. Default to
198 port 0.
199
200config ETRAX_DEBUG_PORT1
201 bool "Serial-1"
202 help
203 Use serial port 1 for the console.
204
205config ETRAX_DEBUG_PORT2
206 bool "Serial-2"
207 help
208 Use serial port 2 for the console.
209
210config ETRAX_DEBUG_PORT3
211 bool "Serial-3"
212 help
213 Use serial port 3 for the console.
214
215config ETRAX_DEBUG_PORT_NULL
216 bool "disabled"
217 help
218 Disable serial-port debugging.
219
220endchoice
221
222choice
223 prompt "Kernel GDB port"
224 depends on ETRAX_KGDB
225 default ETRAX_KGDB_PORT0
226 help
227 Choose a serial port for kernel debugging. NOTE: This port should
228 not be enabled under Drivers for built-in interfaces (as it has its
229 own initialization code) and should not be the same as the debug port.
230
231config ETRAX_KGDB_PORT0
232 bool "Serial-0"
233 help
234 Use serial port 0 for kernel debugging.
235
236config ETRAX_KGDB_PORT1
237 bool "Serial-1"
238 help
239 Use serial port 1 for kernel debugging.
240
241config ETRAX_KGDB_PORT2
242 bool "Serial-2"
243 help
244 Use serial port 2 for kernel debugging.
245
246config ETRAX_KGDB_PORT3
247 bool "Serial-3"
248 help
249 Use serial port 3 for kernel debugging.
250
251endchoice
151 252
152source arch/cris/arch-v10/Kconfig 253source arch/cris/arch-v10/Kconfig
153source arch/cris/arch-v32/Kconfig 254source arch/cris/arch-v32/Kconfig
@@ -161,6 +262,329 @@ menu "Drivers for built-in interfaces"
161source arch/cris/arch-v10/drivers/Kconfig 262source arch/cris/arch-v10/drivers/Kconfig
162source arch/cris/arch-v32/drivers/Kconfig 263source arch/cris/arch-v32/drivers/Kconfig
163 264
265choice
266 prompt "RTC chip"
267 depends on ETRAX_RTC
268 default ETRAX_PCF8563 if ETRAX_ARCH_V32
269 default ETRAX_DS1302 if ETRAX_ARCH_V10
270
271config ETRAX_DS1302
272 depends on ETRAX_ARCH_V10
273 bool "DS1302"
274 help
275 Enables the driver for the DS1302 Real-Time Clock battery-backed
276 chip on some products.
277
278config ETRAX_PCF8563
279 bool "PCF8563"
280 help
281 Enables the driver for the PCF8563 Real-Time Clock battery-backed
282 chip on some products.
283
284endchoice
285
286choice
287 prompt "Network LED behavior"
288 depends on ETRAX_ETHERNET
289 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
290
291config ETRAX_NETWORK_LED_ON_WHEN_LINK
292 bool "LED_on_when_link"
293 help
294 Selecting LED_on_when_link will light the LED when there is a
295 connection and will flash off when there is activity.
296
297 Selecting LED_on_when_activity will light the LED only when
298 there is activity.
299
300 This setting will also affect the behaviour of other activity LEDs
301 e.g. Bluetooth.
302
303config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
304 bool "LED_on_when_activity"
305 help
306 Selecting LED_on_when_link will light the LED when there is a
307 connection and will flash off when there is activity.
308
309 Selecting LED_on_when_activity will light the LED only when
310 there is activity.
311
312 This setting will also affect the behaviour of other activity LEDs
313 e.g. Bluetooth.
314
315endchoice
316
317choice
318 prompt "Ser0 DMA out channel"
319 depends on ETRAX_SERIAL_PORT0
320 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
321 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
322
323config ETRAX_SERIAL_PORT0_NO_DMA_OUT
324 bool "Ser0 uses no DMA for output"
325 help
326 Do not use DMA for ser0 output.
327
328config ETRAX_SERIAL_PORT0_DMA6_OUT
329 bool "Ser0 uses DMA6 for output"
330 depends on ETRAXFS
331 help
332 Enables the DMA6 output channel for ser0 (ttyS0).
333 If you do not enable DMA, an interrupt for each character will be
334 used when transmitting data.
335 Normally you want to use DMA, unless you use the DMA channel for
336 something else.
337
338config ETRAX_SERIAL_PORT0_DMA0_OUT
339 bool "Ser0 uses DMA0 for output"
340 depends on CRIS_MACH_ARTPEC3
341 help
342 Enables the DMA0 output channel for ser0 (ttyS0).
343 If you do not enable DMA, an interrupt for each character will be
344 used when transmitting data.
345 Normally you want to use DMA, unless you use the DMA channel for
346 something else.
347
348endchoice
349
350choice
351 prompt "Ser0 DMA in channel "
352 depends on ETRAX_SERIAL_PORT0
353 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
354 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
355 help
356 What DMA channel to use for ser0.
357
358config ETRAX_SERIAL_PORT0_NO_DMA_IN
359 bool "Ser0 uses no DMA for input"
360 help
361 Do not use DMA for ser0 input.
362
363config ETRAX_SERIAL_PORT0_DMA7_IN
364 bool "Ser0 uses DMA7 for input"
365 depends on ETRAXFS
366 help
367 Enables the DMA7 input channel for ser0 (ttyS0).
368 If you do not enable DMA, an interrupt for each character will be
369 used when receiving data.
370 Normally you want to use DMA, unless you use the DMA channel for
371 something else.
372
373config ETRAX_SERIAL_PORT0_DMA1_IN
374 bool "Ser0 uses DMA1 for input"
375 depends on CRIS_MACH_ARTPEC3
376 help
377 Enables the DMA1 input channel for ser0 (ttyS0).
378 If you do not enable DMA, an interrupt for each character will be
379 used when receiveing data.
380 Normally you want to use DMA, unless you use the DMA channel for
381 something else.
382
383endchoice
384
385choice
386 prompt "Ser1 DMA in channel "
387 depends on ETRAX_SERIAL_PORT1
388 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
389 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
390 help
391 What DMA channel to use for ser1.
392
393config ETRAX_SERIAL_PORT1_NO_DMA_IN
394 bool "Ser1 uses no DMA for input"
395 help
396 Do not use DMA for ser1 input.
397
398config ETRAX_SERIAL_PORT1_DMA5_IN
399 bool "Ser1 uses DMA5 for input"
400 depends on ETRAX_ARCH_V32
401 help
402 Enables the DMA5 input channel for ser1 (ttyS1).
403 If you do not enable DMA, an interrupt for each character will be
404 used when receiving data.
405 Normally you want this on, unless you use the DMA channel for
406 something else.
407
408config ETRAX_SERIAL_PORT1_DMA9_IN
409 depends on ETRAX_ARCH_V10
410 bool "Ser1 uses DMA9 for input"
411
412endchoice
413
414
415choice
416 prompt "Ser1 DMA out channel"
417 depends on ETRAX_SERIAL_PORT1
418 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
419 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
420 help
421 What DMA channel to use for ser1.
422
423config ETRAX_SERIAL_PORT1_NO_DMA_OUT
424 bool "Ser1 uses no DMA for output"
425 help
426 Do not use DMA for ser1 output.
427
428config ETRAX_SERIAL_PORT1_DMA8_OUT
429 depends on ETRAX_ARCH_V10
430 bool "Ser1 uses DMA8 for output"
431
432config ETRAX_SERIAL_PORT1_DMA4_OUT
433 depends on ETRAX_ARCH_V32
434 bool "Ser1 uses DMA4 for output"
435 help
436 Enables the DMA4 output channel for ser1 (ttyS1).
437 If you do not enable DMA, an interrupt for each character will be
438 used when transmitting data.
439 Normally you want this on, unless you use the DMA channel for
440 something else.
441
442endchoice
443
444choice
445 prompt "Ser2 DMA out channel"
446 depends on ETRAX_SERIAL_PORT2
447 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
448 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
449
450config ETRAX_SERIAL_PORT2_NO_DMA_OUT
451 bool "Ser2 uses no DMA for output"
452 help
453 Do not use DMA for ser2 output.
454
455config ETRAX_SERIAL_PORT2_DMA2_OUT
456 bool "Ser2 uses DMA2 for output"
457 depends on ETRAXFS || ETRAX_ARCH_V10
458 help
459 Enables the DMA2 output channel for ser2 (ttyS2).
460 If you do not enable DMA, an interrupt for each character will be
461 used when transmitting data.
462 Normally you want to use DMA, unless you use the DMA channel for
463 something else.
464
465config ETRAX_SERIAL_PORT2_DMA6_OUT
466 bool "Ser2 uses DMA6 for output"
467 depends on CRIS_MACH_ARTPEC3
468 help
469 Enables the DMA6 output channel for ser2 (ttyS2).
470 If you do not enable DMA, an interrupt for each character will be
471 used when transmitting data.
472 Normally you want to use DMA, unless you use the DMA channel for
473 something else.
474
475endchoice
476
477choice
478 prompt "Ser2 DMA in channel"
479 depends on ETRAX_SERIAL_PORT2
480 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
481 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
482 help
483 What DMA channel to use for ser2.
484
485config ETRAX_SERIAL_PORT2_NO_DMA_IN
486 bool "Ser2 uses no DMA for input"
487 help
488 Do not use DMA for ser2 input.
489
490config ETRAX_SERIAL_PORT2_DMA3_IN
491 bool "Ser2 uses DMA3 for input"
492 depends on ETRAXFS || ETRAX_ARCH_V10
493 help
494 Enables the DMA3 input channel for ser2 (ttyS2).
495 If you do not enable DMA, an interrupt for each character will be
496 used when receiving data.
497 Normally you want to use DMA, unless you use the DMA channel for
498 something else.
499
500config ETRAX_SERIAL_PORT2_DMA7_IN
501 bool "Ser2 uses DMA7 for input"
502 depends on CRIS_MACH_ARTPEC3
503 help
504 Enables the DMA7 input channel for ser2 (ttyS2).
505 If you do not enable DMA, an interrupt for each character will be
506 used when receiveing data.
507 Normally you want to use DMA, unless you use the DMA channel for
508 something else.
509
510endchoice
511
512choice
513 prompt "Ser3 DMA in channel"
514 depends on ETRAX_SERIAL_PORT3
515 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
516 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
517 help
518 What DMA channel to use for ser3.
519
520config ETRAX_SERIAL_PORT3_NO_DMA_IN
521 bool "Ser3 uses no DMA for input"
522 help
523 Do not use DMA for ser3 input.
524
525config ETRAX_SERIAL_PORT3_DMA5_IN
526 depends on ETRAX_ARCH_V10
527 bool "DMA 5"
528
529config ETRAX_SERIAL_PORT3_DMA9_IN
530 bool "Ser3 uses DMA9 for input"
531 depends on ETRAXFS
532 help
533 Enables the DMA9 input channel for ser3 (ttyS3).
534 If you do not enable DMA, an interrupt for each character will be
535 used when receiving data.
536 Normally you want to use DMA, unless you use the DMA channel for
537 something else.
538
539config ETRAX_SERIAL_PORT3_DMA3_IN
540 bool "Ser3 uses DMA3 for input"
541 depends on CRIS_MACH_ARTPEC3
542 help
543 Enables the DMA3 input channel for ser3 (ttyS3).
544 If you do not enable DMA, an interrupt for each character will be
545 used when receiveing data.
546 Normally you want to use DMA, unless you use the DMA channel for
547 something else.
548
549endchoice
550
551choice
552 prompt "Ser3 DMA out channel"
553 depends on ETRAX_SERIAL_PORT3
554 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
555 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
556
557config ETRAX_SERIAL_PORT3_NO_DMA_OUT
558 bool "Ser3 uses no DMA for output"
559 help
560 Do not use DMA for ser3 output.
561
562config ETRAX_SERIAL_PORT3_DMA4_OUT
563 depends on ETRAX_ARCH_V10
564 bool "DMA 4"
565
566config ETRAX_SERIAL_PORT3_DMA8_OUT
567 bool "Ser3 uses DMA8 for output"
568 depends on ETRAXFS
569 help
570 Enables the DMA8 output channel for ser3 (ttyS3).
571 If you do not enable DMA, an interrupt for each character will be
572 used when transmitting data.
573 Normally you want to use DMA, unless you use the DMA channel for
574 something else.
575
576config ETRAX_SERIAL_PORT3_DMA2_OUT
577 bool "Ser3 uses DMA2 for output"
578 depends on CRIS_MACH_ARTPEC3
579 help
580 Enables the DMA2 output channel for ser3 (ttyS3).
581 If you do not enable DMA, an interrupt for each character will be
582 used when transmitting data.
583 Normally you want to use DMA, unless you use the DMA channel for
584 something else.
585
586endchoice
587
164endmenu 588endmenu
165 589
166source "drivers/base/Kconfig" 590source "drivers/base/Kconfig"
@@ -174,22 +598,10 @@ source "drivers/pnp/Kconfig"
174 598
175source "drivers/block/Kconfig" 599source "drivers/block/Kconfig"
176 600
177source "drivers/md/Kconfig"
178
179source "drivers/ide/Kconfig" 601source "drivers/ide/Kconfig"
180 602
181source "drivers/scsi/Kconfig"
182
183source "drivers/ieee1394/Kconfig"
184
185source "drivers/message/i2o/Kconfig"
186
187source "drivers/net/Kconfig" 603source "drivers/net/Kconfig"
188 604
189source "drivers/isdn/Kconfig"
190
191source "drivers/telephony/Kconfig"
192
193source "drivers/i2c/Kconfig" 605source "drivers/i2c/Kconfig"
194 606
195source "drivers/rtc/Kconfig" 607source "drivers/rtc/Kconfig"
@@ -201,17 +613,8 @@ source "drivers/input/Kconfig"
201 613
202source "drivers/char/Kconfig" 614source "drivers/char/Kconfig"
203 615
204#source drivers/misc/Config.in
205source "drivers/media/Kconfig"
206
207source "fs/Kconfig" 616source "fs/Kconfig"
208 617
209source "sound/Kconfig"
210
211source "drivers/pcmcia/Kconfig"
212
213source "drivers/pci/Kconfig"
214
215source "drivers/usb/Kconfig" 618source "drivers/usb/Kconfig"
216 619
217source "arch/cris/Kconfig.debug" 620source "arch/cris/Kconfig.debug"