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