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