ARM: dts: exynos: enable MFC device for all boards
[cascardo/linux.git] / arch / arc / Kconfig
1 #
2 # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 2 as
6 # published by the Free Software Foundation.
7 #
8
9 config ARC
10         def_bool y
11         select ARCH_SUPPORTS_ATOMIC_RMW if ARC_HAS_LLSC
12         select BUILDTIME_EXTABLE_SORT
13         select CLKSRC_OF
14         select CLONE_BACKWARDS
15         select COMMON_CLK
16         select GENERIC_ATOMIC64
17         select GENERIC_CLOCKEVENTS
18         select GENERIC_FIND_FIRST_BIT
19         # for now, we don't need GENERIC_IRQ_PROBE, CONFIG_GENERIC_IRQ_CHIP
20         select GENERIC_IRQ_SHOW
21         select GENERIC_PCI_IOMAP
22         select GENERIC_PENDING_IRQ if SMP
23         select GENERIC_SMP_IDLE_THREAD
24         select HAVE_ARCH_KGDB
25         select HAVE_ARCH_TRACEHOOK
26         select HAVE_FUTEX_CMPXCHG
27         select HAVE_IOREMAP_PROT
28         select HAVE_KPROBES
29         select HAVE_KRETPROBES
30         select HAVE_MEMBLOCK
31         select HAVE_MOD_ARCH_SPECIFIC if ARC_DW2_UNWIND
32         select HAVE_OPROFILE
33         select HAVE_PERF_EVENTS
34         select HANDLE_DOMAIN_IRQ
35         select IRQ_DOMAIN
36         select MODULES_USE_ELF_RELA
37         select NO_BOOTMEM
38         select OF
39         select OF_EARLY_FLATTREE
40         select OF_RESERVED_MEM
41         select PERF_USE_VMALLOC
42         select HAVE_DEBUG_STACKOVERFLOW
43         select HAVE_GENERIC_DMA_COHERENT
44
45 config MIGHT_HAVE_PCI
46         bool
47
48 config TRACE_IRQFLAGS_SUPPORT
49         def_bool y
50
51 config LOCKDEP_SUPPORT
52         def_bool y
53
54 config SCHED_OMIT_FRAME_POINTER
55         def_bool y
56
57 config GENERIC_CSUM
58         def_bool y
59
60 config RWSEM_GENERIC_SPINLOCK
61         def_bool y
62
63 config ARCH_DISCONTIGMEM_ENABLE
64         def_bool y
65
66 config ARCH_FLATMEM_ENABLE
67         def_bool y
68
69 config MMU
70         def_bool y
71
72 config NO_IOPORT_MAP
73         def_bool y
74
75 config GENERIC_CALIBRATE_DELAY
76         def_bool y
77
78 config GENERIC_HWEIGHT
79         def_bool y
80
81 config STACKTRACE_SUPPORT
82         def_bool y
83         select STACKTRACE
84
85 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
86         def_bool y
87         depends on ARC_MMU_V4
88
89 source "init/Kconfig"
90 source "kernel/Kconfig.freezer"
91
92 menu "ARC Architecture Configuration"
93
94 menu "ARC Platform/SoC/Board"
95
96 source "arch/arc/plat-sim/Kconfig"
97 source "arch/arc/plat-tb10x/Kconfig"
98 source "arch/arc/plat-axs10x/Kconfig"
99 #New platform adds here
100 source "arch/arc/plat-eznps/Kconfig"
101
102 endmenu
103
104 choice
105         prompt "ARC Instruction Set"
106         default ISA_ARCOMPACT
107
108 config ISA_ARCOMPACT
109         bool "ARCompact ISA"
110         select CPU_NO_EFFICIENT_FFS
111         help
112           The original ARC ISA of ARC600/700 cores
113
114 config ISA_ARCV2
115         bool "ARC ISA v2"
116         help
117           ISA for the Next Generation ARC-HS cores
118
119 endchoice
120
121 menu "ARC CPU Configuration"
122
123 choice
124         prompt "ARC Core"
125         default ARC_CPU_770 if ISA_ARCOMPACT
126         default ARC_CPU_HS if ISA_ARCV2
127
128 if ISA_ARCOMPACT
129
130 config ARC_CPU_750D
131         bool "ARC750D"
132         select ARC_CANT_LLSC
133         help
134           Support for ARC750 core
135
136 config ARC_CPU_770
137         bool "ARC770"
138         select ARC_HAS_SWAPE
139         help
140           Support for ARC770 core introduced with Rel 4.10 (Summer 2011)
141           This core has a bunch of cool new features:
142           -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4)
143                    Shared Address Spaces (for sharing TLB entires in MMU)
144           -Caches: New Prog Model, Region Flush
145           -Insns: endian swap, load-locked/store-conditional, time-stamp-ctr
146
147 endif   #ISA_ARCOMPACT
148
149 config ARC_CPU_HS
150         bool "ARC-HS"
151         depends on ISA_ARCV2
152         help
153           Support for ARC HS38x Cores based on ARCv2 ISA
154           The notable features are:
155             - SMP configurations of upto 4 core with coherency
156             - Optional L2 Cache and IO-Coherency
157             - Revised Interrupt Architecture (multiple priorites, reg banks,
158                 auto stack switch, auto regfile save/restore)
159             - MMUv4 (PIPT dcache, Huge Pages)
160             - Instructions for
161                 * 64bit load/store: LDD, STD
162                 * Hardware assisted divide/remainder: DIV, REM
163                 * Function prologue/epilogue: ENTER_S, LEAVE_S
164                 * IRQ enable/disable: CLRI, SETI
165                 * pop count: FFS, FLS
166                 * SETcc, BMSKN, XBFU...
167
168 endchoice
169
170 config CPU_BIG_ENDIAN
171         bool "Enable Big Endian Mode"
172         default n
173         help
174           Build kernel for Big Endian Mode of ARC CPU
175
176 config SMP
177         bool "Symmetric Multi-Processing"
178         default n
179         select ARC_HAS_COH_CACHES if ISA_ARCV2
180         select ARC_MCIP if ISA_ARCV2
181         help
182           This enables support for systems with more than one CPU.
183
184 if SMP
185
186 config ARC_HAS_COH_CACHES
187         def_bool n
188
189 config ARC_HAS_REENTRANT_IRQ_LV2
190         def_bool n
191
192 config ARC_MCIP
193         bool "ARConnect Multicore IP (MCIP) Support "
194         depends on ISA_ARCV2
195         help
196           This IP block enables SMP in ARC-HS38 cores.
197           It provides for cross-core interrupts, multi-core debug
198           hardware semaphores, shared memory,....
199
200 config NR_CPUS
201         int "Maximum number of CPUs (2-4096)"
202         range 2 4096
203         default "4"
204
205 config ARC_SMP_HALT_ON_RESET
206         bool "Enable Halt-on-reset boot mode"
207         default y if ARC_UBOOT_SUPPORT
208         help
209           In SMP configuration cores can be configured as Halt-on-reset
210           or they could all start at same time. For Halt-on-reset, non
211           masters are parked until Master kicks them so they can start of
212           at designated entry point. For other case, all jump to common
213           entry point and spin wait for Master's signal.
214
215 endif   #SMP
216
217 menuconfig ARC_CACHE
218         bool "Enable Cache Support"
219         default y
220         # if SMP, cache enabled ONLY if ARC implementation has cache coherency
221         depends on !SMP || ARC_HAS_COH_CACHES
222
223 if ARC_CACHE
224
225 config ARC_CACHE_LINE_SHIFT
226         int "Cache Line Length (as power of 2)"
227         range 5 7
228         default "6"
229         help
230           Starting with ARC700 4.9, Cache line length is configurable,
231           This option specifies "N", with Line-len = 2 power N
232           So line lengths of 32, 64, 128 are specified by 5,6,7, respectively
233           Linux only supports same line lengths for I and D caches.
234
235 config ARC_HAS_ICACHE
236         bool "Use Instruction Cache"
237         default y
238
239 config ARC_HAS_DCACHE
240         bool "Use Data Cache"
241         default y
242
243 config ARC_CACHE_PAGES
244         bool "Per Page Cache Control"
245         default y
246         depends on ARC_HAS_ICACHE || ARC_HAS_DCACHE
247         help
248           This can be used to over-ride the global I/D Cache Enable on a
249           per-page basis (but only for pages accessed via MMU such as
250           Kernel Virtual address or User Virtual Address)
251           TLB entries have a per-page Cache Enable Bit.
252           Note that Global I/D ENABLE + Per Page DISABLE works but corollary
253           Global DISABLE + Per Page ENABLE won't work
254
255 config ARC_CACHE_VIPT_ALIASING
256         bool "Support VIPT Aliasing D$"
257         depends on ARC_HAS_DCACHE && ISA_ARCOMPACT
258         default n
259
260 endif   #ARC_CACHE
261
262 config ARC_HAS_ICCM
263         bool "Use ICCM"
264         help
265           Single Cycle RAMS to store Fast Path Code
266         default n
267
268 config ARC_ICCM_SZ
269         int "ICCM Size in KB"
270         default "64"
271         depends on ARC_HAS_ICCM
272
273 config ARC_HAS_DCCM
274         bool "Use DCCM"
275         help
276           Single Cycle RAMS to store Fast Path Data
277         default n
278
279 config ARC_DCCM_SZ
280         int "DCCM Size in KB"
281         default "64"
282         depends on ARC_HAS_DCCM
283
284 config ARC_DCCM_BASE
285         hex "DCCM map address"
286         default "0xA0000000"
287         depends on ARC_HAS_DCCM
288
289 choice
290         prompt "MMU Version"
291         default ARC_MMU_V3 if ARC_CPU_770
292         default ARC_MMU_V2 if ARC_CPU_750D
293         default ARC_MMU_V4 if ARC_CPU_HS
294
295 if ISA_ARCOMPACT
296
297 config ARC_MMU_V1
298         bool "MMU v1"
299         help
300           Orig ARC700 MMU
301
302 config ARC_MMU_V2
303         bool "MMU v2"
304         help
305           Fixed the deficiency of v1 - possible thrashing in memcpy sceanrio
306           when 2 D-TLB and 1 I-TLB entries index into same 2way set.
307
308 config ARC_MMU_V3
309         bool "MMU v3"
310         depends on ARC_CPU_770
311         help
312           Introduced with ARC700 4.10: New Features
313           Variable Page size (1k-16k), var JTLB size 128 x (2 or 4)
314           Shared Address Spaces (SASID)
315
316 endif
317
318 config ARC_MMU_V4
319         bool "MMU v4"
320         depends on ISA_ARCV2
321
322 endchoice
323
324
325 choice
326         prompt "MMU Page Size"
327         default ARC_PAGE_SIZE_8K
328
329 config ARC_PAGE_SIZE_8K
330         bool "8KB"
331         help
332           Choose between 8k vs 16k
333
334 config ARC_PAGE_SIZE_16K
335         bool "16KB"
336         depends on ARC_MMU_V3 || ARC_MMU_V4
337
338 config ARC_PAGE_SIZE_4K
339         bool "4KB"
340         depends on ARC_MMU_V3 || ARC_MMU_V4
341
342 endchoice
343
344 choice
345         prompt "MMU Super Page Size"
346         depends on ISA_ARCV2 && TRANSPARENT_HUGEPAGE
347         default ARC_HUGEPAGE_2M
348
349 config ARC_HUGEPAGE_2M
350         bool "2MB"
351
352 config ARC_HUGEPAGE_16M
353         bool "16MB"
354
355 endchoice
356
357 config NODES_SHIFT
358         int "Maximum NUMA Nodes (as a power of 2)"
359         default "1" if !DISCONTIGMEM
360         default "2" if DISCONTIGMEM
361         depends on NEED_MULTIPLE_NODES
362         ---help---
363           Accessing memory beyond 1GB (with or w/o PAE) requires 2 memory
364           zones.
365
366 if ISA_ARCOMPACT
367
368 config ARC_COMPACT_IRQ_LEVELS
369         bool "ARCompact IRQ Priorities: High(2)/Low(1)"
370         default n
371         # Timer HAS to be high priority, for any other high priority config
372         select ARC_IRQ3_LV2
373         # if SMP, LV2 enabled ONLY if ARC implementation has LV2 re-entrancy
374         depends on !SMP || ARC_HAS_REENTRANT_IRQ_LV2
375
376 if ARC_COMPACT_IRQ_LEVELS
377
378 config ARC_IRQ3_LV2
379         bool
380
381 config ARC_IRQ5_LV2
382         bool
383
384 config ARC_IRQ6_LV2
385         bool
386
387 endif   #ARC_COMPACT_IRQ_LEVELS
388
389 config ARC_FPU_SAVE_RESTORE
390         bool "Enable FPU state persistence across context switch"
391         default n
392         help
393           Double Precision Floating Point unit had dedictaed regs which
394           need to be saved/restored across context-switch.
395           Note that ARC FPU is overly simplistic, unlike say x86, which has
396           hardware pieces to allow software to conditionally save/restore,
397           based on actual usage of FPU by a task. Thus our implemn does
398           this for all tasks in system.
399
400 endif   #ISA_ARCOMPACT
401
402 config ARC_CANT_LLSC
403         def_bool n
404
405 config ARC_HAS_LLSC
406         bool "Insn: LLOCK/SCOND (efficient atomic ops)"
407         default y
408         depends on !ARC_CANT_LLSC
409
410 config ARC_STAR_9000923308
411         bool "Workaround for llock/scond livelock"
412         default n
413         depends on ISA_ARCV2 && SMP && ARC_HAS_LLSC
414
415 config ARC_HAS_SWAPE
416         bool "Insn: SWAPE (endian-swap)"
417         default y
418
419 if ISA_ARCV2
420
421 config ARC_HAS_LL64
422         bool "Insn: 64bit LDD/STD"
423         help
424           Enable gcc to generate 64-bit load/store instructions
425           ISA mandates even/odd registers to allow encoding of two
426           dest operands with 2 possible source operands.
427         default y
428
429 config ARC_HAS_DIV_REM
430         bool "Insn: div, divu, rem, remu"
431         default y
432
433 config ARC_HAS_RTC
434         bool "Local 64-bit r/o cycle counter"
435         default n
436         depends on !SMP
437
438 config ARC_HAS_GFRC
439         bool "SMP synchronized 64-bit cycle counter"
440         default y
441         depends on SMP
442
443 config ARC_NUMBER_OF_INTERRUPTS
444         int "Number of interrupts"
445         range 8 240
446         default 32
447         help
448           This defines the number of interrupts on the ARCv2HS core.
449           It affects the size of vector table.
450           The initial 8 IRQs are fixed (Timer, ICI etc) and although configurable
451           in hardware, it keep things simple for Linux to assume they are always
452           present.
453
454 endif   # ISA_ARCV2
455
456 endmenu   # "ARC CPU Configuration"
457
458 config LINUX_LINK_BASE
459         hex "Linux Link Address"
460         default "0x80000000"
461         help
462           ARC700 divides the 32 bit phy address space into two equal halves
463           -Lower 2G (0 - 0x7FFF_FFFF ) is user virtual, translated by MMU
464           -Upper 2G (0x8000_0000 onwards) is untranslated, for kernel
465           Typically Linux kernel is linked at the start of untransalted addr,
466           hence the default value of 0x8zs.
467           However some customers have peripherals mapped at this addr, so
468           Linux needs to be scooted a bit.
469           If you don't know what the above means, leave this setting alone.
470           This needs to match memory start address specified in Device Tree
471
472 config HIGHMEM
473         bool "High Memory Support"
474         select DISCONTIGMEM
475         help
476           With ARC 2G:2G address split, only upper 2G is directly addressable by
477           kernel. Enable this to potentially allow access to rest of 2G and PAE
478           in future
479
480 config ARC_HAS_PAE40
481         bool "Support for the 40-bit Physical Address Extension"
482         default n
483         depends on ISA_ARCV2
484         help
485           Enable access to physical memory beyond 4G, only supported on
486           ARC cores with 40 bit Physical Addressing support
487
488 config ARCH_PHYS_ADDR_T_64BIT
489         def_bool ARC_HAS_PAE40
490
491 config ARCH_DMA_ADDR_T_64BIT
492         bool
493
494 config ARC_PLAT_NEEDS_PHYS_TO_DMA
495         bool
496
497 config ARC_KVADDR_SIZE
498         int "Kernel Virtaul Address Space size (MB)"
499         range 0 512
500         default "256"
501         help
502           The kernel address space is carved out of 256MB of translated address
503           space for catering to vmalloc, modules, pkmap, fixmap. This however may
504           not suffice vmalloc requirements of a 4K CPU EZChip system. So allow
505           this to be stretched to 512 MB (by extending into the reserved
506           kernel-user gutter)
507
508 config ARC_CURR_IN_REG
509         bool "Dedicate Register r25 for current_task pointer"
510         default y
511         help
512           This reserved Register R25 to point to Current Task in
513           kernel mode. This saves memory access for each such access
514
515
516 config ARC_EMUL_UNALIGNED
517         bool "Emulate unaligned memory access (userspace only)"
518         default N
519         select SYSCTL_ARCH_UNALIGN_NO_WARN
520         select SYSCTL_ARCH_UNALIGN_ALLOW
521         depends on ISA_ARCOMPACT
522         help
523           This enables misaligned 16 & 32 bit memory access from user space.
524           Use ONLY-IF-ABS-NECESSARY as it will be very slow and also can hide
525           potential bugs in code
526
527 config HZ
528         int "Timer Frequency"
529         default 100
530
531 config ARC_METAWARE_HLINK
532         bool "Support for Metaware debugger assisted Host access"
533         default n
534         help
535           This options allows a Linux userland apps to directly access
536           host file system (open/creat/read/write etc) with help from
537           Metaware Debugger. This can come in handy for Linux-host communication
538           when there is no real usable peripheral such as EMAC.
539
540 menuconfig ARC_DBG
541         bool "ARC debugging"
542         default y
543
544 if ARC_DBG
545
546 config ARC_DW2_UNWIND
547         bool "Enable DWARF specific kernel stack unwind"
548         default y
549         select KALLSYMS
550         help
551           Compiles the kernel with DWARF unwind information and can be used
552           to get stack backtraces.
553
554           If you say Y here the resulting kernel image will be slightly larger
555           but not slower, and it will give very useful debugging information.
556           If you don't debug the kernel, you can say N, but we may not be able
557           to solve problems without frame unwind information
558
559 config ARC_DBG_TLB_PARANOIA
560         bool "Paranoia Checks in Low Level TLB Handlers"
561         default n
562
563 config ARC_DBG_TLB_MISS_COUNT
564         bool "Profile TLB Misses"
565         default n
566         select DEBUG_FS
567         help
568           Counts number of I and D TLB Misses and exports them via Debugfs
569           The counters can be cleared via Debugfs as well
570
571 endif
572
573 config ARC_UBOOT_SUPPORT
574         bool "Support uboot arg Handling"
575         default n
576         help
577           ARC Linux by default checks for uboot provided args as pointers to
578           external cmdline or DTB. This however breaks in absence of uboot,
579           when booting from Metaware debugger directly, as the registers are
580           not zeroed out on reset by mdb and/or ARCv2 based cores. The bogus
581           registers look like uboot args to kernel which then chokes.
582           So only enable the uboot arg checking/processing if users are sure
583           of uboot being in play.
584
585 config ARC_BUILTIN_DTB_NAME
586         string "Built in DTB"
587         help
588           Set the name of the DTB to embed in the vmlinux binary
589           Leaving it blank selects the minimal "skeleton" dtb
590
591 source "kernel/Kconfig.preempt"
592
593 menu "Executable file formats"
594 source "fs/Kconfig.binfmt"
595 endmenu
596
597 endmenu  # "ARC Architecture Configuration"
598
599 source "mm/Kconfig"
600
601 config FORCE_MAX_ZONEORDER
602         int "Maximum zone order"
603         default "12" if ARC_HUGEPAGE_16M
604         default "11"
605
606 source "net/Kconfig"
607 source "drivers/Kconfig"
608
609 menu "Bus Support"
610
611 config PCI
612         bool "PCI support" if MIGHT_HAVE_PCI
613         help
614           PCI is the name of a bus system, i.e., the way the CPU talks to
615           the other stuff inside your box.  Find out if your board/platform
616           has PCI.
617
618           Note: PCIe support for Synopsys Device will be available only
619           when HAPS DX is configured with PCIe RC bitmap. If you have PCI,
620           say Y, otherwise N.
621
622 config PCI_SYSCALL
623         def_bool PCI
624
625 source "drivers/pci/Kconfig"
626
627 endmenu
628
629 source "fs/Kconfig"
630 source "arch/arc/Kconfig.debug"
631 source "security/Kconfig"
632 source "crypto/Kconfig"
633 source "lib/Kconfig"
634 source "kernel/power/Kconfig"