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