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