Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[pandora-kernel.git] / 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         default 6xx
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 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 6xx
25         bool "52xx/6xx/7xx/74xx/82xx/83xx/86xx"
26         select PPC_FPU
27
28 config PPC_85xx
29         bool "Freescale 85xx"
30         select E500
31         select FSL_SOC
32         select 85xx
33         select WANT_DEVICE_TREE
34
35 config PPC_8xx
36         bool "Freescale 8xx"
37         select FSL_SOC
38         select 8xx
39         select WANT_DEVICE_TREE
40         select PPC_LIB_RHEAP
41
42 config 40x
43         bool "AMCC 40x"
44         select PPC_DCR_NATIVE
45         select WANT_DEVICE_TREE
46
47 config 44x
48         bool "AMCC 44x"
49         select PPC_DCR_NATIVE
50         select WANT_DEVICE_TREE
51
52 config E200
53         bool "Freescale e200"
54
55 endchoice
56
57 config POWER4_ONLY
58         bool "Optimize for POWER4"
59         depends on PPC64
60         default n
61         ---help---
62           Cause the compiler to optimize for POWER4/POWER5/PPC970 processors.
63           The resulting binary will not work on POWER3 or RS64 processors
64           when compiled with binutils 2.15 or later.
65
66 config POWER3
67         bool
68         depends on PPC64
69         default y if !POWER4_ONLY
70
71 config POWER4
72         depends on PPC64
73         def_bool y
74
75 config TUNE_CELL
76         bool "Optimize for Cell Broadband Engine"
77         depends on PPC64
78         help
79           Cause the compiler to optimize for the PPE of the Cell Broadband
80           Engine. This will make the code run considerably faster on Cell
81           but somewhat slower on other machines. This option only changes
82           the scheduling of instructions, not the selection of instructions
83           itself, so the resulting kernel will keep running on all other
84           machines. When building a kernel that is supposed to run only
85           on Cell, you should also select the POWER4_ONLY option.
86
87 config 6xx
88         bool
89
90 # this is temp to handle compat with arch=ppc
91 config 8xx
92         bool
93
94 # this is temp to handle compat with arch=ppc
95 config 83xx
96         bool
97
98 # this is temp to handle compat with arch=ppc
99 config 85xx
100         bool
101
102 config E500
103         bool
104
105 config PPC_FPU
106         bool
107         default y if PPC64
108
109 config 4xx
110         bool
111         depends on 40x || 44x
112         default y
113
114 config BOOKE
115         bool
116         depends on E200 || E500 || 44x
117         default y
118
119 config FSL_BOOKE
120         bool
121         depends on E200 || E500
122         default y
123
124 config PTE_64BIT
125         bool
126         depends on 44x || E500
127         default y if 44x
128         default y if E500 && PHYS_64BIT
129
130 config PHYS_64BIT
131         bool 'Large physical address support' if E500
132         depends on 44x || E500
133         select RESOURCES_64BIT
134         default y if 44x
135         ---help---
136           This option enables kernel support for larger than 32-bit physical
137           addresses.  This features is not be available on all e500 cores.
138
139           If in doubt, say N here.
140
141 config ALTIVEC
142         bool "AltiVec Support"
143         depends on CLASSIC32 || POWER4
144         ---help---
145           This option enables kernel support for the Altivec extensions to the
146           PowerPC processor. The kernel currently supports saving and restoring
147           altivec registers, and turning on the 'altivec enable' bit so user
148           processes can execute altivec instructions.
149
150           This option is only usefully if you have a processor that supports
151           altivec (G4, otherwise known as 74xx series), but does not have
152           any affect on a non-altivec cpu (it does, however add code to the
153           kernel).
154
155           If in doubt, say Y here.
156
157 config SPE
158         bool "SPE Support"
159         depends on E200 || E500
160         default y
161         ---help---
162           This option enables kernel support for the Signal Processing
163           Extensions (SPE) to the PowerPC processor. The kernel currently
164           supports saving and restoring SPE registers, and turning on the
165           'spe enable' bit so user processes can execute SPE instructions.
166
167           This option is only useful if you have a processor that supports
168           SPE (e500, otherwise known as 85xx series), but does not have any
169           effect on a non-spe cpu (it does, however add code to the kernel).
170
171           If in doubt, say Y here.
172
173 config PPC_STD_MMU
174         bool
175         depends on 6xx || POWER3 || POWER4 || PPC64
176         default y
177
178 config PPC_STD_MMU_32
179         def_bool y
180         depends on PPC_STD_MMU && PPC32
181
182 config PPC_MM_SLICES
183         bool
184         default y if HUGETLB_PAGE
185         default n
186
187 config VIRT_CPU_ACCOUNTING
188         bool "Deterministic task and CPU time accounting"
189         depends on PPC64
190         default y
191         help
192           Select this option to enable more accurate task and CPU time
193           accounting.  This is done by reading a CPU counter on each
194           kernel entry and exit and on transitions within the kernel
195           between system, softirq and hardirq state, so there is a
196           small performance impact.  This also enables accounting of
197           stolen time on logically-partitioned systems running on
198           IBM POWER5-based machines.
199
200           If in doubt, say Y here.
201
202 config SMP
203         depends on PPC_STD_MMU
204         bool "Symmetric multi-processing support"
205         ---help---
206           This enables support for systems with more than one CPU. If you have
207           a system with only one CPU, say N. If you have a system with more
208           than one CPU, say Y.  Note that the kernel does not currently
209           support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
210           since they have inadequate hardware support for multiprocessor
211           operation.
212
213           If you say N here, the kernel will run on single and multiprocessor
214           machines, but will use only one CPU of a multiprocessor machine. If
215           you say Y here, the kernel will run on single-processor machines.
216           On a single-processor machine, the kernel will run faster if you say
217           N here.
218
219           If you don't know what to do here, say N.
220
221 config NR_CPUS
222         int "Maximum number of CPUs (2-128)"
223         range 2 128
224         depends on SMP
225         default "32" if PPC64
226         default "4"
227
228 config NOT_COHERENT_CACHE
229         bool
230         depends on 4xx || 8xx || E200
231         default y
232
233 config CHECK_CACHE_COHERENCY
234         bool
235
236 endmenu