CRIS: enable GPIOLIB
[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
ce816fa8 32config NO_IOPORT_MAP
5ea81769
AV
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
af1839eb 44 select HAVE_UID16
4febd95a 45 select VIRT_TO_BUS
c1d7e01d 46 select ARCH_WANT_IPC_PARSE_VERSION
15825a5c 47 select GENERIC_IRQ_SHOW
4673ca8e 48 select GENERIC_IOMAP
a4cfc31d 49 select GENERIC_SMP_IDLE_THREAD if ETRAX_ARCH_V32
5227b636 50 select GENERIC_CMOS_UPDATE
786d35d4 51 select MODULES_USE_ELF_RELA
27d892fb 52 select CLONE_BACKWARDS2
86df89a0 53 select OLD_SIGSUSPEND
eb2f2566 54 select OLD_SIGACTION
8fda64c2 55 select ARCH_REQUIRE_GPIOLIB
1da177e4 56
bdc80787
PA
57config HZ
58 int
59 default 100
60
dd82094c
JN
61config NR_CPUS
62 int
63 default "1"
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
73config ETRAX_CMDLINE
74 string "Kernel command line"
75 default "root=/dev/mtdblock3"
76 help
77 Pass additional commands to the kernel.
78
79config ETRAX_WATCHDOG
80 bool "Enable ETRAX watchdog"
81 help
82 Enable the built-in watchdog timer support on ETRAX based embedded
83 network computers.
84
85config ETRAX_WATCHDOG_NICE_DOGGY
86 bool "Disable watchdog during Oops printouts"
87 depends on ETRAX_WATCHDOG
88 help
89 By enabling this you make sure that the watchdog does not bite while
90 printing oopses. Recommended for development systems but not for
91 production releases.
92
93config ETRAX_FAST_TIMER
94 bool "Enable ETRAX fast timer API"
95 help
96 This options enables the API to a fast timer implementation using
97 timer1 to get sub jiffie resolution timers (primarily one-shot
98 timers).
99 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
100
923dd2a4
JN
101config ETRAX_KMALLOCED_MODULES
102 bool "Enable module allocation with kmalloc"
1da177e4 103 help
923dd2a4
JN
104 Enable module allocation with kmalloc instead of vmalloc.
105
923dd2a4 106source "kernel/Kconfig.preempt"
1da177e4 107
3f22ab27
DH
108source mm/Kconfig
109
1da177e4
LT
110endmenu
111
112menu "Hardware setup"
113
114choice
115 prompt "Processor type"
116 default ETRAX100LX
117
118config ETRAX100LX
119 bool "ETRAX-100LX-v1"
60dbd663 120 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
121 help
122 Support version 1 of the ETRAX 100LX.
123
124config ETRAX100LX_V2
125 bool "ETRAX-100LX-v2"
60dbd663 126 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
127 help
128 Support version 2 of the ETRAX 100LX.
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
142config ETRAX_ARCH_V10
143 bool
144 default y if ETRAX100LX || ETRAX100LX_V2
145 default n if !(ETRAX100LX || ETRAX100LX_V2)
ae797bdf 146 select TTY
1da177e4 147
923dd2a4
JN
148config ETRAX_ARCH_V32
149 bool
150 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
151 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
152
1da177e4
LT
153config ETRAX_DRAM_SIZE
154 int "DRAM size (dec, in MB)"
155 default "8"
156 help
157 Size of DRAM (decimal in MB) typically 2, 8 or 16.
158
923dd2a4
JN
159config ETRAX_VMEM_SIZE
160 int "Video memory size (dec, in MB)"
161 depends on ETRAX_ARCH_V32 && !ETRAXFS
162 default 8 if !ETRAXFS
163 help
164 Size of Video accessible memory (decimal, in MB).
165
1da177e4 166config ETRAX_FLASH_BUSWIDTH
923dd2a4 167 int "Buswidth of NOR flash in bytes"
1da177e4
LT
168 default "2"
169 help
923dd2a4
JN
170 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
171
923dd2a4
JN
172config ETRAX_FLASH1_SIZE
173 int "FLASH1 size (dec, in MB. 0 = Unknown)"
174 default "0"
175
176choice
177 prompt "Product debug-port"
178 default ETRAX_DEBUG_PORT0
179
180config ETRAX_DEBUG_PORT0
181 bool "Serial-0"
182 help
183 Choose a serial port for the ETRAX debug console. Default to
184 port 0.
185
186config ETRAX_DEBUG_PORT1
187 bool "Serial-1"
188 help
189 Use serial port 1 for the console.
190
191config ETRAX_DEBUG_PORT2
192 bool "Serial-2"
193 help
194 Use serial port 2 for the console.
195
196config ETRAX_DEBUG_PORT3
197 bool "Serial-3"
198 help
199 Use serial port 3 for the console.
200
201config ETRAX_DEBUG_PORT_NULL
202 bool "disabled"
203 help
204 Disable serial-port debugging.
205
206endchoice
207
208choice
209 prompt "Kernel GDB port"
210 depends on ETRAX_KGDB
211 default ETRAX_KGDB_PORT0
212 help
213 Choose a serial port for kernel debugging. NOTE: This port should
214 not be enabled under Drivers for built-in interfaces (as it has its
215 own initialization code) and should not be the same as the debug port.
216
217config ETRAX_KGDB_PORT0
218 bool "Serial-0"
219 help
220 Use serial port 0 for kernel debugging.
221
222config ETRAX_KGDB_PORT1
223 bool "Serial-1"
224 help
225 Use serial port 1 for kernel debugging.
226
227config ETRAX_KGDB_PORT2
228 bool "Serial-2"
229 help
230 Use serial port 2 for kernel debugging.
231
232config ETRAX_KGDB_PORT3
233 bool "Serial-3"
234 help
235 Use serial port 3 for kernel debugging.
236
237endchoice
1da177e4
LT
238
239source arch/cris/arch-v10/Kconfig
2d33d563 240source arch/cris/arch-v32/Kconfig
1da177e4
LT
241
242endmenu
243
d5950b43
SR
244source "net/Kconfig"
245
1da177e4
LT
246# bring in ETRAX built-in drivers
247menu "Drivers for built-in interfaces"
2d33d563
JN
248source arch/cris/arch-v10/drivers/Kconfig
249source arch/cris/arch-v32/drivers/Kconfig
1da177e4 250
79e04fdb
JN
251config ETRAX_AXISFLASHMAP
252 bool "Axis flash-map support"
253 select MTD
254 select MTD_CFI
255 select MTD_CFI_AMDSTD
256 select MTD_JEDECPROBE if ETRAX_ARCH_V32
79e04fdb 257 select MTD_BLOCK
79e04fdb
JN
258 select MTD_COMPLEX_MAPPINGS
259 help
260 This option enables MTD mapping of flash devices. Needed to use
261 flash memories. If unsure, say Y.
262
c974a9e5
JN
263config ETRAX_SYNCHRONOUS_SERIAL
264 bool "Synchronous serial-port support"
265 help
266 Select this to enable the synchronous serial port driver.
267
268config ETRAX_SYNCHRONOUS_SERIAL_PORT0
269 bool "Synchronous serial port 0 enabled"
270 depends on ETRAX_SYNCHRONOUS_SERIAL
271 help
272 Enabled synchronous serial port 0.
273
274config ETRAX_SYNCHRONOUS_SERIAL0_DMA
275 bool "Enable DMA on synchronous serial port 0."
276 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
277 help
278 A synchronous serial port can run in manual or DMA mode.
279 Selecting this option will make it run in DMA mode.
280
281config ETRAX_SYNCHRONOUS_SERIAL_PORT1
282 bool "Synchronous serial port 1 enabled"
283 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
284 help
285 Enabled synchronous serial port 1.
286
287config ETRAX_SYNCHRONOUS_SERIAL1_DMA
288 bool "Enable DMA on synchronous serial port 1."
289 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
290 help
291 A synchronous serial port can run in manual or DMA mode.
292 Selecting this option will make it run in DMA mode.
293
923dd2a4
JN
294choice
295 prompt "Network LED behavior"
296 depends on ETRAX_ETHERNET
297 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
298
299config ETRAX_NETWORK_LED_ON_WHEN_LINK
300 bool "LED_on_when_link"
301 help
302 Selecting LED_on_when_link will light the LED when there is a
303 connection and will flash off when there is activity.
304
305 Selecting LED_on_when_activity will light the LED only when
306 there is activity.
307
308 This setting will also affect the behaviour of other activity LEDs
309 e.g. Bluetooth.
310
311config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
312 bool "LED_on_when_activity"
313 help
314 Selecting LED_on_when_link will light the LED when there is a
315 connection and will flash off when there is activity.
316
317 Selecting LED_on_when_activity will light the LED only when
318 there is activity.
319
320 This setting will also affect the behaviour of other activity LEDs
321 e.g. Bluetooth.
322
323endchoice
324
325choice
326 prompt "Ser0 DMA out channel"
327 depends on ETRAX_SERIAL_PORT0
328 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
329 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
330
331config ETRAX_SERIAL_PORT0_NO_DMA_OUT
332 bool "Ser0 uses no DMA for output"
333 help
334 Do not use DMA for ser0 output.
335
336config ETRAX_SERIAL_PORT0_DMA6_OUT
337 bool "Ser0 uses DMA6 for output"
338 depends on ETRAXFS
339 help
340 Enables the DMA6 output channel for ser0 (ttyS0).
341 If you do not enable DMA, an interrupt for each character will be
342 used when transmitting data.
343 Normally you want to use DMA, unless you use the DMA channel for
344 something else.
345
346config ETRAX_SERIAL_PORT0_DMA0_OUT
347 bool "Ser0 uses DMA0 for output"
348 depends on CRIS_MACH_ARTPEC3
349 help
350 Enables the DMA0 output channel for ser0 (ttyS0).
351 If you do not enable DMA, an interrupt for each character will be
352 used when transmitting data.
353 Normally you want to use DMA, unless you use the DMA channel for
354 something else.
355
356endchoice
357
358choice
359 prompt "Ser0 DMA in channel "
360 depends on ETRAX_SERIAL_PORT0
361 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
362 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
363 help
364 What DMA channel to use for ser0.
365
366config ETRAX_SERIAL_PORT0_NO_DMA_IN
367 bool "Ser0 uses no DMA for input"
368 help
369 Do not use DMA for ser0 input.
370
371config ETRAX_SERIAL_PORT0_DMA7_IN
372 bool "Ser0 uses DMA7 for input"
373 depends on ETRAXFS
374 help
375 Enables the DMA7 input channel for ser0 (ttyS0).
376 If you do not enable DMA, an interrupt for each character will be
377 used when receiving data.
378 Normally you want to use DMA, unless you use the DMA channel for
379 something else.
380
381config ETRAX_SERIAL_PORT0_DMA1_IN
382 bool "Ser0 uses DMA1 for input"
383 depends on CRIS_MACH_ARTPEC3
384 help
385 Enables the DMA1 input channel for ser0 (ttyS0).
386 If you do not enable DMA, an interrupt for each character will be
692105b8 387 used when receiving data.
923dd2a4
JN
388 Normally you want to use DMA, unless you use the DMA channel for
389 something else.
390
391endchoice
392
393choice
394 prompt "Ser1 DMA in channel "
395 depends on ETRAX_SERIAL_PORT1
396 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
397 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
398 help
399 What DMA channel to use for ser1.
400
401config ETRAX_SERIAL_PORT1_NO_DMA_IN
402 bool "Ser1 uses no DMA for input"
403 help
404 Do not use DMA for ser1 input.
405
406config ETRAX_SERIAL_PORT1_DMA5_IN
407 bool "Ser1 uses DMA5 for input"
408 depends on ETRAX_ARCH_V32
409 help
410 Enables the DMA5 input channel for ser1 (ttyS1).
411 If you do not enable DMA, an interrupt for each character will be
412 used when receiving data.
413 Normally you want this on, unless you use the DMA channel for
414 something else.
415
416config ETRAX_SERIAL_PORT1_DMA9_IN
417 depends on ETRAX_ARCH_V10
418 bool "Ser1 uses DMA9 for input"
419
420endchoice
421
422
423choice
424 prompt "Ser1 DMA out channel"
425 depends on ETRAX_SERIAL_PORT1
426 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
427 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
428 help
429 What DMA channel to use for ser1.
430
431config ETRAX_SERIAL_PORT1_NO_DMA_OUT
432 bool "Ser1 uses no DMA for output"
433 help
434 Do not use DMA for ser1 output.
435
436config ETRAX_SERIAL_PORT1_DMA8_OUT
437 depends on ETRAX_ARCH_V10
438 bool "Ser1 uses DMA8 for output"
439
440config ETRAX_SERIAL_PORT1_DMA4_OUT
441 depends on ETRAX_ARCH_V32
442 bool "Ser1 uses DMA4 for output"
443 help
444 Enables the DMA4 output channel for ser1 (ttyS1).
445 If you do not enable DMA, an interrupt for each character will be
446 used when transmitting data.
447 Normally you want this on, unless you use the DMA channel for
448 something else.
449
450endchoice
451
452choice
453 prompt "Ser2 DMA out channel"
454 depends on ETRAX_SERIAL_PORT2
455 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
456 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
457
458config ETRAX_SERIAL_PORT2_NO_DMA_OUT
459 bool "Ser2 uses no DMA for output"
460 help
461 Do not use DMA for ser2 output.
462
463config ETRAX_SERIAL_PORT2_DMA2_OUT
464 bool "Ser2 uses DMA2 for output"
465 depends on ETRAXFS || ETRAX_ARCH_V10
466 help
467 Enables the DMA2 output channel for ser2 (ttyS2).
468 If you do not enable DMA, an interrupt for each character will be
469 used when transmitting data.
470 Normally you want to use DMA, unless you use the DMA channel for
471 something else.
472
473config ETRAX_SERIAL_PORT2_DMA6_OUT
474 bool "Ser2 uses DMA6 for output"
475 depends on CRIS_MACH_ARTPEC3
476 help
477 Enables the DMA6 output channel for ser2 (ttyS2).
478 If you do not enable DMA, an interrupt for each character will be
479 used when transmitting data.
480 Normally you want to use DMA, unless you use the DMA channel for
481 something else.
482
483endchoice
484
485choice
486 prompt "Ser2 DMA in channel"
487 depends on ETRAX_SERIAL_PORT2
488 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
489 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
490 help
491 What DMA channel to use for ser2.
492
493config ETRAX_SERIAL_PORT2_NO_DMA_IN
494 bool "Ser2 uses no DMA for input"
495 help
496 Do not use DMA for ser2 input.
497
498config ETRAX_SERIAL_PORT2_DMA3_IN
499 bool "Ser2 uses DMA3 for input"
500 depends on ETRAXFS || ETRAX_ARCH_V10
501 help
502 Enables the DMA3 input channel for ser2 (ttyS2).
503 If you do not enable DMA, an interrupt for each character will be
504 used when receiving data.
505 Normally you want to use DMA, unless you use the DMA channel for
506 something else.
507
508config ETRAX_SERIAL_PORT2_DMA7_IN
509 bool "Ser2 uses DMA7 for input"
510 depends on CRIS_MACH_ARTPEC3
511 help
512 Enables the DMA7 input channel for ser2 (ttyS2).
513 If you do not enable DMA, an interrupt for each character will be
692105b8 514 used when receiving data.
923dd2a4
JN
515 Normally you want to use DMA, unless you use the DMA channel for
516 something else.
517
518endchoice
519
520choice
521 prompt "Ser3 DMA in channel"
522 depends on ETRAX_SERIAL_PORT3
523 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
524 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
525 help
526 What DMA channel to use for ser3.
527
528config ETRAX_SERIAL_PORT3_NO_DMA_IN
529 bool "Ser3 uses no DMA for input"
530 help
531 Do not use DMA for ser3 input.
532
533config ETRAX_SERIAL_PORT3_DMA5_IN
534 depends on ETRAX_ARCH_V10
535 bool "DMA 5"
536
923dd2a4
JN
537endchoice
538
539choice
540 prompt "Ser3 DMA out channel"
541 depends on ETRAX_SERIAL_PORT3
542 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
543 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
544
545config ETRAX_SERIAL_PORT3_NO_DMA_OUT
546 bool "Ser3 uses no DMA for output"
547 help
548 Do not use DMA for ser3 output.
549
550config ETRAX_SERIAL_PORT3_DMA4_OUT
551 depends on ETRAX_ARCH_V10
552 bool "DMA 4"
553
923dd2a4
JN
554endchoice
555
1da177e4
LT
556endmenu
557
acf83630 558source "drivers/Kconfig"
1da177e4 559
1da177e4
LT
560source "fs/Kconfig"
561
1da177e4
LT
562source "arch/cris/Kconfig.debug"
563
564source "security/Kconfig"
565
566source "crypto/Kconfig"
567
568source "lib/Kconfig"
This page took 1.024895 seconds and 5 git commands to generate.