CRIS: add STACKTRACE_SUPPORT
[linux-stable.git] / arch / cris / Kconfig
blob61f4acceb9d43be85d5b6af6d167c11db6c10ec0
1 config MMU
2         bool
3         default y
5 config ZONE_DMA
6         bool
7         default y
9 config RWSEM_GENERIC_SPINLOCK
10         bool
11         default y
13 config RWSEM_XCHGADD_ALGORITHM
14         bool
16 config ARCH_HAS_ILOG2_U32
17         bool
18         default n
20 config ARCH_HAS_ILOG2_U64
21         bool
22         default n
24 config GENERIC_HWEIGHT
25         bool
26         default y
28 config GENERIC_CALIBRATE_DELAY
29         bool
30         default y
32 config NO_IOPORT_MAP
33         def_bool y
35 config FORCE_MAX_ZONEORDER
36         int
37         default 6
39 config TRACE_IRQFLAGS_SUPPORT
40         depends on ETRAX_ARCH_V32
41         def_bool y
43 config STACKTRACE_SUPPORT
44         def_bool y
46 config CRIS
47         bool
48         default y
49         select HAVE_IDE
50         select GENERIC_ATOMIC64
51         select HAVE_UID16
52         select VIRT_TO_BUS
53         select ARCH_WANT_IPC_PARSE_VERSION
54         select GENERIC_IRQ_SHOW
55         select GENERIC_IOMAP
56         select GENERIC_CMOS_UPDATE
57         select MODULES_USE_ELF_RELA
58         select CLONE_BACKWARDS2
59         select OLD_SIGSUSPEND
60         select OLD_SIGACTION
61         select ARCH_REQUIRE_GPIOLIB
62         select IRQ_DOMAIN if ETRAX_ARCH_V32
63         select OF if ETRAX_ARCH_V32
64         select OF_EARLY_FLATTREE if ETRAX_ARCH_V32
65         select CLKSRC_MMIO if ETRAX_ARCH_V32
66         select GENERIC_CLOCKEVENTS if ETRAX_ARCH_V32
67         select GENERIC_SCHED_CLOCK if ETRAX_ARCH_V32
68         select HAVE_DEBUG_BUGVERBOSE if ETRAX_ARCH_V32
70 config HZ
71         int
72         default 100
74 config NR_CPUS
75         int
76         default "1"
78 config BUILTIN_DTB
79         string "DTB to build into the kernel image"
80         depends on OF
82 source "init/Kconfig"
84 source "kernel/Kconfig.freezer"
86 menu "General setup"
88 source "fs/Kconfig.binfmt"
90 config ETRAX_CMDLINE
91         string "Kernel command line"
92         default "root=/dev/mtdblock3"
93         help
94           Pass additional commands to the kernel.
96 config ETRAX_WATCHDOG
97         bool "Enable ETRAX watchdog"
98         help
99           Enable the built-in watchdog timer support on ETRAX based embedded
100           network computers.
102 config 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.
110 config 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.
118 config ETRAX_KMALLOCED_MODULES
119         bool "Enable module allocation with kmalloc"
120         help
121           Enable module allocation with kmalloc instead of vmalloc.
123 source "kernel/Kconfig.preempt"
125 source mm/Kconfig
127 endmenu
129 menu "Hardware setup"
131 choice
132         prompt "Processor type"
133         default ETRAX100LX
135 config ETRAX100LX
136         bool "ETRAX-100LX-v1"
137         select ARCH_USES_GETTIMEOFFSET
138         help
139           Support version 1 of the ETRAX 100LX.
141 config ETRAX100LX_V2
142         bool "ETRAX-100LX-v2"
143         select ARCH_USES_GETTIMEOFFSET
144         help
145           Support version 2 of the ETRAX 100LX.
147 config ETRAXFS
148         bool "ETRAX-FS-V32"
149         help
150           Support CRIS V32.
152 config CRIS_MACH_ARTPEC3
153         bool "ARTPEC-3"
154         help
155           Support Axis ARTPEC-3.
157 endchoice
159 config ETRAX_ARCH_V10
160        bool
161        default y if ETRAX100LX || ETRAX100LX_V2
162        default n if !(ETRAX100LX || ETRAX100LX_V2)
163        select TTY
165 config ETRAX_ARCH_V32
166        bool
167        default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
168        default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
170 config 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.
176 config 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).
183 config ETRAX_FLASH_BUSWIDTH
184         int "Buswidth of NOR flash in bytes"
185         default "2"
186         help
187           Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
189 config ETRAX_FLASH1_SIZE
190        int "FLASH1 size (dec, in MB. 0 = Unknown)"
191        default "0"
193 choice
194         prompt "Product debug-port"
195         default ETRAX_DEBUG_PORT0
197 config ETRAX_DEBUG_PORT0
198         bool "Serial-0"
199         help
200           Choose a serial port for the ETRAX debug console.  Default to
201           port 0.
203 config ETRAX_DEBUG_PORT1
204         bool "Serial-1"
205         help
206           Use serial port 1 for the console.
208 config ETRAX_DEBUG_PORT2
209         bool "Serial-2"
210         help
211           Use serial port 2 for the console.
213 config ETRAX_DEBUG_PORT3
214         bool "Serial-3"
215         help
216           Use serial port 3 for the console.
218 config ETRAX_DEBUG_PORT_NULL
219         bool "disabled"
220         help
221           Disable serial-port debugging.
223 endchoice
225 choice
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.
234 config ETRAX_KGDB_PORT0
235         bool "Serial-0"
236         help
237           Use serial port 0 for kernel debugging.
239 config ETRAX_KGDB_PORT1
240         bool "Serial-1"
241         help
242           Use serial port 1 for kernel debugging.
244 config ETRAX_KGDB_PORT2
245         bool "Serial-2"
246         help
247           Use serial port 2 for kernel debugging.
249 config ETRAX_KGDB_PORT3
250         bool "Serial-3"
251         help
252           Use serial port 3 for kernel debugging.
254 endchoice
256 source arch/cris/arch-v10/Kconfig
257 source arch/cris/arch-v32/Kconfig
259 endmenu
261 source "net/Kconfig"
263 # bring in ETRAX built-in drivers
264 menu "Drivers for built-in interfaces"
265 source arch/cris/arch-v10/drivers/Kconfig
266 source arch/cris/arch-v32/drivers/Kconfig
268 config 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
274         select MTD_BLOCK
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.
280 config ETRAX_SYNCHRONOUS_SERIAL
281         bool "Synchronous serial-port support"
282         help
283           Select this to enable the synchronous serial port driver.
285 config 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.
291 config 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.
298 config 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.
304 config 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.
311 choice
312         prompt "Network LED behavior"
313         depends on ETRAX_ETHERNET
314         default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
316 config 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.
322           Selecting LED_on_when_activity will light the LED only when
323           there is activity.
325           This setting will also affect the behaviour of other activity LEDs
326           e.g. Bluetooth.
328 config 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.
334           Selecting LED_on_when_activity will light the LED only when
335           there is activity.
337           This setting will also affect the behaviour of other activity LEDs
338           e.g. Bluetooth.
340 endchoice
342 choice
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
348 config ETRAX_SERIAL_PORT0_NO_DMA_OUT
349         bool "Ser0 uses no DMA for output"
350         help
351           Do not use DMA for ser0 output.
353 config 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.
363 config 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.
373 endchoice
375 choice
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.
383 config ETRAX_SERIAL_PORT0_NO_DMA_IN
384         bool "Ser0 uses no DMA for input"
385         help
386           Do not use DMA for ser0 input.
388 config 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.
398 config 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
404           used when receiving data.
405           Normally you want to use DMA, unless you use the DMA channel for
406           something else.
408 endchoice
410 choice
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.
418 config ETRAX_SERIAL_PORT1_NO_DMA_IN
419         bool "Ser1 uses no DMA for input"
420         help
421           Do not use DMA for ser1 input.
423 config 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.
433 config ETRAX_SERIAL_PORT1_DMA9_IN
434         depends on ETRAX_ARCH_V10
435         bool "Ser1 uses DMA9 for input"
437 endchoice
440 choice
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.
448 config ETRAX_SERIAL_PORT1_NO_DMA_OUT
449         bool "Ser1 uses no DMA for output"
450         help
451           Do not use DMA for ser1 output.
453 config ETRAX_SERIAL_PORT1_DMA8_OUT
454         depends on ETRAX_ARCH_V10
455         bool "Ser1 uses DMA8 for output"
457 config 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.
467 endchoice
469 choice
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
475 config ETRAX_SERIAL_PORT2_NO_DMA_OUT
476         bool "Ser2 uses no DMA for output"
477         help
478           Do not use DMA for ser2 output.
480 config 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.
490 config 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.
500 endchoice
502 choice
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.
510 config ETRAX_SERIAL_PORT2_NO_DMA_IN
511         bool "Ser2 uses no DMA for input"
512         help
513           Do not use DMA for ser2 input.
515 config 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.
525 config 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
531           used when receiving data.
532           Normally you want to use DMA, unless you use the DMA channel for
533           something else.
535 endchoice
537 choice
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.
545 config ETRAX_SERIAL_PORT3_NO_DMA_IN
546         bool "Ser3 uses no DMA for input"
547         help
548           Do not use DMA for ser3 input.
550 config ETRAX_SERIAL_PORT3_DMA5_IN
551         depends on ETRAX_ARCH_V10
552         bool "DMA 5"
554 endchoice
556 choice
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
562 config ETRAX_SERIAL_PORT3_NO_DMA_OUT
563         bool "Ser3 uses no DMA for output"
564         help
565           Do not use DMA for ser3 output.
567 config ETRAX_SERIAL_PORT3_DMA4_OUT
568         depends on ETRAX_ARCH_V10
569         bool "DMA 4"
571 endchoice
573 endmenu
575 source "drivers/Kconfig"
577 source "fs/Kconfig"
579 source "arch/cris/Kconfig.debug"
581 source "security/Kconfig"
583 source "crypto/Kconfig"
585 source "lib/Kconfig"