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