cris: use dma-direct
[linux-2.6-block.git] / arch / cris / Kconfig
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2config MMU
3 bool
4 default y
5
66701b14
CL
6config ZONE_DMA
7 bool
8 default y
9
1da177e4
LT
10config RWSEM_GENERIC_SPINLOCK
11 bool
12 default y
13
14config RWSEM_XCHGADD_ALGORITHM
15 bool
16
f0d1b0b3
DH
17config ARCH_HAS_ILOG2_U32
18 bool
19 default n
20
21config ARCH_HAS_ILOG2_U64
22 bool
23 default n
24
e9f26df1
AM
25config GENERIC_HWEIGHT
26 bool
27 default y
28
1da177e4
LT
29config GENERIC_CALIBRATE_DELAY
30 bool
31 default y
32
ce816fa8 33config NO_IOPORT_MAP
2765262f 34 def_bool y if !PCI
5ea81769 35
f73337f4
CH
36config NO_DMA
37 def_bool y if !PCI
38
923dd2a4
JN
39config FORCE_MAX_ZONEORDER
40 int
41 default 6
42
444e0c28
RV
43config TRACE_IRQFLAGS_SUPPORT
44 depends on ETRAX_ARCH_V32
45 def_bool y
46
aa6f4d2b
RV
47config STACKTRACE_SUPPORT
48 def_bool y
49
94c5c115
RV
50config LOCKDEP_SUPPORT
51 depends on ETRAX_ARCH_V32
52 def_bool y
53
1da177e4
LT
54config CRIS
55 bool
56 default y
ec7748b5 57 select HAVE_IDE
4c9c6a1b 58 select GENERIC_ATOMIC64
af1839eb 59 select HAVE_UID16
4febd95a 60 select VIRT_TO_BUS
c1d7e01d 61 select ARCH_WANT_IPC_PARSE_VERSION
15825a5c 62 select GENERIC_IRQ_SHOW
4673ca8e 63 select GENERIC_IOMAP
786d35d4 64 select MODULES_USE_ELF_RELA
27d892fb 65 select CLONE_BACKWARDS2
5f56a5df 66 select HAVE_EXIT_THREAD if ETRAX_ARCH_V32
86df89a0 67 select OLD_SIGSUSPEND
eb2f2566 68 select OLD_SIGACTION
f518abf0 69 select GPIOLIB
43f7071e 70 select IRQ_DOMAIN if ETRAX_ARCH_V32
a9f75ac5
RV
71 select OF if ETRAX_ARCH_V32
72 select OF_EARLY_FLATTREE if ETRAX_ARCH_V32
edfb6d5f 73 select CLKSRC_MMIO if ETRAX_ARCH_V32
ed9fd3ff 74 select GENERIC_CLOCKEVENTS if ETRAX_ARCH_V32
d3dad475 75 select GENERIC_SCHED_CLOCK if ETRAX_ARCH_V32
f59625a8 76 select HAVE_DEBUG_BUGVERBOSE if ETRAX_ARCH_V32
42a0bb3f 77 select HAVE_NMI
f73337f4 78 select DMA_DIRECT_OPS if PCI
1da177e4 79
bdc80787
PA
80config HZ
81 int
82 default 100
83
dd82094c
JN
84config NR_CPUS
85 int
86 default "1"
87
a9f75ac5
RV
88config BUILTIN_DTB
89 string "DTB to build into the kernel image"
90 depends on OF
91
1da177e4
LT
92source "init/Kconfig"
93
dc52ddc0
MH
94source "kernel/Kconfig.freezer"
95
1da177e4
LT
96menu "General setup"
97
98source "fs/Kconfig.binfmt"
99
100config ETRAX_CMDLINE
101 string "Kernel command line"
102 default "root=/dev/mtdblock3"
103 help
104 Pass additional commands to the kernel.
105
106config 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
112config 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
120config 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
923dd2a4
JN
128config ETRAX_KMALLOCED_MODULES
129 bool "Enable module allocation with kmalloc"
1da177e4 130 help
923dd2a4
JN
131 Enable module allocation with kmalloc instead of vmalloc.
132
923dd2a4 133source "kernel/Kconfig.preempt"
1da177e4 134
3f22ab27
DH
135source mm/Kconfig
136
1da177e4
LT
137endmenu
138
139menu "Hardware setup"
140
141choice
142 prompt "Processor type"
143 default ETRAX100LX
144
145config ETRAX100LX
146 bool "ETRAX-100LX-v1"
60dbd663 147 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
148 help
149 Support version 1 of the ETRAX 100LX.
150
151config ETRAX100LX_V2
152 bool "ETRAX-100LX-v2"
60dbd663 153 select ARCH_USES_GETTIMEOFFSET
1da177e4
LT
154 help
155 Support version 2 of the ETRAX 100LX.
156
923dd2a4
JN
157config ETRAXFS
158 bool "ETRAX-FS-V32"
159 help
160 Support CRIS V32.
161
162config CRIS_MACH_ARTPEC3
163 bool "ARTPEC-3"
164 help
165 Support Axis ARTPEC-3.
166
1da177e4
LT
167endchoice
168
169config ETRAX_ARCH_V10
170 bool
171 default y if ETRAX100LX || ETRAX100LX_V2
172 default n if !(ETRAX100LX || ETRAX100LX_V2)
ae797bdf 173 select TTY
1da177e4 174
923dd2a4
JN
175config ETRAX_ARCH_V32
176 bool
177 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
178 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
179
1da177e4
LT
180config 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
923dd2a4
JN
186config 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
1da177e4 193config ETRAX_FLASH_BUSWIDTH
923dd2a4 194 int "Buswidth of NOR flash in bytes"
1da177e4
LT
195 default "2"
196 help
923dd2a4
JN
197 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
198
923dd2a4
JN
199config ETRAX_FLASH1_SIZE
200 int "FLASH1 size (dec, in MB. 0 = Unknown)"
201 default "0"
202
203choice
204 prompt "Product debug-port"
205 default ETRAX_DEBUG_PORT0
206
207config 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
213config ETRAX_DEBUG_PORT1
214 bool "Serial-1"
215 help
216 Use serial port 1 for the console.
217
218config ETRAX_DEBUG_PORT2
219 bool "Serial-2"
220 help
221 Use serial port 2 for the console.
222
223config ETRAX_DEBUG_PORT3
224 bool "Serial-3"
225 help
226 Use serial port 3 for the console.
227
228config ETRAX_DEBUG_PORT_NULL
229 bool "disabled"
230 help
231 Disable serial-port debugging.
232
233endchoice
234
235choice
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
244config ETRAX_KGDB_PORT0
245 bool "Serial-0"
246 help
247 Use serial port 0 for kernel debugging.
248
249config ETRAX_KGDB_PORT1
250 bool "Serial-1"
251 help
252 Use serial port 1 for kernel debugging.
253
254config ETRAX_KGDB_PORT2
255 bool "Serial-2"
256 help
257 Use serial port 2 for kernel debugging.
258
259config ETRAX_KGDB_PORT3
260 bool "Serial-3"
261 help
262 Use serial port 3 for kernel debugging.
263
264endchoice
1da177e4
LT
265
266source arch/cris/arch-v10/Kconfig
2d33d563 267source arch/cris/arch-v32/Kconfig
1da177e4
LT
268
269endmenu
270
d5950b43
SR
271source "net/Kconfig"
272
1da177e4
LT
273# bring in ETRAX built-in drivers
274menu "Drivers for built-in interfaces"
2d33d563
JN
275source arch/cris/arch-v10/drivers/Kconfig
276source arch/cris/arch-v32/drivers/Kconfig
1da177e4 277
79e04fdb
JN
278config 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
79e04fdb 284 select MTD_BLOCK
79e04fdb
JN
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
c974a9e5
JN
290config ETRAX_SYNCHRONOUS_SERIAL
291 bool "Synchronous serial-port support"
292 help
293 Select this to enable the synchronous serial port driver.
294
295config 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
301config 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
308config 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
314config 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
923dd2a4
JN
321choice
322 prompt "Network LED behavior"
323 depends on ETRAX_ETHERNET
324 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
325
326config 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
338config 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
350endchoice
351
352choice
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
358config 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
363config 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
373config 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
383endchoice
384
385choice
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
393config 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
398config 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
408config 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
692105b8 414 used when receiving data.
923dd2a4
JN
415 Normally you want to use DMA, unless you use the DMA channel for
416 something else.
417
418endchoice
419
420choice
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
428config 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
433config 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
443config ETRAX_SERIAL_PORT1_DMA9_IN
444 depends on ETRAX_ARCH_V10
445 bool "Ser1 uses DMA9 for input"
446
447endchoice
448
449
450choice
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
458config 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
463config ETRAX_SERIAL_PORT1_DMA8_OUT
464 depends on ETRAX_ARCH_V10
465 bool "Ser1 uses DMA8 for output"
466
467config 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
477endchoice
478
479choice
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
485config 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
490config 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
500config 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
510endchoice
511
512choice
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
520config 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
525config 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
535config 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
692105b8 541 used when receiving data.
923dd2a4
JN
542 Normally you want to use DMA, unless you use the DMA channel for
543 something else.
544
545endchoice
546
547choice
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
555config 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
560config ETRAX_SERIAL_PORT3_DMA5_IN
561 depends on ETRAX_ARCH_V10
562 bool "DMA 5"
563
923dd2a4
JN
564endchoice
565
566choice
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
572config 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
577config ETRAX_SERIAL_PORT3_DMA4_OUT
578 depends on ETRAX_ARCH_V10
579 bool "DMA 4"
580
923dd2a4
JN
581endchoice
582
1da177e4
LT
583endmenu
584
acf83630 585source "drivers/Kconfig"
1da177e4 586
1da177e4
LT
587source "fs/Kconfig"
588
1da177e4
LT
589source "arch/cris/Kconfig.debug"
590
591source "security/Kconfig"
592
593source "crypto/Kconfig"
594
595source "lib/Kconfig"