CRIS: Pagetable for ARTPEC-3
[firefly-linux-kernel-4.4.55.git] / arch / cris / Kconfig
1 #
2 # For a description of the syntax of this configuration file,
3 # see the Configure script.
4 #
5
6 mainmenu "Linux/CRIS Kernel Configuration"
7
8 config MMU
9         bool
10         default y
11
12 config ZONE_DMA
13         bool
14         default y
15
16 config RWSEM_GENERIC_SPINLOCK
17         bool
18         default y
19
20 config RWSEM_XCHGADD_ALGORITHM
21         bool
22
23 config GENERIC_TIME
24         def_bool y
25
26 config GENERIC_CMOS_UPDATE
27         def_bool y
28
29 config ARCH_USES_GETTIMEOFFSET
30         def_bool n
31
32 config GENERIC_IOMAP
33        bool
34        default y
35
36 config ARCH_HAS_ILOG2_U32
37         bool
38         default n
39
40 config ARCH_HAS_ILOG2_U64
41         bool
42         default n
43
44 config GENERIC_FIND_NEXT_BIT
45         bool
46         default y
47
48 config GENERIC_HWEIGHT
49         bool
50         default y
51
52 config GENERIC_CALIBRATE_DELAY
53         bool
54         default y
55
56 config NO_IOPORT
57         def_bool y
58
59 config FORCE_MAX_ZONEORDER
60         int
61         default 6
62
63 config CRIS
64         bool
65         default y
66         select HAVE_IDE
67
68 config HZ
69         int
70         default 100
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 GENERIC_HARDIRQS
81         bool
82         default y
83
84 config ETRAX_CMDLINE
85         string "Kernel command line"
86         default "root=/dev/mtdblock3"
87         help
88           Pass additional commands to the kernel.
89
90 config ETRAX_WATCHDOG
91         bool "Enable ETRAX watchdog"
92         help
93           Enable the built-in watchdog timer support on ETRAX based embedded
94           network computers.
95
96 config ETRAX_WATCHDOG_NICE_DOGGY
97         bool "Disable watchdog during Oops printouts"
98         depends on ETRAX_WATCHDOG
99         help
100           By enabling this you make sure that the watchdog does not bite while
101           printing oopses. Recommended for development systems but not for
102           production releases.
103
104 config ETRAX_FAST_TIMER
105        bool "Enable ETRAX fast timer API"
106        help
107          This options enables the API to a fast timer implementation using
108          timer1 to get sub jiffie resolution timers (primarily one-shot
109          timers).
110          This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
111
112 config ETRAX_KMALLOCED_MODULES
113         bool "Enable module allocation with kmalloc"
114         help
115           Enable module allocation with kmalloc instead of vmalloc.
116
117 config OOM_REBOOT
118        bool "Enable reboot at out of memory"
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 SVINTO_SIM
145         bool "ETRAX-100LX-for-xsim-simulator"
146         select ARCH_USES_GETTIMEOFFSET
147         help
148           Support the xsim ETRAX Simulator.
149
150 config ETRAXFS
151         bool "ETRAX-FS-V32"
152         help
153           Support CRIS V32.
154
155 config CRIS_MACH_ARTPEC3
156         bool "ARTPEC-3"
157         help
158           Support Axis ARTPEC-3.
159
160 endchoice
161
162 config ETRAX_VCS_SIM
163         bool "VCS Simulator"
164         help
165           Setup hardware to be run in the VCS simulator.
166
167 config ETRAX_ARCH_V10
168        bool
169        default y if ETRAX100LX || ETRAX100LX_V2
170        default n if !(ETRAX100LX || ETRAX100LX_V2)
171
172 config ETRAX_ARCH_V32
173        bool
174        default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
175        default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
176
177 config ETRAX_DRAM_SIZE
178         int "DRAM size (dec, in MB)"
179         default "8"
180         help
181           Size of DRAM (decimal in MB) typically 2, 8 or 16.
182
183 config ETRAX_VMEM_SIZE
184        int "Video memory size (dec, in MB)"
185        depends on ETRAX_ARCH_V32 && !ETRAXFS
186        default 8 if !ETRAXFS
187        help
188         Size of Video accessible memory (decimal, in MB).
189
190 config ETRAX_FLASH_BUSWIDTH
191         int "Buswidth of NOR flash in bytes"
192         default "2"
193         help
194           Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
195
196 config ETRAX_NANDFLASH_BUSWIDTH
197         int "Buswidth of NAND flash in bytes"
198         default "1"
199         help
200           Width in bytes of the NAND flash (1 or 2).
201
202 config ETRAX_FLASH1_SIZE
203        int "FLASH1 size (dec, in MB. 0 = Unknown)"
204        default "0"
205
206 choice
207         prompt "Product debug-port"
208         default ETRAX_DEBUG_PORT0
209
210 config ETRAX_DEBUG_PORT0
211         bool "Serial-0"
212         help
213           Choose a serial port for the ETRAX debug console.  Default to
214           port 0.
215
216 config ETRAX_DEBUG_PORT1
217         bool "Serial-1"
218         help
219           Use serial port 1 for the console.
220
221 config ETRAX_DEBUG_PORT2
222         bool "Serial-2"
223         help
224           Use serial port 2 for the console.
225
226 config ETRAX_DEBUG_PORT3
227         bool "Serial-3"
228         help
229           Use serial port 3 for the console.
230
231 config ETRAX_DEBUG_PORT_NULL
232         bool "disabled"
233         help
234           Disable serial-port debugging.
235
236 endchoice
237
238 choice
239         prompt "Kernel GDB port"
240         depends on ETRAX_KGDB
241         default ETRAX_KGDB_PORT0
242         help
243           Choose a serial port for kernel debugging.  NOTE: This port should
244           not be enabled under Drivers for built-in interfaces (as it has its
245           own initialization code) and should not be the same as the debug port.
246
247 config ETRAX_KGDB_PORT0
248         bool "Serial-0"
249         help
250           Use serial port 0 for kernel debugging.
251
252 config ETRAX_KGDB_PORT1
253         bool "Serial-1"
254         help
255           Use serial port 1 for kernel debugging.
256
257 config ETRAX_KGDB_PORT2
258         bool "Serial-2"
259         help
260           Use serial port 2 for kernel debugging.
261
262 config ETRAX_KGDB_PORT3
263         bool "Serial-3"
264         help
265           Use serial port 3 for kernel debugging.
266
267 endchoice
268
269 source arch/cris/arch-v10/Kconfig
270 source arch/cris/arch-v32/Kconfig
271
272 endmenu
273
274 source "net/Kconfig"
275
276 # bring in ETRAX built-in drivers
277 menu "Drivers for built-in interfaces"
278 source arch/cris/arch-v10/drivers/Kconfig
279 source arch/cris/arch-v32/drivers/Kconfig
280
281 config ETRAX_AXISFLASHMAP
282         bool "Axis flash-map support"
283         select MTD
284         select MTD_CFI
285         select MTD_CFI_AMDSTD
286         select MTD_JEDECPROBE if ETRAX_ARCH_V32
287         select MTD_CHAR
288         select MTD_BLOCK
289         select MTD_PARTITIONS
290         select MTD_CONCAT
291         select MTD_COMPLEX_MAPPINGS
292         help
293           This option enables MTD mapping of flash devices.  Needed to use
294           flash memories.  If unsure, say Y.
295
296 config ETRAX_RTC
297         bool "Real Time Clock support"
298         depends on ETRAX_I2C
299         help
300           Enables drivers for the Real-Time Clock battery-backed chips on
301           some products. The kernel reads the time when booting, and
302           the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a
303           rtc_time struct (see <file:include/asm-cris/rtc.h>) on the /dev/rtc
304           device.  You can check the time with cat /proc/rtc, but
305           normal time reading should be done using libc function time and
306           friends.
307
308 choice
309         prompt "RTC chip"
310         depends on ETRAX_RTC
311         default ETRAX_PCF8563 if ETRAX_ARCH_V32
312         default ETRAX_DS1302 if ETRAX_ARCH_V10
313
314 config ETRAX_DS1302
315         depends on ETRAX_ARCH_V10
316         bool "DS1302"
317         help
318           Enables the driver for the DS1302 Real-Time Clock battery-backed
319           chip on some products.
320
321 config ETRAX_PCF8563
322         bool "PCF8563"
323         help
324           Enables the driver for the PCF8563 Real-Time Clock battery-backed
325           chip on some products.
326
327 endchoice
328
329 config ETRAX_SYNCHRONOUS_SERIAL
330         bool "Synchronous serial-port support"
331         help
332           Select this to enable the synchronous serial port driver.
333
334 config ETRAX_SYNCHRONOUS_SERIAL_PORT0
335         bool "Synchronous serial port 0 enabled"
336         depends on ETRAX_SYNCHRONOUS_SERIAL
337         help
338           Enabled synchronous serial port 0.
339
340 config ETRAX_SYNCHRONOUS_SERIAL0_DMA
341         bool "Enable DMA on synchronous serial port 0."
342         depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
343         help
344           A synchronous serial port can run in manual or DMA mode.
345           Selecting this option will make it run in DMA mode.
346
347 config ETRAX_SYNCHRONOUS_SERIAL_PORT1
348         bool "Synchronous serial port 1 enabled"
349         depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
350         help
351           Enabled synchronous serial port 1.
352
353 config ETRAX_SYNCHRONOUS_SERIAL1_DMA
354         bool "Enable DMA on synchronous serial port 1."
355         depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
356         help
357           A synchronous serial port can run in manual or DMA mode.
358           Selecting this option will make it run in DMA mode.
359
360 choice
361         prompt "Network LED behavior"
362         depends on ETRAX_ETHERNET
363         default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
364
365 config ETRAX_NETWORK_LED_ON_WHEN_LINK
366         bool "LED_on_when_link"
367         help
368           Selecting LED_on_when_link will light the LED when there is a
369           connection and will flash off when there is activity.
370
371           Selecting LED_on_when_activity will light the LED only when
372           there is activity.
373
374           This setting will also affect the behaviour of other activity LEDs
375           e.g. Bluetooth.
376
377 config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
378         bool "LED_on_when_activity"
379         help
380           Selecting LED_on_when_link will light the LED when there is a
381           connection and will flash off when there is activity.
382
383           Selecting LED_on_when_activity will light the LED only when
384           there is activity.
385
386           This setting will also affect the behaviour of other activity LEDs
387           e.g. Bluetooth.
388
389 endchoice
390
391 choice
392         prompt "Ser0 DMA out channel"
393         depends on ETRAX_SERIAL_PORT0
394         default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
395         default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
396
397 config ETRAX_SERIAL_PORT0_NO_DMA_OUT
398         bool "Ser0 uses no DMA for output"
399         help
400           Do not use DMA for ser0 output.
401
402 config ETRAX_SERIAL_PORT0_DMA6_OUT
403         bool "Ser0 uses DMA6 for output"
404         depends on ETRAXFS
405         help
406           Enables the DMA6 output channel for ser0 (ttyS0).
407           If you do not enable DMA, an interrupt for each character will be
408           used when transmitting data.
409           Normally you want to use DMA, unless you use the DMA channel for
410           something else.
411
412 config ETRAX_SERIAL_PORT0_DMA0_OUT
413         bool "Ser0 uses DMA0 for output"
414         depends on CRIS_MACH_ARTPEC3
415         help
416           Enables the DMA0 output channel for ser0 (ttyS0).
417           If you do not enable DMA, an interrupt for each character will be
418           used when transmitting data.
419           Normally you want to use DMA, unless you use the DMA channel for
420           something else.
421
422 endchoice
423
424 choice
425         prompt "Ser0 DMA in channel "
426         depends on ETRAX_SERIAL_PORT0
427         default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
428         default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
429         help
430           What DMA channel to use for ser0.
431
432 config ETRAX_SERIAL_PORT0_NO_DMA_IN
433         bool "Ser0 uses no DMA for input"
434         help
435           Do not use DMA for ser0 input.
436
437 config ETRAX_SERIAL_PORT0_DMA7_IN
438         bool "Ser0 uses DMA7 for input"
439         depends on ETRAXFS
440         help
441           Enables the DMA7 input channel for ser0 (ttyS0).
442           If you do not enable DMA, an interrupt for each character will be
443           used when receiving data.
444           Normally you want to use DMA, unless you use the DMA channel for
445           something else.
446
447 config ETRAX_SERIAL_PORT0_DMA1_IN
448         bool "Ser0 uses DMA1 for input"
449         depends on CRIS_MACH_ARTPEC3
450         help
451           Enables the DMA1 input channel for ser0 (ttyS0).
452           If you do not enable DMA, an interrupt for each character will be
453           used when receiving data.
454           Normally you want to use DMA, unless you use the DMA channel for
455           something else.
456
457 endchoice
458
459 choice
460         prompt "Ser1 DMA in channel "
461         depends on ETRAX_SERIAL_PORT1
462         default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
463         default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
464         help
465           What DMA channel to use for ser1.
466
467 config ETRAX_SERIAL_PORT1_NO_DMA_IN
468         bool "Ser1 uses no DMA for input"
469         help
470           Do not use DMA for ser1 input.
471
472 config ETRAX_SERIAL_PORT1_DMA5_IN
473         bool "Ser1 uses DMA5 for input"
474         depends on ETRAX_ARCH_V32
475         help
476           Enables the DMA5 input channel for ser1 (ttyS1).
477           If you do not enable DMA, an interrupt for each character will be
478           used when receiving data.
479           Normally you want this on, unless you use the DMA channel for
480           something else.
481
482 config ETRAX_SERIAL_PORT1_DMA9_IN
483         depends on ETRAX_ARCH_V10
484         bool "Ser1 uses DMA9 for input"
485
486 endchoice
487
488
489 choice
490         prompt "Ser1 DMA out channel"
491         depends on ETRAX_SERIAL_PORT1
492         default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
493         default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
494         help
495           What DMA channel to use for ser1.
496
497 config ETRAX_SERIAL_PORT1_NO_DMA_OUT
498         bool "Ser1 uses no DMA for output"
499         help
500           Do not use DMA for ser1 output.
501
502 config ETRAX_SERIAL_PORT1_DMA8_OUT
503         depends on ETRAX_ARCH_V10
504         bool "Ser1 uses DMA8 for output"
505
506 config ETRAX_SERIAL_PORT1_DMA4_OUT
507         depends on ETRAX_ARCH_V32
508         bool "Ser1 uses DMA4 for output"
509         help
510           Enables the DMA4 output channel for ser1 (ttyS1).
511           If you do not enable DMA, an interrupt for each character will be
512           used when transmitting data.
513           Normally you want this on, unless you use the DMA channel for
514           something else.
515
516 endchoice
517
518 choice
519         prompt "Ser2 DMA out channel"
520         depends on ETRAX_SERIAL_PORT2
521         default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
522         default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
523
524 config ETRAX_SERIAL_PORT2_NO_DMA_OUT
525         bool "Ser2 uses no DMA for output"
526         help
527           Do not use DMA for ser2 output.
528
529 config ETRAX_SERIAL_PORT2_DMA2_OUT
530         bool "Ser2 uses DMA2 for output"
531         depends on ETRAXFS || ETRAX_ARCH_V10
532         help
533           Enables the DMA2 output channel for ser2 (ttyS2).
534           If you do not enable DMA, an interrupt for each character will be
535           used when transmitting data.
536           Normally you want to use DMA, unless you use the DMA channel for
537           something else.
538
539 config ETRAX_SERIAL_PORT2_DMA6_OUT
540         bool "Ser2 uses DMA6 for output"
541         depends on CRIS_MACH_ARTPEC3
542         help
543           Enables the DMA6 output channel for ser2 (ttyS2).
544           If you do not enable DMA, an interrupt for each character will be
545           used when transmitting data.
546           Normally you want to use DMA, unless you use the DMA channel for
547           something else.
548
549 endchoice
550
551 choice
552         prompt "Ser2 DMA in channel"
553         depends on ETRAX_SERIAL_PORT2
554         default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
555         default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
556         help
557           What DMA channel to use for ser2.
558
559 config ETRAX_SERIAL_PORT2_NO_DMA_IN
560         bool "Ser2 uses no DMA for input"
561         help
562           Do not use DMA for ser2 input.
563
564 config ETRAX_SERIAL_PORT2_DMA3_IN
565         bool "Ser2 uses DMA3 for input"
566         depends on ETRAXFS || ETRAX_ARCH_V10
567         help
568           Enables the DMA3 input channel for ser2 (ttyS2).
569           If you do not enable DMA, an interrupt for each character will be
570           used when receiving data.
571           Normally you want to use DMA, unless you use the DMA channel for
572           something else.
573
574 config ETRAX_SERIAL_PORT2_DMA7_IN
575         bool "Ser2 uses DMA7 for input"
576         depends on CRIS_MACH_ARTPEC3
577         help
578           Enables the DMA7 input channel for ser2 (ttyS2).
579           If you do not enable DMA, an interrupt for each character will be
580           used when receiving data.
581           Normally you want to use DMA, unless you use the DMA channel for
582           something else.
583
584 endchoice
585
586 choice
587         prompt "Ser3 DMA in channel"
588         depends on ETRAX_SERIAL_PORT3
589         default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
590         default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
591         help
592           What DMA channel to use for ser3.
593
594 config ETRAX_SERIAL_PORT3_NO_DMA_IN
595         bool "Ser3 uses no DMA for input"
596         help
597           Do not use DMA for ser3 input.
598
599 config ETRAX_SERIAL_PORT3_DMA5_IN
600         depends on ETRAX_ARCH_V10
601         bool "DMA 5"
602
603 config ETRAX_SERIAL_PORT3_DMA9_IN
604         bool "Ser3 uses DMA9 for input"
605         depends on ETRAXFS
606         help
607           Enables the DMA9 input channel for ser3 (ttyS3).
608           If you do not enable DMA, an interrupt for each character will be
609           used when receiving data.
610           Normally you want to use DMA, unless you use the DMA channel for
611           something else.
612
613 config ETRAX_SERIAL_PORT3_DMA3_IN
614         bool "Ser3 uses DMA3 for input"
615         depends on CRIS_MACH_ARTPEC3
616         help
617           Enables the DMA3 input channel for ser3 (ttyS3).
618           If you do not enable DMA, an interrupt for each character will be
619           used when receiving data.
620           Normally you want to use DMA, unless you use the DMA channel for
621           something else.
622
623 endchoice
624
625 choice
626         prompt "Ser3 DMA out channel"
627         depends on ETRAX_SERIAL_PORT3
628         default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
629         default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
630
631 config ETRAX_SERIAL_PORT3_NO_DMA_OUT
632         bool "Ser3 uses no DMA for output"
633         help
634           Do not use DMA for ser3 output.
635
636 config ETRAX_SERIAL_PORT3_DMA4_OUT
637         depends on ETRAX_ARCH_V10
638         bool "DMA 4"
639
640 config ETRAX_SERIAL_PORT3_DMA8_OUT
641         bool "Ser3 uses DMA8 for output"
642         depends on ETRAXFS
643         help
644           Enables the DMA8 output channel for ser3 (ttyS3).
645           If you do not enable DMA, an interrupt for each character will be
646           used when transmitting data.
647           Normally you want to use DMA, unless you use the DMA channel for
648           something else.
649
650 config ETRAX_SERIAL_PORT3_DMA2_OUT
651         bool "Ser3 uses DMA2 for output"
652         depends on CRIS_MACH_ARTPEC3
653         help
654           Enables the DMA2 output channel for ser3 (ttyS3).
655           If you do not enable DMA, an interrupt for each character will be
656           used when transmitting data.
657           Normally you want to use DMA, unless you use the DMA channel for
658           something else.
659
660 endchoice
661
662 endmenu
663
664 source "drivers/base/Kconfig"
665
666 # standard linux drivers
667 source "drivers/mtd/Kconfig"
668
669 source "drivers/parport/Kconfig"
670
671 source "drivers/pnp/Kconfig"
672
673 source "drivers/block/Kconfig"
674
675 source "drivers/ide/Kconfig"
676
677 source "drivers/net/Kconfig"
678
679 source "drivers/i2c/Kconfig"
680
681 source "drivers/rtc/Kconfig"
682
683 #
684 # input before char - char/joystick depends on it. As does USB.
685 #
686 source "drivers/input/Kconfig"
687
688 source "drivers/char/Kconfig"
689
690 source "fs/Kconfig"
691
692 source "drivers/usb/Kconfig"
693
694 source "drivers/uwb/Kconfig"
695
696 source "drivers/staging/Kconfig"
697
698 source "arch/cris/Kconfig.debug"
699
700 source "security/Kconfig"
701
702 source "crypto/Kconfig"
703
704 source "lib/Kconfig"