Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / sparc / Kconfig
CommitLineData
1da177e4
LT
1# For a description of the syntax of this configuration file,
2# see Documentation/kbuild/kconfig-language.txt.
3#
4
5mainmenu "Linux/SPARC Kernel Configuration"
6
761b6026
BB
7config 64BIT
8 bool "64-bit kernel" if ARCH = "sparc"
9 default ARCH = "sparc64"
10 help
11 SPARC is a family of RISC microprocessors designed and marketed by
12 Sun Microsystems, incorporated. They are very widely found in Sun
13 workstations and clones.
14
15 Say yes to build a 64-bit kernel - formerly known as sparc64
16 Say no to build a 32-bit kernel - formerly known as sparc
17
35da3e39
SR
18config SPARC
19 bool
20 default y
21 select HAVE_IDE
22 select HAVE_OPROFILE
26b4c912 23 select HAVE_ARCH_KGDB if !SMP || SPARC64
35da3e39
SR
24 select HAVE_ARCH_TRACEHOOK
25 select ARCH_WANT_OPTIONAL_GPIOLIB
26 select RTC_CLASS
27 select RTC_DRV_M48T59
28
35da3e39 29config SPARC32
761b6026 30 def_bool !64BIT
35da3e39 31
26b4c912 32config SPARC64
761b6026 33 def_bool 64BIT
5bc05308 34 select ARCH_SUPPORTS_MSI
26b4c912
SR
35 select HAVE_FUNCTION_TRACER
36 select HAVE_KRETPROBES
37 select HAVE_KPROBES
38 select HAVE_LMB
39 select USE_GENERIC_SMP_HELPERS if SMP
40 select RTC_DRV_CMOS
41 select RTC_DRV_BQ4802
42 select RTC_DRV_SUN4V
43 select RTC_DRV_STARFIRE
44
5e538790
SR
45config ARCH_DEFCONFIG
46 string
47 default "arch/sparc/configs/sparc32_defconfig" if SPARC32
48 default "arch/sparc/configs/sparc64_defconfig" if SPARC64
49
fe6875ec
SR
50# CONFIG_BITS can be used at source level to get 32/64 bits
51config BITS
52 int
53 default 32 if SPARC32
54 default 64 if SPARC64
5e538790 55
26b4c912
SR
56config GENERIC_TIME
57 bool
58 default y if SPARC64
59
60config GENERIC_CMOS_UPDATE
61 bool
62 default y if SPARC64
63
64config GENERIC_CLOCKEVENTS
65 bool
66 default y if SPARC64
67
68config IOMMU_HELPER
69 bool
70 default y if SPARC64
71
72config QUICKLIST
73 bool
74 default y if SPARC64
75
76config STACKTRACE_SUPPORT
77 bool
78 default y if SPARC64
79
80config LOCKDEP_SUPPORT
81 bool
82 default y if SPARC64
83
6a5726dd
DM
84config HAVE_LATENCYTOP_SUPPORT
85 bool
86 default y if SPARC64
87
26b4c912
SR
88config AUDIT_ARCH
89 bool
7e7e93a2 90 default y
26b4c912
SR
91
92config HAVE_SETUP_PER_CPU_AREA
93 def_bool y if SPARC64
94
95config GENERIC_HARDIRQS_NO__DO_IRQ
96 bool
97 def_bool y if SPARC64
98
1da177e4
LT
99config MMU
100 bool
101 default y
102
1da177e4
LT
103config HIGHMEM
104 bool
26b4c912 105 default y if SPARC32
1da177e4 106
5ac6da66
CL
107config ZONE_DMA
108 bool
26b4c912 109 default y if SPARC32
5ac6da66 110
1da177e4
LT
111config GENERIC_ISA_DMA
112 bool
26b4c912 113 default y if SPARC32
1da177e4 114
15df0f33
DM
115config GENERIC_GPIO
116 bool
117 help
118 Generic GPIO API support
119
0785b9dc
SR
120config ARCH_NO_VIRT_TO_BUS
121 def_bool y
122
97e873e5
SR
123config OF
124 def_bool y
125
1da177e4
LT
126source "init/Kconfig"
127
dc52ddc0
MH
128source "kernel/Kconfig.freezer"
129
26b4c912 130menu "Processor type and features"
1da177e4 131
1da177e4
LT
132config SMP
133 bool "Symmetric multi-processing support (does not work on sun4/sun4c)"
1da177e4
LT
134 ---help---
135 This enables support for systems with more than one CPU. If you have
136 a system with only one CPU, say N. If you have a system with more
137 than one CPU, say Y.
138
139 If you say N here, the kernel will run on single and multiprocessor
140 machines, but will use only one CPU of a multiprocessor machine. If
141 you say Y here, the kernel will run on many, but not all,
142 singleprocessor machines. On a singleprocessor machine, the kernel
143 will run faster if you say N here.
144
145 People using multiprocessor machines who say Y here should also say
146 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
147 Management" code will be disabled if you say Y here.
148
03502faa
AB
149 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
150 available at <http://www.tldp.org/docs.html#howto>.
1da177e4
LT
151
152 If you don't know what to do here, say N.
153
154config NR_CPUS
26b4c912 155 int "Maximum number of CPUs"
1da177e4 156 depends on SMP
26b4c912
SR
157 range 2 32 if SPARC32
158 range 2 1024 if SPARC64
159 default 32 if SPARC32
160 default 64 if SPARC64
1da177e4 161
26b4c912 162source kernel/Kconfig.hz
1da177e4 163
1da177e4
LT
164config RWSEM_GENERIC_SPINLOCK
165 bool
26b4c912 166 default y if SPARC32
1da177e4
LT
167
168config RWSEM_XCHGADD_ALGORITHM
169 bool
26b4c912 170 default y if SPARC64
1da177e4 171
d59288b7
AM
172config GENERIC_FIND_NEXT_BIT
173 bool
174 default y
175
176config GENERIC_HWEIGHT
177 bool
26b4c912 178 default y if !ULTRA_HAS_POPULATION_COUNT
d59288b7 179
1da177e4
LT
180config GENERIC_CALIBRATE_DELAY
181 bool
182 default y
183
a08b6b79
AV
184config ARCH_MAY_HAVE_PC_FDC
185 bool
186 default y
187
5f81941c
MH
188config EMULATED_CMPXCHG
189 bool
26b4c912 190 default y if SPARC32
5f81941c
MH
191 help
192 Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
193 is emulated, and therefore it is not completely atomic.
194
d670bd4f
SR
195# Makefile helpers
196config SPARC32_SMP
197 bool
198 default y
199 depends on SPARC32 && SMP
200
201config SPARC64_SMP
202 bool
203 default y
204 depends on SPARC64 && SMP
205
26b4c912
SR
206choice
207 prompt "Kernel page size" if SPARC64
208 default SPARC64_PAGE_SIZE_8KB
209
210config SPARC64_PAGE_SIZE_8KB
211 bool "8KB"
212 help
213 This lets you select the page size of the kernel.
214
215 8KB and 64KB work quite well, since SPARC ELF sections
216 provide for up to 64KB alignment.
217
218 If you don't know what to do, choose 8KB.
219
220config SPARC64_PAGE_SIZE_64KB
221 bool "64KB"
222
223endchoice
224
225config SECCOMP
226 bool "Enable seccomp to safely compute untrusted bytecode"
227 depends on SPARC64 && PROC_FS
228 default y
229 help
230 This kernel feature is useful for number crunching applications
231 that may need to compute untrusted bytecode during their
232 execution. By using pipes or other transports made available to
233 the process as file descriptors supporting the read/write
234 syscalls, it's possible to isolate those applications in
235 their own address space using seccomp. Once seccomp is
236 enabled via /proc/<pid>/seccomp, it cannot be disabled
237 and the task is only allowed to execute a few safe syscalls
238 defined by each seccomp mode.
239
240 If unsure, say Y. Only embedded should say N here.
241
242config HOTPLUG_CPU
243 bool "Support for hot-pluggable CPUs"
244 depends on SPARC64 && SMP
245 select HOTPLUG
246 help
247 Say Y here to experiment with turning CPUs off and on. CPUs
248 can be controlled through /sys/devices/system/cpu/cpu#.
249 Say N if you want to disable CPU hotplug.
250
251config GENERIC_HARDIRQS
252 bool
253 default y if SPARC64
254
255source "kernel/time/Kconfig"
256
257if SPARC64
258source "drivers/cpufreq/Kconfig"
259
260config US3_FREQ
261 tristate "UltraSPARC-III CPU Frequency driver"
262 depends on CPU_FREQ
263 select CPU_FREQ_TABLE
264 help
265 This adds the CPUFreq driver for UltraSPARC-III processors.
266
267 For details, take a look at <file:Documentation/cpu-freq>.
268
269 If in doubt, say N.
270
271config US2E_FREQ
272 tristate "UltraSPARC-IIe CPU Frequency driver"
273 depends on CPU_FREQ
274 select CPU_FREQ_TABLE
275 help
276 This adds the CPUFreq driver for UltraSPARC-IIe processors.
277
278 For details, take a look at <file:Documentation/cpu-freq>.
279
280 If in doubt, say N.
281
282endif
283
284config US3_MC
285 tristate "UltraSPARC-III Memory Controller driver"
286 depends on SPARC64
287 default y
288 help
289 This adds a driver for the UltraSPARC-III memory controller.
290 Loading this driver allows exact mnemonic strings to be
291 printed in the event of a memory error, so that the faulty DIMM
292 on the motherboard can be matched to the error.
293
294 If in doubt, say Y, as this information can be very useful.
295
296# Global things across all Sun machines.
297config GENERIC_LOCKBREAK
1da177e4
LT
298 bool
299 default y
26b4c912
SR
300 depends on SPARC64 && SMP && PREEMPT
301
302choice
303 prompt "SPARC64 Huge TLB Page Size"
304 depends on SPARC64 && HUGETLB_PAGE
305 default HUGETLB_PAGE_SIZE_4MB
306
307config HUGETLB_PAGE_SIZE_4MB
308 bool "4MB"
309
310config HUGETLB_PAGE_SIZE_512K
311 bool "512K"
312
313config HUGETLB_PAGE_SIZE_64K
314 depends on !SPARC64_PAGE_SIZE_64KB
315 bool "64K"
316
317endchoice
318
319config NUMA
320 bool "NUMA support"
321 depends on SPARC64 && SMP
322
323config NODES_SHIFT
324 int
325 default "4"
326 depends on NEED_MULTIPLE_NODES
327
328# Some NUMA nodes have memory ranges that span
329# other nodes. Even though a pfn is valid and
330# between a node's start and end pfns, it may not
331# reside on that node. See memmap_init_zone()
332# for details.
333config NODES_SPAN_OTHER_NODES
334 def_bool y
335 depends on NEED_MULTIPLE_NODES
336
337config ARCH_POPULATES_NODE_MAP
338 def_bool y if SPARC64
339
340config ARCH_SELECT_MEMORY_MODEL
341 def_bool y if SPARC64
342
343config ARCH_SPARSEMEM_ENABLE
344 def_bool y if SPARC64
345 select SPARSEMEM_VMEMMAP_ENABLE
346
347config ARCH_SPARSEMEM_DEFAULT
348 def_bool y if SPARC64
349
350source "mm/Kconfig"
351
352config SCHED_SMT
353 bool "SMT (Hyperthreading) scheduler support"
354 depends on SPARC64 && SMP
355 default y
356 help
357 SMT scheduler support improves the CPU scheduler's decision making
358 when dealing with SPARC cpus at a cost of slightly increased overhead
359 in some places. If unsure say N here.
360
361config SCHED_MC
362 bool "Multi-core scheduler support"
363 depends on SPARC64 && SMP
364 default y
365 help
366 Multi-core scheduler support improves the CPU scheduler's decision
367 making when dealing with multi-core CPU chips at a cost of slightly
368 increased overhead in some places. If unsure say N here.
369
370if SPARC64
371source "kernel/Kconfig.preempt"
372endif
373
374config CMDLINE_BOOL
375 bool "Default bootloader kernel arguments"
376 depends on SPARC64
377
378config CMDLINE
379 string "Initial kernel command string"
380 depends on CMDLINE_BOOL
381 default "console=ttyS0,9600 root=/dev/sda1"
382 help
383 Say Y here if you want to be able to pass default arguments to
384 the kernel. This will be overridden by the bootloader, if you
385 use one (such as SILO). This is most useful if you want to boot
386 a kernel from TFTP, and want default options to be available
387 with having them passed on the command line.
388
389 NOTE: This option WILL override the PROM bootargs setting!
390
391config SUN_PM
392 bool
393 default y if SPARC32
1da177e4
LT
394 help
395 Enable power management and CPU standby features on supported
396 SPARC platforms.
397
4b27e0e1
SR
398config SPARC_LED
399 tristate "Sun4m LED driver"
26b4c912 400 depends on SPARC32
4b27e0e1
SR
401 help
402 This driver toggles the front-panel LED on sun4m systems
403 in a user-specifiable manner. Its state can be probed
404 by reading /proc/led and its blinking mode can be changed
405 via writes to /proc/led
406
26b4c912
SR
407config SERIAL_CONSOLE
408 bool
409 depends on SPARC32
410 default y
411 ---help---
412 If you say Y here, it will be possible to use a serial port as the
413 system console (the system console is the device which receives all
414 kernel messages and warnings and which allows logins in single user
415 mode). This could be useful if some terminal or printer is connected
416 to that serial port.
417
418 Even if you say Y here, the currently visible virtual console
419 (/dev/tty0) will still be used as the system console by default, but
420 you can alter that using a kernel command line option such as
421 "console=ttyS1". (Try "man bootparam" or see the documentation of
422 your boot loader (silo) about how to pass options to the kernel at
423 boot time.)
424
425 If you don't have a graphics card installed and you say Y here, the
426 kernel will automatically use the first serial line, /dev/ttyS0, as
427 system console.
428
429 If unsure, say N.
4b27e0e1
SR
430
431endmenu
432
433menu "Bus options (PCI etc.)"
4b27e0e1
SR
434config SBUS
435 bool
436 default y
437
438config SBUSCHAR
439 bool
440 default y
441
26b4c912
SR
442config SUN_LDOMS
443 bool "Sun Logical Domains support"
444 depends on SPARC64
445 help
446 Say Y here is you want to support virtual devices via
447 Logical Domains.
448
1da177e4
LT
449config PCI
450 bool "Support for PCI and PS/2 keyboard/mouse"
451 help
26b4c912
SR
452 Find out whether your system includes a PCI bus. PCI is the name of
453 a bus system, i.e. the way the CPU talks to the other stuff inside
454 your box. If you say Y here, the kernel will include drivers and
455 infrastructure code to support PCI bus devices.
456
1da177e4
LT
457 CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
458 CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
459 All of these platforms are extremely obscure, so say N if unsure.
460
26b4c912
SR
461config PCI_DOMAINS
462 def_bool PCI if SPARC64
463
36e23590
MW
464config PCI_SYSCALL
465 def_bool PCI
466
1da177e4
LT
467source "drivers/pci/Kconfig"
468
c6afec5e
DM
469source "drivers/pcmcia/Kconfig"
470
1da177e4
LT
471config SUN_OPENPROMFS
472 tristate "Openprom tree appears in /proc/openprom"
473 help
474 If you say Y, the OpenPROM device tree will be available as a
475 virtual file system, which you can mount to /proc/openprom by "mount
476 -t openpromfs none /proc/openprom".
477
478 To compile the /proc/openprom support as a module, choose M here: the
479 module will be called openpromfs.
480
481 Only choose N if you know in advance that you will not need to modify
482 OpenPROM settings on the running system.
483
d670bd4f
SR
484# Makefile helpers
485config SPARC32_PCI
486 bool
487 default y
488 depends on SPARC32 && PCI
489
490config SPARC64_PCI
491 bool
492 default y
493 depends on SPARC64 && PCI
30aaa808
WLII
494
495endmenu
496
12e271a8
SR
497menu "Executable file formats"
498
499source "fs/Kconfig.binfmt"
500
26b4c912
SR
501config COMPAT
502 bool
503 depends on SPARC64
504 default y
505 select COMPAT_BINFMT_ELF
506
507config SYSVIPC_COMPAT
508 bool
509 depends on COMPAT && SYSVIPC
510 default y
511
12e271a8
SR
512endmenu
513
d5950b43
SR
514source "net/Kconfig"
515
30aaa808 516source "drivers/Kconfig"
1da177e4 517
1da177e4 518source "drivers/sbus/char/Kconfig"
1da177e4 519
1da177e4
LT
520source "fs/Kconfig"
521
1da177e4
LT
522source "arch/sparc/Kconfig.debug"
523
524source "security/Kconfig"
525
526source "crypto/Kconfig"
527
528source "lib/Kconfig"