]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - arch/powerpc/platforms/Kconfig.cputype
Merge branches 'pm-cpufreq' and 'pm-cpuidle'
[mirror_ubuntu-artful-kernel.git] / arch / powerpc / platforms / Kconfig.cputype
1 config PPC64
2 bool "64-bit kernel"
3 default n
4 select HAVE_VIRT_CPU_ACCOUNTING
5 help
6 This option selects whether a 32-bit or a 64-bit kernel
7 will be built.
8
9 menu "Processor support"
10 choice
11 prompt "Processor Type"
12 depends on PPC32
13 help
14 There are five families of 32 bit PowerPC chips supported.
15 The most common ones are the desktop and server CPUs (601, 603,
16 604, 740, 750, 74xx) CPUs from Freescale and IBM, with their
17 embedded 512x/52xx/82xx/83xx/86xx counterparts.
18 The other embeeded parts, namely 4xx, 8xx, e200 (55xx) and e500
19 (85xx) each form a family of their own that is not compatible
20 with the others.
21
22 If unsure, select 52xx/6xx/7xx/74xx/82xx/83xx/86xx.
23
24 config PPC_BOOK3S_32
25 bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx"
26 select PPC_FPU
27
28 config PPC_85xx
29 bool "Freescale 85xx"
30 select E500
31
32 config PPC_8xx
33 bool "Freescale 8xx"
34 select FSL_SOC
35 select 8xx
36 select PPC_LIB_RHEAP
37
38 config 40x
39 bool "AMCC 40x"
40 select PPC_DCR_NATIVE
41 select PPC_UDBG_16550
42 select 4xx_SOC
43 select PPC_PCI_CHOICE
44
45 config 44x
46 bool "AMCC 44x, 46x or 47x"
47 select PPC_DCR_NATIVE
48 select PPC_UDBG_16550
49 select 4xx_SOC
50 select PPC_PCI_CHOICE
51 select PHYS_64BIT
52
53 config E200
54 bool "Freescale e200"
55
56 endchoice
57
58 choice
59 prompt "Processor Type"
60 depends on PPC64
61 help
62 There are two families of 64 bit PowerPC chips supported.
63 The most common ones are the desktop and server CPUs
64 (POWER3, RS64, POWER4, POWER5, POWER5+, POWER6, ...)
65
66 The other are the "embedded" processors compliant with the
67 "Book 3E" variant of the architecture
68
69 config PPC_BOOK3S_64
70 bool "Server processors"
71 select PPC_FPU
72 select PPC_HAVE_PMU_SUPPORT
73 select SYS_SUPPORTS_HUGETLBFS
74 select HAVE_ARCH_TRANSPARENT_HUGEPAGE if PPC_64K_PAGES
75
76 config PPC_BOOK3E_64
77 bool "Embedded processors"
78 select PPC_FPU # Make it a choice ?
79 select PPC_SMP_MUXED_IPI
80 select PPC_DOORBELL
81
82 endchoice
83
84 choice
85 prompt "CPU selection"
86 depends on PPC64
87 default GENERIC_CPU
88 help
89 This will create a kernel which is optimised for a particular CPU.
90 The resulting kernel may not run on other CPUs, so use this with care.
91
92 If unsure, select Generic.
93
94 config GENERIC_CPU
95 bool "Generic"
96 depends on !CPU_LITTLE_ENDIAN
97
98 config CELL_CPU
99 bool "Cell Broadband Engine"
100 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
101
102 config POWER4_CPU
103 bool "POWER4"
104 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
105
106 config POWER5_CPU
107 bool "POWER5"
108 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
109
110 config POWER6_CPU
111 bool "POWER6"
112 depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
113
114 config POWER7_CPU
115 bool "POWER7"
116 depends on PPC_BOOK3S_64
117
118 config E5500_CPU
119 bool "Freescale e5500"
120 depends on E500
121
122 config E6500_CPU
123 bool "Freescale e6500"
124 depends on E500
125
126 endchoice
127
128 config PPC_BOOK3S
129 def_bool y
130 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
131
132 config PPC_BOOK3E
133 def_bool y
134 depends on PPC_BOOK3E_64
135
136 config 6xx
137 def_bool y
138 depends on PPC32 && PPC_BOOK3S
139 select PPC_HAVE_PMU_SUPPORT
140
141 config POWER3
142 depends on PPC64 && PPC_BOOK3S
143 def_bool y
144
145 config POWER4
146 depends on PPC64 && PPC_BOOK3S
147 def_bool y
148
149 config PPC_A2
150 bool
151 depends on PPC_BOOK3E_64
152
153 config TUNE_CELL
154 bool "Optimize for Cell Broadband Engine"
155 depends on PPC64 && PPC_BOOK3S
156 help
157 Cause the compiler to optimize for the PPE of the Cell Broadband
158 Engine. This will make the code run considerably faster on Cell
159 but somewhat slower on other machines. This option only changes
160 the scheduling of instructions, not the selection of instructions
161 itself, so the resulting kernel will keep running on all other
162 machines.
163
164 # this is temp to handle compat with arch=ppc
165 config 8xx
166 bool
167
168 config E500
169 select FSL_EMB_PERFMON
170 select PPC_FSL_BOOK3E
171 bool
172
173 config PPC_E500MC
174 bool "e500mc Support"
175 select PPC_FPU
176 select COMMON_CLK
177 depends on E500
178 help
179 This must be enabled for running on e500mc (and derivatives
180 such as e5500/e6500), and must be disabled for running on
181 e500v1 or e500v2.
182
183 config PPC_FPU
184 bool
185 default y if PPC64
186
187 config FSL_EMB_PERFMON
188 bool "Freescale Embedded Perfmon"
189 depends on E500 || PPC_83xx
190 help
191 This is the Performance Monitor support found on the e500 core
192 and some e300 cores (c3 and c4). Select this only if your
193 core supports the Embedded Performance Monitor APU
194
195 config FSL_EMB_PERF_EVENT
196 bool
197 depends on FSL_EMB_PERFMON && PERF_EVENTS && !PPC_PERF_CTRS
198 default y
199
200 config FSL_EMB_PERF_EVENT_E500
201 bool
202 depends on FSL_EMB_PERF_EVENT && E500
203 default y
204
205 config 4xx
206 bool
207 depends on 40x || 44x
208 default y
209
210 config BOOKE
211 bool
212 depends on E200 || E500 || 44x || PPC_BOOK3E
213 default y
214
215 config FSL_BOOKE
216 bool
217 depends on (E200 || E500) && PPC32
218 default y
219
220 # this is for common code between PPC32 & PPC64 FSL BOOKE
221 config PPC_FSL_BOOK3E
222 bool
223 select FSL_EMB_PERFMON
224 select PPC_SMP_MUXED_IPI
225 select SYS_SUPPORTS_HUGETLBFS if PHYS_64BIT || PPC64
226 select PPC_DOORBELL
227 default y if FSL_BOOKE
228
229 config PTE_64BIT
230 bool
231 depends on 44x || E500 || PPC_86xx
232 default y if PHYS_64BIT
233
234 config PHYS_64BIT
235 bool 'Large physical address support' if E500 || PPC_86xx
236 depends on (44x || E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
237 ---help---
238 This option enables kernel support for larger than 32-bit physical
239 addresses. This feature may not be available on all cores.
240
241 If you have more than 3.5GB of RAM or so, you also need to enable
242 SWIOTLB under Kernel Options for this to work. The actual number
243 is platform-dependent.
244
245 If in doubt, say N here.
246
247 config ALTIVEC
248 bool "AltiVec Support"
249 depends on 6xx || POWER4 || (PPC_E500MC && PPC64)
250 ---help---
251 This option enables kernel support for the Altivec extensions to the
252 PowerPC processor. The kernel currently supports saving and restoring
253 altivec registers, and turning on the 'altivec enable' bit so user
254 processes can execute altivec instructions.
255
256 This option is only usefully if you have a processor that supports
257 altivec (G4, otherwise known as 74xx series), but does not have
258 any affect on a non-altivec cpu (it does, however add code to the
259 kernel).
260
261 If in doubt, say Y here.
262
263 config VSX
264 bool "VSX Support"
265 depends on POWER4 && ALTIVEC && PPC_FPU
266 ---help---
267
268 This option enables kernel support for the Vector Scaler extensions
269 to the PowerPC processor. The kernel currently supports saving and
270 restoring VSX registers, and turning on the 'VSX enable' bit so user
271 processes can execute VSX instructions.
272
273 This option is only useful if you have a processor that supports
274 VSX (P7 and above), but does not have any affect on a non-VSX
275 CPUs (it does, however add code to the kernel).
276
277 If in doubt, say Y here.
278
279 config PPC_ICSWX
280 bool "Support for PowerPC icswx coprocessor instruction"
281 depends on POWER4 || PPC_A2
282 default n
283 ---help---
284
285 This option enables kernel support for the PowerPC Initiate
286 Coprocessor Store Word (icswx) coprocessor instruction on POWER7
287 or newer processors.
288
289 This option is only useful if you have a processor that supports
290 the icswx coprocessor instruction. It does not have any effect
291 on processors without the icswx coprocessor instruction.
292
293 This option slightly increases kernel memory usage.
294
295 If in doubt, say N here.
296
297 config PPC_ICSWX_PID
298 bool "icswx requires direct PID management"
299 depends on PPC_ICSWX && POWER4
300 default y
301 ---help---
302 The PID register in server is used explicitly for ICSWX. In
303 embedded systems PID management is done by the system.
304
305 config PPC_ICSWX_USE_SIGILL
306 bool "Should a bad CT cause a SIGILL?"
307 depends on PPC_ICSWX
308 default n
309 ---help---
310 Should a bad CT used for "non-record form ICSWX" cause an
311 illegal instruction signal or should it be silent as
312 architected.
313
314 If in doubt, say N here.
315
316 config SPE
317 bool "SPE Support"
318 depends on E200 || (E500 && !PPC_E500MC)
319 default y
320 ---help---
321 This option enables kernel support for the Signal Processing
322 Extensions (SPE) to the PowerPC processor. The kernel currently
323 supports saving and restoring SPE registers, and turning on the
324 'spe enable' bit so user processes can execute SPE instructions.
325
326 This option is only useful if you have a processor that supports
327 SPE (e500, otherwise known as 85xx series), but does not have any
328 effect on a non-spe cpu (it does, however add code to the kernel).
329
330 If in doubt, say Y here.
331
332 config PPC_STD_MMU
333 def_bool y
334 depends on PPC_BOOK3S
335
336 config PPC_STD_MMU_32
337 def_bool y
338 depends on PPC_STD_MMU && PPC32
339
340 config PPC_STD_MMU_64
341 def_bool y
342 depends on PPC_STD_MMU && PPC64
343
344 config PPC_MMU_NOHASH
345 def_bool y
346 depends on !PPC_STD_MMU
347
348 config PPC_BOOK3E_MMU
349 def_bool y
350 depends on FSL_BOOKE || PPC_BOOK3E
351
352 config PPC_MM_SLICES
353 bool
354 default y if (!PPC_FSL_BOOK3E && PPC64 && HUGETLB_PAGE) || (PPC_STD_MMU_64 && PPC_64K_PAGES)
355 default n
356
357 config PPC_HAVE_PMU_SUPPORT
358 bool
359
360 config PPC_PERF_CTRS
361 def_bool y
362 depends on PERF_EVENTS && PPC_HAVE_PMU_SUPPORT
363 help
364 This enables the powerpc-specific perf_event back-end.
365
366 config SMP
367 depends on PPC_BOOK3S || PPC_BOOK3E || FSL_BOOKE || PPC_47x
368 bool "Symmetric multi-processing support"
369 ---help---
370 This enables support for systems with more than one CPU. If you have
371 a system with only one CPU, say N. If you have a system with more
372 than one CPU, say Y. Note that the kernel does not currently
373 support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
374 since they have inadequate hardware support for multiprocessor
375 operation.
376
377 If you say N here, the kernel will run on single and multiprocessor
378 machines, but will use only one CPU of a multiprocessor machine. If
379 you say Y here, the kernel will run on single-processor machines.
380 On a single-processor machine, the kernel will run faster if you say
381 N here.
382
383 If you don't know what to do here, say N.
384
385 config NR_CPUS
386 int "Maximum number of CPUs (2-8192)"
387 range 2 8192
388 depends on SMP
389 default "32" if PPC64
390 default "4"
391
392 config NOT_COHERENT_CACHE
393 bool
394 depends on 4xx || 8xx || E200 || PPC_MPC512x || GAMECUBE_COMMON
395 default n if PPC_47x
396 default y
397
398 config CHECK_CACHE_COHERENCY
399 bool
400
401 config PPC_DOORBELL
402 bool
403 default n
404
405 endmenu
406
407 choice
408 prompt "Endianness selection"
409 default CPU_BIG_ENDIAN
410 help
411 This option selects whether a big endian or little endian kernel will
412 be built.
413
414 config CPU_BIG_ENDIAN
415 bool "Build big endian kernel"
416 help
417 Build a big endian kernel.
418
419 If unsure, select this option.
420
421 config CPU_LITTLE_ENDIAN
422 bool "Build little endian kernel"
423 help
424 Build a little endian kernel.
425
426 Note that if cross compiling a little endian kernel,
427 CROSS_COMPILE must point to a toolchain capable of targeting
428 little endian powerpc.
429
430 endchoice