]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/cris/Kconfig
CRISv32: add support for irqflags tracing
[karo-tx-linux.git] / arch / cris / Kconfig
1 config MMU
2         bool
3         default y
4
5 config ZONE_DMA
6         bool
7         default y
8
9 config RWSEM_GENERIC_SPINLOCK
10         bool
11         default y
12
13 config RWSEM_XCHGADD_ALGORITHM
14         bool
15
16 config ARCH_HAS_ILOG2_U32
17         bool
18         default n
19
20 config ARCH_HAS_ILOG2_U64
21         bool
22         default n
23
24 config GENERIC_HWEIGHT
25         bool
26         default y
27
28 config GENERIC_CALIBRATE_DELAY
29         bool
30         default y
31
32 config NO_IOPORT_MAP
33         def_bool y
34
35 config FORCE_MAX_ZONEORDER
36         int
37         default 6
38
39 config TRACE_IRQFLAGS_SUPPORT
40         depends on ETRAX_ARCH_V32
41         def_bool y
42
43 config CRIS
44         bool
45         default y
46         select HAVE_IDE
47         select GENERIC_ATOMIC64
48         select HAVE_UID16
49         select VIRT_TO_BUS
50         select ARCH_WANT_IPC_PARSE_VERSION
51         select GENERIC_IRQ_SHOW
52         select GENERIC_IOMAP
53         select GENERIC_CMOS_UPDATE
54         select MODULES_USE_ELF_RELA
55         select CLONE_BACKWARDS2
56         select OLD_SIGSUSPEND
57         select OLD_SIGACTION
58         select ARCH_REQUIRE_GPIOLIB
59         select IRQ_DOMAIN if ETRAX_ARCH_V32
60         select OF if ETRAX_ARCH_V32
61         select OF_EARLY_FLATTREE if ETRAX_ARCH_V32
62         select CLKSRC_MMIO if ETRAX_ARCH_V32
63         select GENERIC_CLOCKEVENTS if ETRAX_ARCH_V32
64         select GENERIC_SCHED_CLOCK if ETRAX_ARCH_V32
65         select HAVE_DEBUG_BUGVERBOSE if ETRAX_ARCH_V32
66
67 config HZ
68         int
69         default 100
70
71 config NR_CPUS
72         int
73         default "1"
74
75 config BUILTIN_DTB
76         string "DTB to build into the kernel image"
77         depends on OF
78
79 source "init/Kconfig"
80
81 source "kernel/Kconfig.freezer"
82
83 menu "General setup"
84
85 source "fs/Kconfig.binfmt"
86
87 config ETRAX_CMDLINE
88         string "Kernel command line"
89         default "root=/dev/mtdblock3"
90         help
91           Pass additional commands to the kernel.
92
93 config 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
99 config 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
107 config 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
115 config ETRAX_KMALLOCED_MODULES
116         bool "Enable module allocation with kmalloc"
117         help
118           Enable module allocation with kmalloc instead of vmalloc.
119
120 source "kernel/Kconfig.preempt"
121
122 source mm/Kconfig
123
124 endmenu
125
126 menu "Hardware setup"
127
128 choice
129         prompt "Processor type"
130         default ETRAX100LX
131
132 config ETRAX100LX
133         bool "ETRAX-100LX-v1"
134         select ARCH_USES_GETTIMEOFFSET
135         help
136           Support version 1 of the ETRAX 100LX.
137
138 config ETRAX100LX_V2
139         bool "ETRAX-100LX-v2"
140         select ARCH_USES_GETTIMEOFFSET
141         help
142           Support version 2 of the ETRAX 100LX.
143
144 config ETRAXFS
145         bool "ETRAX-FS-V32"
146         help
147           Support CRIS V32.
148
149 config CRIS_MACH_ARTPEC3
150         bool "ARTPEC-3"
151         help
152           Support Axis ARTPEC-3.
153
154 endchoice
155
156 config ETRAX_ARCH_V10
157        bool
158        default y if ETRAX100LX || ETRAX100LX_V2
159        default n if !(ETRAX100LX || ETRAX100LX_V2)
160        select TTY
161
162 config ETRAX_ARCH_V32
163        bool
164        default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
165        default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
166
167 config 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
173 config 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
180 config ETRAX_FLASH_BUSWIDTH
181         int "Buswidth of NOR flash in bytes"
182         default "2"
183         help
184           Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
185
186 config ETRAX_FLASH1_SIZE
187        int "FLASH1 size (dec, in MB. 0 = Unknown)"
188        default "0"
189
190 choice
191         prompt "Product debug-port"
192         default ETRAX_DEBUG_PORT0
193
194 config 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
200 config ETRAX_DEBUG_PORT1
201         bool "Serial-1"
202         help
203           Use serial port 1 for the console.
204
205 config ETRAX_DEBUG_PORT2
206         bool "Serial-2"
207         help
208           Use serial port 2 for the console.
209
210 config ETRAX_DEBUG_PORT3
211         bool "Serial-3"
212         help
213           Use serial port 3 for the console.
214
215 config ETRAX_DEBUG_PORT_NULL
216         bool "disabled"
217         help
218           Disable serial-port debugging.
219
220 endchoice
221
222 choice
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
231 config ETRAX_KGDB_PORT0
232         bool "Serial-0"
233         help
234           Use serial port 0 for kernel debugging.
235
236 config ETRAX_KGDB_PORT1
237         bool "Serial-1"
238         help
239           Use serial port 1 for kernel debugging.
240
241 config ETRAX_KGDB_PORT2
242         bool "Serial-2"
243         help
244           Use serial port 2 for kernel debugging.
245
246 config ETRAX_KGDB_PORT3
247         bool "Serial-3"
248         help
249           Use serial port 3 for kernel debugging.
250
251 endchoice
252
253 source arch/cris/arch-v10/Kconfig
254 source arch/cris/arch-v32/Kconfig
255
256 endmenu
257
258 source "net/Kconfig"
259
260 # bring in ETRAX built-in drivers
261 menu "Drivers for built-in interfaces"
262 source arch/cris/arch-v10/drivers/Kconfig
263 source arch/cris/arch-v32/drivers/Kconfig
264
265 config 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
271         select MTD_BLOCK
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
277 config ETRAX_SYNCHRONOUS_SERIAL
278         bool "Synchronous serial-port support"
279         help
280           Select this to enable the synchronous serial port driver.
281
282 config 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
288 config 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
295 config 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
301 config 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
308 choice
309         prompt "Network LED behavior"
310         depends on ETRAX_ETHERNET
311         default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
312
313 config 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
325 config 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
337 endchoice
338
339 choice
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
345 config 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
350 config 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
360 config 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
370 endchoice
371
372 choice
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
380 config 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
385 config 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
395 config 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
401           used when receiving data.
402           Normally you want to use DMA, unless you use the DMA channel for
403           something else.
404
405 endchoice
406
407 choice
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
415 config 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
420 config 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
430 config ETRAX_SERIAL_PORT1_DMA9_IN
431         depends on ETRAX_ARCH_V10
432         bool "Ser1 uses DMA9 for input"
433
434 endchoice
435
436
437 choice
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
445 config 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
450 config ETRAX_SERIAL_PORT1_DMA8_OUT
451         depends on ETRAX_ARCH_V10
452         bool "Ser1 uses DMA8 for output"
453
454 config 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
464 endchoice
465
466 choice
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
472 config 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
477 config 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
487 config 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
497 endchoice
498
499 choice
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
507 config 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
512 config 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
522 config 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
528           used when receiving data.
529           Normally you want to use DMA, unless you use the DMA channel for
530           something else.
531
532 endchoice
533
534 choice
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
542 config 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
547 config ETRAX_SERIAL_PORT3_DMA5_IN
548         depends on ETRAX_ARCH_V10
549         bool "DMA 5"
550
551 endchoice
552
553 choice
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
559 config 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
564 config ETRAX_SERIAL_PORT3_DMA4_OUT
565         depends on ETRAX_ARCH_V10
566         bool "DMA 4"
567
568 endchoice
569
570 endmenu
571
572 source "drivers/Kconfig"
573
574 source "fs/Kconfig"
575
576 source "arch/cris/Kconfig.debug"
577
578 source "security/Kconfig"
579
580 source "crypto/Kconfig"
581
582 source "lib/Kconfig"