blob: 61187bec75062e0f4656b0399cba3bc5bb492fed [file] [log] [blame]
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +10001config PPC64
2 bool "64-bit kernel"
3 default n
Paul Mackerras105988c2009-06-17 21:50:04 +10004 select PPC_HAVE_PMU_SUPPORT
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +10005 help
6 This option selects whether a 32-bit or a 64-bit kernel
7 will be built.
8
9menu "Processor support"
10choice
11 prompt "Processor Type"
12 depends on PPC32
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100013 help
Arnd Bergmannb9fd3052007-06-18 01:06:52 +020014 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
John Rigbye177edc2008-01-29 04:28:53 +110017 embedded 512x/52xx/82xx/83xx/86xx counterparts.
Arnd Bergmannb9fd3052007-06-18 01:06:52 +020018 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.
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100021
Arnd Bergmannb9fd3052007-06-18 01:06:52 +020022 If unsure, select 52xx/6xx/7xx/74xx/82xx/83xx/86xx.
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100023
Benjamin Herrenschmidt48c93112009-06-14 14:45:50 +000024config PPC_BOOK3S_32
John Rigbye177edc2008-01-29 04:28:53 +110025 bool "512x/52xx/6xx/7xx/74xx/82xx/83xx/86xx"
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100026 select PPC_FPU
27
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100028config PPC_85xx
29 bool "Freescale 85xx"
30 select E500
31 select FSL_SOC
Kumar Gala3a831562008-01-28 10:24:30 -060032 select MPC85xx
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100033
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100034config PPC_8xx
35 bool "Freescale 8xx"
36 select FSL_SOC
37 select 8xx
Sylvain Munaut1088a202007-09-16 20:53:25 +100038 select PPC_LIB_RHEAP
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100039
40config 40x
41 bool "AMCC 40x"
42 select PPC_DCR_NATIVE
Benjamin Herrenschmidt9dae8af2007-12-21 15:39:26 +110043 select PPC_UDBG_16550
Stefan Roese93173ce2008-03-28 01:43:31 +110044 select 4xx_SOC
John Rigbyb5005632008-06-26 11:07:56 -060045 select PPC_PCI_CHOICE
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100046
47config 44x
48 bool "AMCC 44x"
49 select PPC_DCR_NATIVE
Valentine Barshak1d5499b2007-10-18 22:55:13 +100050 select PPC_UDBG_16550
Stefan Roese93173ce2008-03-28 01:43:31 +110051 select 4xx_SOC
John Rigbyb5005632008-06-26 11:07:56 -060052 select PPC_PCI_CHOICE
Becky Bruce4ee70842008-09-24 11:01:24 -050053 select PHYS_64BIT
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100054
55config E200
56 bool "Freescale e200"
57
58endchoice
59
Benjamin Herrenschmidt48c93112009-06-14 14:45:50 +000060config PPC_BOOK3S_64
61 def_bool y
Benjamin Herrenschmidt5b7c3c92009-06-02 21:17:37 +000062 depends on PPC64
63 select PPC_FPU
64
Benjamin Herrenschmidt48c93112009-06-14 14:45:50 +000065config PPC_BOOK3S
66 def_bool y
67 depends on PPC_BOOK3S_32 || PPC_BOOK3S_64
Benjamin Herrenschmidt28794d32009-03-10 17:53:27 +000068
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100069config POWER4_ONLY
70 bool "Optimize for POWER4"
Benjamin Herrenschmidt28794d32009-03-10 17:53:27 +000071 depends on PPC64 && PPC_BOOK3S
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100072 default n
73 ---help---
74 Cause the compiler to optimize for POWER4/POWER5/PPC970 processors.
75 The resulting binary will not work on POWER3 or RS64 processors
76 when compiled with binutils 2.15 or later.
77
Benjamin Herrenschmidt5b7c3c92009-06-02 21:17:37 +000078config 6xx
79 def_bool y
80 depends on PPC32 && PPC_BOOK3S
Paul Mackerras73259272009-06-17 21:53:51 +100081 select PPC_HAVE_PMU_SUPPORT
Benjamin Herrenschmidt5b7c3c92009-06-02 21:17:37 +000082
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100083config POWER3
84 bool
Benjamin Herrenschmidt28794d32009-03-10 17:53:27 +000085 depends on PPC64 && PPC_BOOK3S
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100086 default y if !POWER4_ONLY
87
88config POWER4
Benjamin Herrenschmidt28794d32009-03-10 17:53:27 +000089 depends on PPC64 && PPC_BOOK3S
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +100090 def_bool y
91
Arnd Bergmann3164ccc2007-09-15 10:21:57 +100092config TUNE_CELL
93 bool "Optimize for Cell Broadband Engine"
Benjamin Herrenschmidt28794d32009-03-10 17:53:27 +000094 depends on PPC64 && PPC_BOOK3S
Arnd Bergmann3164ccc2007-09-15 10:21:57 +100095 help
96 Cause the compiler to optimize for the PPE of the Cell Broadband
97 Engine. This will make the code run considerably faster on Cell
98 but somewhat slower on other machines. This option only changes
99 the scheduling of instructions, not the selection of instructions
100 itself, so the resulting kernel will keep running on all other
101 machines. When building a kernel that is supposed to run only
102 on Cell, you should also select the POWER4_ONLY option.
103
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000104# this is temp to handle compat with arch=ppc
105config 8xx
106 bool
107
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000108config E500
Andy Fleming39aef682008-02-04 18:27:55 -0600109 select FSL_EMB_PERFMON
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000110 bool
111
Kumar Gala3dfa8772008-06-16 09:41:32 -0500112config PPC_E500MC
113 bool "e500mc Support"
114 select PPC_FPU
115 depends on E500
116
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000117config PPC_FPU
118 bool
119 default y if PPC64
120
121config 4xx
122 bool
123 depends on 40x || 44x
124 default y
125
126config BOOKE
127 bool
128 depends on E200 || E500 || 44x
129 default y
130
131config FSL_BOOKE
132 bool
133 depends on E200 || E500
134 default y
135
Andy Fleming39aef682008-02-04 18:27:55 -0600136config FSL_EMB_PERFMON
Andy Flemingad562c72008-03-07 17:59:03 -0600137 bool "Freescale Embedded Perfmon"
138 depends on E500 || PPC_83xx
139 help
140 This is the Performance Monitor support found on the e500 core
141 and some e300 cores (c3 and c4). Select this only if your
142 core supports the Embedded Performance Monitor APU
Andy Fleming39aef682008-02-04 18:27:55 -0600143
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000144config PTE_64BIT
145 bool
Becky Bruce4ee70842008-09-24 11:01:24 -0500146 depends on 44x || E500 || PPC_86xx
147 default y if PHYS_64BIT
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000148
149config PHYS_64BIT
Becky Bruce4ee70842008-09-24 11:01:24 -0500150 bool 'Large physical address support' if E500 || PPC_86xx
151 depends on (44x || E500 || PPC_86xx) && !PPC_83xx && !PPC_82xx
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000152 ---help---
153 This option enables kernel support for larger than 32-bit physical
Becky Bruce4ee70842008-09-24 11:01:24 -0500154 addresses. This feature may not be available on all cores.
155
156 If you have more than 3.5GB of RAM or so, you also need to enable
157 SWIOTLB under Kernel Options for this to work. The actual number
158 is platform-dependent.
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000159
160 If in doubt, say N here.
161
162config ALTIVEC
163 bool "AltiVec Support"
Benjamin Herrenschmidt28794d32009-03-10 17:53:27 +0000164 depends on 6xx || POWER4
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000165 ---help---
166 This option enables kernel support for the Altivec extensions to the
167 PowerPC processor. The kernel currently supports saving and restoring
168 altivec registers, and turning on the 'altivec enable' bit so user
169 processes can execute altivec instructions.
170
171 This option is only usefully if you have a processor that supports
172 altivec (G4, otherwise known as 74xx series), but does not have
173 any affect on a non-altivec cpu (it does, however add code to the
174 kernel).
175
176 If in doubt, say Y here.
177
Michael Neuling96d5b522008-06-25 14:07:18 +1000178config VSX
179 bool "VSX Support"
180 depends on POWER4 && ALTIVEC && PPC_FPU
181 ---help---
182
183 This option enables kernel support for the Vector Scaler extensions
184 to the PowerPC processor. The kernel currently supports saving and
185 restoring VSX registers, and turning on the 'VSX enable' bit so user
186 processes can execute VSX instructions.
187
188 This option is only useful if you have a processor that supports
189 VSX (P7 and above), but does not have any affect on a non-VSX
190 CPUs (it does, however add code to the kernel).
191
192 If in doubt, say Y here.
193
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000194config SPE
195 bool "SPE Support"
Kumar Gala3dfa8772008-06-16 09:41:32 -0500196 depends on E200 || (E500 && !PPC_E500MC)
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000197 default y
198 ---help---
199 This option enables kernel support for the Signal Processing
200 Extensions (SPE) to the PowerPC processor. The kernel currently
201 supports saving and restoring SPE registers, and turning on the
202 'spe enable' bit so user processes can execute SPE instructions.
203
204 This option is only useful if you have a processor that supports
205 SPE (e500, otherwise known as 85xx series), but does not have any
206 effect on a non-spe cpu (it does, however add code to the kernel).
207
208 If in doubt, say Y here.
209
210config PPC_STD_MMU
Benjamin Herrenschmidt5b7c3c92009-06-02 21:17:37 +0000211 def_bool y
212 depends on PPC_BOOK3S
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000213
214config PPC_STD_MMU_32
215 def_bool y
216 depends on PPC_STD_MMU && PPC32
217
Benjamin Herrenschmidt5e696612008-12-18 19:13:24 +0000218config PPC_STD_MMU_64
219 def_bool y
220 depends on PPC_STD_MMU && PPC64
221
222config PPC_MMU_NOHASH
223 def_bool y
224 depends on !PPC_STD_MMU
225
Kumar Gala70fe3af2009-02-12 16:12:40 -0600226config PPC_BOOK3E_MMU
227 def_bool y
228 depends on FSL_BOOKE
229
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000230config PPC_MM_SLICES
231 bool
Ilya Yanokca9153a2008-12-11 04:55:41 +0300232 default y if HUGETLB_PAGE || (PPC_STD_MMU_64 && PPC_64K_PAGES)
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000233 default n
234
235config VIRT_CPU_ACCOUNTING
236 bool "Deterministic task and CPU time accounting"
237 depends on PPC64
238 default y
239 help
240 Select this option to enable more accurate task and CPU time
241 accounting. This is done by reading a CPU counter on each
242 kernel entry and exit and on transitions within the kernel
243 between system, softirq and hardirq state, so there is a
244 small performance impact. This also enables accounting of
245 stolen time on logically-partitioned systems running on
246 IBM POWER5-based machines.
247
248 If in doubt, say Y here.
249
Paul Mackerras105988c2009-06-17 21:50:04 +1000250config PPC_HAVE_PMU_SUPPORT
251 bool
252
253config PPC_PERF_CTRS
254 def_bool y
255 depends on PERF_COUNTERS && PPC_HAVE_PMU_SUPPORT
256 help
257 This enables the powerpc-specific perf_counter back-end.
258
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000259config SMP
Kumar Gala00c4b952008-12-01 14:40:46 -0600260 depends on PPC_STD_MMU || FSL_BOOKE
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000261 bool "Symmetric multi-processing support"
262 ---help---
263 This enables support for systems with more than one CPU. If you have
264 a system with only one CPU, say N. If you have a system with more
265 than one CPU, say Y. Note that the kernel does not currently
266 support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
267 since they have inadequate hardware support for multiprocessor
268 operation.
269
270 If you say N here, the kernel will run on single and multiprocessor
271 machines, but will use only one CPU of a multiprocessor machine. If
272 you say Y here, the kernel will run on single-processor machines.
273 On a single-processor machine, the kernel will run faster if you say
274 N here.
275
276 If you don't know what to do here, say N.
277
278config NR_CPUS
Michael Neuling2d8ae632009-05-17 15:13:16 +0000279 int "Maximum number of CPUs (2-8192)"
280 range 2 8192
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000281 depends on SMP
282 default "32" if PPC64
283 default "4"
284
285config NOT_COHERENT_CACHE
286 bool
John Rigbye177edc2008-01-29 04:28:53 +1100287 depends on 4xx || 8xx || E200 || PPC_MPC512x
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000288 default y
289
Robert P. J. Dayf8eb77d2007-07-18 08:21:29 +1000290config CHECK_CACHE_COHERENCY
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +1000291 bool
292
293endmenu