Merge tag 'v3.10.83' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / metag / Kconfig
CommitLineData
5633004c
JH
1config METAG
2 def_bool y
3 select EMBEDDED
4 select GENERIC_ATOMIC64
5 select GENERIC_CLOCKEVENTS
6 select GENERIC_IRQ_SHOW
5633004c
JH
7 select GENERIC_SMP_IDLE_THREAD
8 select HAVE_64BIT_ALIGNED_ACCESS
9 select HAVE_ARCH_TRACEHOOK
00512bdd 10 select HAVE_C_RECORDMCOUNT
5633004c 11 select HAVE_DEBUG_KMEMLEAK
00512bdd
JH
12 select HAVE_DYNAMIC_FTRACE
13 select HAVE_FTRACE_MCOUNT_RECORD
14 select HAVE_FUNCTION_TRACER
15 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
5633004c 16 select HAVE_GENERIC_HARDIRQS
5633004c
JH
17 select HAVE_KERNEL_BZIP2
18 select HAVE_KERNEL_GZIP
19 select HAVE_KERNEL_LZO
20 select HAVE_KERNEL_XZ
21 select HAVE_MEMBLOCK
22 select HAVE_MEMBLOCK_NODE_MAP
23 select HAVE_MOD_ARCH_SPECIFIC
00e6c923 24 select HAVE_OPROFILE
903b20ad 25 select HAVE_PERF_EVENTS
5633004c 26 select HAVE_SYSCALL_TRACEPOINTS
b92021b0 27 select HAVE_UNDERSCORE_SYMBOL_PREFIX
5633004c
JH
28 select IRQ_DOMAIN
29 select MODULES_USE_ELF_RELA
30 select OF
31 select OF_EARLY_FLATTREE
32 select SPARSE_IRQ
33
5633004c
JH
34config STACKTRACE_SUPPORT
35 def_bool y
36
37config LOCKDEP_SUPPORT
38 def_bool y
39
40config HAVE_LATENCYTOP_SUPPORT
41 def_bool y
42
43config RWSEM_GENERIC_SPINLOCK
44 def_bool y
45
46config RWSEM_XCHGADD_ALGORITHM
47 bool
48
49config GENERIC_HWEIGHT
50 def_bool y
51
52config GENERIC_CALIBRATE_DELAY
53 def_bool y
54
5633004c
JH
55config NO_IOPORT
56 def_bool y
57
58source "init/Kconfig"
59
60source "kernel/Kconfig.freezer"
61
62menu "Processor type and features"
63
64config MMU
65 def_bool y
66
67config STACK_GROWSUP
68 def_bool y
69
70config HOTPLUG_CPU
71 bool "Enable CPU hotplug support"
72 depends on SMP
73 help
74 Say Y here to allow turning CPUs off and on. CPUs can be
75 controlled through /sys/devices/system/cpu.
76
77 Say N if you want to disable CPU hotplug.
78
79config HIGHMEM
80 bool "High Memory Support"
81 help
82 The address space of Meta processors is only 4 Gigabytes large
83 and it has to accommodate user address space, kernel address
84 space as well as some memory mapped IO. That means that, if you
85 have a large amount of physical memory and/or IO, not all of the
86 memory can be "permanently mapped" by the kernel. The physical
87 memory that is not permanently mapped is called "high memory".
88
89 Depending on the selected kernel/user memory split, minimum
90 vmalloc space and actual amount of RAM, you may not need this
91 option which should result in a slightly faster kernel.
92
93 If unsure, say n.
94
95source "arch/metag/mm/Kconfig"
96
97source "arch/metag/Kconfig.soc"
98
99config METAG_META12
100 bool
101 help
102 Select this from the SoC config symbol to indicate that it contains a
103 Meta 1.2 core.
104
105config METAG_META21
106 bool
107 help
108 Select this from the SoC config symbol to indicate that it contains a
109 Meta 2.1 core.
110
111config SMP
112 bool "Symmetric multi-processing support"
113 depends on METAG_META21 && METAG_META21_MMU
114 select USE_GENERIC_SMP_HELPERS
115 help
116 This enables support for systems with more than one thread running
117 Linux. If you have a system with only one thread running Linux,
118 say N. Otherwise, say Y.
119
120config NR_CPUS
121 int "Maximum number of CPUs (2-4)" if SMP
122 range 2 4 if SMP
123 default "1" if !SMP
124 default "4" if SMP
125
126config METAG_SMP_WRITE_REORDERING
127 bool
128 help
129 This attempts to prevent cache-memory incoherence due to external
130 reordering of writes from different hardware threads when SMP is
131 enabled. It adds fences (system event 0) to smp_mb and smp_rmb in an
132 attempt to catch some of the cases, and also before writes to shared
133 memory in LOCK1 protected atomics and spinlocks.
134 This will not completely prevent cache incoherency on affected cores.
135
136config METAG_LNKGET_AROUND_CACHE
137 bool
138 depends on METAG_META21
139 help
140 This indicates that the LNKGET/LNKSET instructions go around the
141 cache, which requires some extra cache flushes when the memory needs
142 to be accessed by normal GET/SET instructions too.
143
144choice
145 prompt "Atomicity primitive"
146 default METAG_ATOMICITY_LNKGET
147 help
148 This option selects the mechanism for performing atomic operations.
149
150config METAG_ATOMICITY_IRQSOFF
151 depends on !SMP
152 bool "irqsoff"
153 help
154 This option disables interrupts to achieve atomicity. This mechanism
155 is not SMP-safe.
156
157config METAG_ATOMICITY_LNKGET
158 depends on METAG_META21
159 bool "lnkget/lnkset"
160 help
161 This option uses the LNKGET and LNKSET instructions to achieve
162 atomicity. LNKGET/LNKSET are load-link/store-conditional instructions.
163 Choose this option if your system requires low latency.
164
165config METAG_ATOMICITY_LOCK1
166 depends on SMP
167 bool "lock1"
168 help
169 This option uses the LOCK1 instruction for atomicity. This is mainly
170 provided as a debugging aid if the lnkget/lnkset atomicity primitive
171 isn't working properly.
172
173endchoice
174
175config METAG_FPU
176 bool "FPU Support"
177 depends on METAG_META21
178 default y
179 help
180 This option allows processes to use FPU hardware available with this
181 CPU. If this option is not enabled FPU registers will not be saved
182 and restored on context-switch.
183
184 If you plan on running programs which are compiled to use hard floats
185 say Y here.
186
187config METAG_DSP
188 bool "DSP Support"
189 help
190 This option allows processes to use DSP hardware available
191 with this CPU. If this option is not enabled DSP registers
192 will not be saved and restored on context-switch.
193
194 If you plan on running DSP programs say Y here.
195
196config METAG_PERFCOUNTER_IRQS
197 bool "PerfCounters interrupt support"
198 depends on METAG_META21
199 help
200 This option enables using interrupts to collect information from
201 Performance Counters. This option is supported in new META21
202 (starting from HTP265).
203
204 When disabled, Performance Counters information will be collected
205 based on Timer Interrupt.
206
00e6c923
JH
207config HW_PERF_EVENTS
208 def_bool METAG_PERFCOUNTER_IRQS && PERF_EVENTS
209
ae85ac71
JH
210config METAG_DA
211 bool "DA support"
212 help
213 Say Y if you plan to use a DA debug adapter with Linux. The presence
214 of the DA will be detected automatically at boot, so it is safe to say
215 Y to this option even when booting without a DA.
216
217 This enables support for services provided by DA JTAG debug adapters,
218 such as:
219 - communication over DA channels (such as the console driver).
220 - use of the DA filesystem.
221
5633004c
JH
222menu "Boot options"
223
224config METAG_BUILTIN_DTB
225 bool "Embed DTB in kernel image"
226 default y
227 help
228 Embeds a device tree binary in the kernel image.
229
230config METAG_BUILTIN_DTB_NAME
231 string "Built in DTB"
232 depends on METAG_BUILTIN_DTB
233 help
234 Set the name of the DTB to embed (leave blank to pick one
235 automatically based on kernel configuration).
236
237config CMDLINE_BOOL
238 bool "Default bootloader kernel arguments"
239
240config CMDLINE
241 string "Kernel command line"
242 depends on CMDLINE_BOOL
243 help
244 On some architectures there is currently no way for the boot loader
245 to pass arguments to the kernel. For these architectures, you should
246 supply some command-line options at build time by entering them
247 here.
248
249config CMDLINE_FORCE
250 bool "Force default kernel command string"
251 depends on CMDLINE_BOOL
252 help
253 Set this to have arguments from the default kernel command string
254 override those passed by the boot loader.
255
256endmenu
257
258source "kernel/Kconfig.preempt"
259
260source kernel/Kconfig.hz
261
262endmenu
263
264menu "Power management options"
265
266source kernel/power/Kconfig
267
268endmenu
269
270menu "Executable file formats"
271
272source "fs/Kconfig.binfmt"
273
274endmenu
275
276source "net/Kconfig"
277
278source "drivers/Kconfig"
279
280source "fs/Kconfig"
281
282source "arch/metag/Kconfig.debug"
283
284source "security/Kconfig"
285
286source "crypto/Kconfig"
287
288source "lib/Kconfig"