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