blob: de58c02633b4d164ce65d08ed8f905eec88e0b5e [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001# 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
Bastian Blank761b6022009-01-04 23:03:10 -08007config 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
Sam Ravnborg35da3e32008-11-15 13:40:12 -080018config SPARC
19 bool
20 default y
21 select HAVE_IDE
22 select HAVE_OPROFILE
Sam Ravnborg26b4c912008-11-16 20:01:17 -080023 select HAVE_ARCH_KGDB if !SMP || SPARC64
Sam Ravnborg35da3e32008-11-15 13:40:12 -080024 select HAVE_ARCH_TRACEHOOK
25 select ARCH_WANT_OPTIONAL_GPIOLIB
26 select RTC_CLASS
27 select RTC_DRV_M48T59
28
Sam Ravnborg35da3e32008-11-15 13:40:12 -080029config SPARC32
Bastian Blank761b6022009-01-04 23:03:10 -080030 def_bool !64BIT
Sam Ravnborg35da3e32008-11-15 13:40:12 -080031
Sam Ravnborg26b4c912008-11-16 20:01:17 -080032config SPARC64
Bastian Blank761b6022009-01-04 23:03:10 -080033 def_bool 64BIT
Sam Ravnborg5bc05302008-12-27 00:56:29 -080034 select ARCH_SUPPORTS_MSI
Sam Ravnborg26b4c912008-11-16 20:01:17 -080035 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
Sam Ravnborg5e538792008-12-02 23:17:12 -080045config ARCH_DEFCONFIG
46 string
47 default "arch/sparc/configs/sparc32_defconfig" if SPARC32
48 default "arch/sparc/configs/sparc64_defconfig" if SPARC64
49
Sam Ravnborgfe6875e2008-12-26 15:35:16 -080050# 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
Sam Ravnborg5e538792008-12-02 23:17:12 -080055
Sam Ravnborg26b4c912008-11-16 20:01:17 -080056config 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
David S. Miller6a5726d2008-11-28 01:19:41 -080084config HAVE_LATENCYTOP_SUPPORT
85 bool
86 default y if SPARC64
87
Sam Ravnborg26b4c912008-11-16 20:01:17 -080088config AUDIT_ARCH
89 bool
David S. Miller7e7e93a2008-12-05 22:18:40 -080090 default y
Sam Ravnborg26b4c912008-11-16 20:01:17 -080091
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
Linus Torvalds1da177e2005-04-16 15:20:36 -070099config MMU
100 bool
101 default y
102
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103config HIGHMEM
104 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800105 default y if SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106
Christoph Lameter5ac6da62007-02-10 01:43:14 -0800107config ZONE_DMA
108 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800109 default y if SPARC32
Christoph Lameter5ac6da62007-02-10 01:43:14 -0800110
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111config GENERIC_ISA_DMA
112 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800113 default y if SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700114
David S. Miller15df0f32008-08-20 23:03:24 -0700115config GENERIC_GPIO
116 bool
117 help
118 Generic GPIO API support
119
Stephen Rothwell0785b9d2007-07-18 00:09:30 -0700120config ARCH_NO_VIRT_TO_BUS
121 def_bool y
122
Stephen Rothwell97e873e2007-05-01 16:26:07 +1000123config OF
124 def_bool y
125
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126source "init/Kconfig"
127
Matt Helsleydc52ddc2008-10-18 20:27:21 -0700128source "kernel/Kconfig.freezer"
129
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800130menu "Processor type and features"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131
Linus Torvalds1da177e2005-04-16 15:20:36 -0700132config SMP
133 bool "Symmetric multi-processing support (does not work on sun4/sun4c)"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134 ---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
Adrian Bunk03502fa2008-02-03 15:50:21 +0200149 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
150 available at <http://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151
152 If you don't know what to do here, say N.
153
154config NR_CPUS
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800155 int "Maximum number of CPUs"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156 depends on SMP
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800157 range 2 32 if SPARC32
158 range 2 1024 if SPARC64
159 default 32 if SPARC32
160 default 64 if SPARC64
Linus Torvalds1da177e2005-04-16 15:20:36 -0700161
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800162source kernel/Kconfig.hz
163
164config RWSEM_GENERIC_SPINLOCK
165 bool
166 default y if SPARC32
167
168config RWSEM_XCHGADD_ALGORITHM
169 bool
170 default y if SPARC64
171
172config GENERIC_FIND_NEXT_BIT
173 bool
174 default y
175
176config GENERIC_HWEIGHT
177 bool
178 default y if !ULTRA_HAS_POPULATION_COUNT
179
180config GENERIC_CALIBRATE_DELAY
181 bool
182 default y
183
184config ARCH_MAY_HAVE_PC_FDC
185 bool
186 default y
187
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800188config EMULATED_CMPXCHG
189 bool
190 default y if SPARC32
191 help
192 Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
193 is emulated, and therefore it is not completely atomic.
194
Sam Ravnborgd670bd42008-12-03 03:08:37 -0800195# 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
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800206choice
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.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700295
296# Global things across all Sun machines.
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800297config GENERIC_LOCKBREAK
298 bool
299 default y
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
394 help
395 Enable power management and CPU standby features on supported
396 SPARC platforms.
397
398config SPARC_LED
399 tristate "Sun4m LED driver"
400 depends on SPARC32
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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700407config SERIAL_CONSOLE
408 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800409 depends on SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700410 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.
430
Sam Ravnborg4b27e0e2008-11-15 13:44:31 -0800431endmenu
432
433menu "Bus options (PCI etc.)"
Sam Ravnborg4b27e0e2008-11-15 13:44:31 -0800434config SBUS
435 bool
436 default y
437
438config SBUSCHAR
439 bool
440 default y
441
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800442config 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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700449config PCI
450 bool "Support for PCI and PS/2 keyboard/mouse"
451 help
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800452 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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700457 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
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800461config PCI_DOMAINS
462 def_bool PCI if SPARC64
463
Matthew Wilcox36e23592007-07-10 10:54:40 -0600464config PCI_SYSCALL
465 def_bool PCI
466
Linus Torvalds1da177e2005-04-16 15:20:36 -0700467source "drivers/pci/Kconfig"
468
David S. Millerc6afec52008-11-23 21:50:16 -0800469source "drivers/pcmcia/Kconfig"
470
Linus Torvalds1da177e2005-04-16 15:20:36 -0700471config 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
Sam Ravnborgd670bd42008-12-03 03:08:37 -0800484# 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
William Lee Irwin III30aaa802005-06-23 00:10:18 -0700494
495endmenu
496
Sam Ravnborg12e271a2008-11-15 13:43:49 -0800497menu "Executable file formats"
498
499source "fs/Kconfig.binfmt"
500
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800501config 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
Sam Ravnborg12e271a2008-11-15 13:43:49 -0800512endmenu
513
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700514source "net/Kconfig"
515
William Lee Irwin III30aaa802005-06-23 00:10:18 -0700516source "drivers/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700517
Linus Torvalds1da177e2005-04-16 15:20:36 -0700518source "drivers/sbus/char/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700519
Linus Torvalds1da177e2005-04-16 15:20:36 -0700520source "fs/Kconfig"
521
Linus Torvalds1da177e2005-04-16 15:20:36 -0700522source "arch/sparc/Kconfig.debug"
523
524source "security/Kconfig"
525
526source "crypto/Kconfig"
527
528source "lib/Kconfig"