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