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