blob: d02e8ac7aa105f07d2996b7f0dc84f8fe3a5359c [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
Stephen Rothwell7b14c642010-06-29 12:44:50 +100021 select OF
Sam Ravnborg35da3e32008-11-15 13:40:12 -080022 select HAVE_IDE
23 select HAVE_OPROFILE
Sam Ravnborg26b4c912008-11-16 20:01:17 -080024 select HAVE_ARCH_KGDB if !SMP || SPARC64
Sam Ravnborg35da3e32008-11-15 13:40:12 -080025 select HAVE_ARCH_TRACEHOOK
26 select ARCH_WANT_OPTIONAL_GPIOLIB
27 select RTC_CLASS
28 select RTC_DRV_M48T59
Ingo Molnarcdd6c482009-09-21 12:02:48 +020029 select HAVE_PERF_EVENTS
Peter Zijlstra906010b2009-09-21 16:08:49 +020030 select PERF_USE_VMALLOC
FUJITA Tomonori02f7a182009-08-10 11:53:13 +090031 select HAVE_DMA_ATTRS
FUJITA Tomonori451d7402009-08-10 11:53:17 +090032 select HAVE_DMA_API_DEBUG
Sam Ravnborg35da3e32008-11-15 13:40:12 -080033
Sam Ravnborg35da3e32008-11-15 13:40:12 -080034config SPARC32
Bastian Blank761b6022009-01-04 23:03:10 -080035 def_bool !64BIT
Sam Ravnborg35da3e32008-11-15 13:40:12 -080036
Sam Ravnborg26b4c912008-11-16 20:01:17 -080037config SPARC64
Bastian Blank761b6022009-01-04 23:03:10 -080038 def_bool 64BIT
Sam Ravnborg5bc05302008-12-27 00:56:29 -080039 select ARCH_SUPPORTS_MSI
Sam Ravnborg26b4c912008-11-16 20:01:17 -080040 select HAVE_FUNCTION_TRACER
David S. Miller9960e9e2010-04-07 04:41:33 -070041 select HAVE_FUNCTION_GRAPH_TRACER
42 select HAVE_FUNCTION_GRAPH_FP_TEST
David S. Miller63b75492010-04-12 22:35:24 -070043 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
Sam Ravnborg26b4c912008-11-16 20:01:17 -080044 select HAVE_KRETPROBES
45 select HAVE_KPROBES
46 select HAVE_LMB
Christian Borntraeger67605d62009-01-19 20:21:49 -080047 select HAVE_SYSCALL_WRAPPERS
David S. Miller9be12f92009-06-13 01:03:24 -070048 select HAVE_DYNAMIC_FTRACE
49 select HAVE_FTRACE_MCOUNT_RECORD
David S. Millerc658ad12009-12-11 00:44:47 -080050 select HAVE_SYSCALL_TRACEPOINTS
Sam Ravnborg26b4c912008-11-16 20:01:17 -080051 select USE_GENERIC_SMP_HELPERS if SMP
52 select RTC_DRV_CMOS
53 select RTC_DRV_BQ4802
54 select RTC_DRV_SUN4V
55 select RTC_DRV_STARFIRE
Ingo Molnarcdd6c482009-09-21 12:02:48 +020056 select HAVE_PERF_EVENTS
Peter Zijlstra906010b2009-09-21 16:08:49 +020057 select PERF_USE_VMALLOC
Sam Ravnborg26b4c912008-11-16 20:01:17 -080058
Sam Ravnborg5e538792008-12-02 23:17:12 -080059config ARCH_DEFCONFIG
60 string
61 default "arch/sparc/configs/sparc32_defconfig" if SPARC32
62 default "arch/sparc/configs/sparc64_defconfig" if SPARC64
63
Sam Ravnborgfe6875e2008-12-26 15:35:16 -080064# CONFIG_BITS can be used at source level to get 32/64 bits
65config BITS
66 int
67 default 32 if SPARC32
68 default 64 if SPARC64
Sam Ravnborg5e538792008-12-02 23:17:12 -080069
Sam Ravnborg26b4c912008-11-16 20:01:17 -080070config GENERIC_TIME
John Stultz0299b132010-01-15 01:34:28 -080071 def_bool y
72
73config ARCH_USES_GETTIMEOFFSET
Sam Ravnborg26b4c912008-11-16 20:01:17 -080074 bool
John Stultz0299b132010-01-15 01:34:28 -080075 default y if SPARC32
Sam Ravnborg26b4c912008-11-16 20:01:17 -080076
77config GENERIC_CMOS_UPDATE
78 bool
John Stultzf5c9c9b2010-03-03 19:57:27 -080079 default y
Sam Ravnborg26b4c912008-11-16 20:01:17 -080080
81config GENERIC_CLOCKEVENTS
82 bool
83 default y if SPARC64
84
85config IOMMU_HELPER
86 bool
87 default y if SPARC64
88
89config QUICKLIST
90 bool
91 default y if SPARC64
92
93config STACKTRACE_SUPPORT
94 bool
95 default y if SPARC64
96
97config LOCKDEP_SUPPORT
98 bool
99 default y if SPARC64
100
David S. Miller6a5726d2008-11-28 01:19:41 -0800101config HAVE_LATENCYTOP_SUPPORT
102 bool
103 default y if SPARC64
104
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800105config AUDIT_ARCH
106 bool
David S. Miller7e7e93a2008-12-05 22:18:40 -0800107 default y
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800108
109config HAVE_SETUP_PER_CPU_AREA
110 def_bool y if SPARC64
111
Tejun Heobcb21072009-08-14 15:00:53 +0900112config NEED_PER_CPU_EMBED_FIRST_CHUNK
David S. Miller4fd78a52009-04-08 20:32:02 -0700113 def_bool y if SPARC64
114
Tejun Heoa70c6912009-09-24 18:18:55 +0900115config NEED_PER_CPU_PAGE_FIRST_CHUNK
116 def_bool y if SPARC64
117
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800118config GENERIC_HARDIRQS_NO__DO_IRQ
119 bool
120 def_bool y if SPARC64
121
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122config MMU
123 bool
124 default y
125
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126config HIGHMEM
127 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800128 default y if SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700129
Christoph Lameter5ac6da62007-02-10 01:43:14 -0800130config ZONE_DMA
131 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800132 default y if SPARC32
Christoph Lameter5ac6da62007-02-10 01:43:14 -0800133
FUJITA Tomonorid15b51b2010-03-10 15:23:28 -0800134config NEED_DMA_MAP_STATE
135 def_bool y
136
FUJITA Tomonori18e98302010-05-26 14:44:32 -0700137config NEED_SG_DMA_LENGTH
138 def_bool y
139
Linus Torvalds1da177e2005-04-16 15:20:36 -0700140config GENERIC_ISA_DMA
141 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800142 default y if SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143
David S. Miller15df0f32008-08-20 23:03:24 -0700144config GENERIC_GPIO
145 bool
146 help
147 Generic GPIO API support
148
Stephen Rothwell0785b9d2007-07-18 00:09:30 -0700149config ARCH_NO_VIRT_TO_BUS
150 def_bool y
151
Stephen Rothwell97e873e2007-05-01 16:26:07 +1000152config OF
Stephen Rothwell7b14c642010-06-29 12:44:50 +1000153 bool
Stephen Rothwell97e873e2007-05-01 16:26:07 +1000154
Akinobu Mita6a11f752009-03-31 15:23:17 -0700155config ARCH_SUPPORTS_DEBUG_PAGEALLOC
156 def_bool y if SPARC64
157
Linus Torvalds1da177e2005-04-16 15:20:36 -0700158source "init/Kconfig"
159
Matt Helsleydc52ddc2008-10-18 20:27:21 -0700160source "kernel/Kconfig.freezer"
161
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800162menu "Processor type and features"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700163
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164config SMP
165 bool "Symmetric multi-processing support (does not work on sun4/sun4c)"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166 ---help---
167 This enables support for systems with more than one CPU. If you have
168 a system with only one CPU, say N. If you have a system with more
169 than one CPU, say Y.
170
171 If you say N here, the kernel will run on single and multiprocessor
172 machines, but will use only one CPU of a multiprocessor machine. If
173 you say Y here, the kernel will run on many, but not all,
174 singleprocessor machines. On a singleprocessor machine, the kernel
175 will run faster if you say N here.
176
177 People using multiprocessor machines who say Y here should also say
178 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
179 Management" code will be disabled if you say Y here.
180
Adrian Bunk03502fa2008-02-03 15:50:21 +0200181 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
182 available at <http://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700183
184 If you don't know what to do here, say N.
185
186config NR_CPUS
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800187 int "Maximum number of CPUs"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188 depends on SMP
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800189 range 2 32 if SPARC32
190 range 2 1024 if SPARC64
191 default 32 if SPARC32
192 default 64 if SPARC64
Linus Torvalds1da177e2005-04-16 15:20:36 -0700193
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800194source kernel/Kconfig.hz
195
196config RWSEM_GENERIC_SPINLOCK
197 bool
198 default y if SPARC32
199
200config RWSEM_XCHGADD_ALGORITHM
201 bool
202 default y if SPARC64
203
204config GENERIC_FIND_NEXT_BIT
205 bool
206 default y
207
208config GENERIC_HWEIGHT
209 bool
210 default y if !ULTRA_HAS_POPULATION_COUNT
211
212config GENERIC_CALIBRATE_DELAY
213 bool
214 default y
215
216config ARCH_MAY_HAVE_PC_FDC
217 bool
218 default y
219
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800220config EMULATED_CMPXCHG
221 bool
222 default y if SPARC32
223 help
224 Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
225 is emulated, and therefore it is not completely atomic.
226
Sam Ravnborgd670bd42008-12-03 03:08:37 -0800227# Makefile helpers
228config SPARC32_SMP
229 bool
230 default y
231 depends on SPARC32 && SMP
232
233config SPARC64_SMP
234 bool
235 default y
236 depends on SPARC64 && SMP
237
David S. Millerc57ec522009-11-27 17:33:43 -0800238config EARLYFB
239 bool "Support for early boot text console"
240 default y
241 depends on SPARC64
242 help
243 Say Y here to enable a faster early framebuffer boot console.
244
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800245choice
246 prompt "Kernel page size" if SPARC64
247 default SPARC64_PAGE_SIZE_8KB
248
249config SPARC64_PAGE_SIZE_8KB
250 bool "8KB"
251 help
252 This lets you select the page size of the kernel.
253
254 8KB and 64KB work quite well, since SPARC ELF sections
255 provide for up to 64KB alignment.
256
257 If you don't know what to do, choose 8KB.
258
259config SPARC64_PAGE_SIZE_64KB
260 bool "64KB"
261
262endchoice
263
264config SECCOMP
265 bool "Enable seccomp to safely compute untrusted bytecode"
266 depends on SPARC64 && PROC_FS
267 default y
268 help
269 This kernel feature is useful for number crunching applications
270 that may need to compute untrusted bytecode during their
271 execution. By using pipes or other transports made available to
272 the process as file descriptors supporting the read/write
273 syscalls, it's possible to isolate those applications in
274 their own address space using seccomp. Once seccomp is
275 enabled via /proc/<pid>/seccomp, it cannot be disabled
276 and the task is only allowed to execute a few safe syscalls
277 defined by each seccomp mode.
278
279 If unsure, say Y. Only embedded should say N here.
280
281config HOTPLUG_CPU
282 bool "Support for hot-pluggable CPUs"
283 depends on SPARC64 && SMP
284 select HOTPLUG
285 help
286 Say Y here to experiment with turning CPUs off and on. CPUs
287 can be controlled through /sys/devices/system/cpu/cpu#.
288 Say N if you want to disable CPU hotplug.
289
290config GENERIC_HARDIRQS
291 bool
292 default y if SPARC64
293
294source "kernel/time/Kconfig"
295
296if SPARC64
297source "drivers/cpufreq/Kconfig"
298
299config US3_FREQ
300 tristate "UltraSPARC-III CPU Frequency driver"
301 depends on CPU_FREQ
302 select CPU_FREQ_TABLE
303 help
304 This adds the CPUFreq driver for UltraSPARC-III processors.
305
306 For details, take a look at <file:Documentation/cpu-freq>.
307
308 If in doubt, say N.
309
310config US2E_FREQ
311 tristate "UltraSPARC-IIe CPU Frequency driver"
312 depends on CPU_FREQ
313 select CPU_FREQ_TABLE
314 help
315 This adds the CPUFreq driver for UltraSPARC-IIe processors.
316
317 For details, take a look at <file:Documentation/cpu-freq>.
318
319 If in doubt, say N.
320
321endif
322
323config US3_MC
324 tristate "UltraSPARC-III Memory Controller driver"
325 depends on SPARC64
326 default y
327 help
328 This adds a driver for the UltraSPARC-III memory controller.
329 Loading this driver allows exact mnemonic strings to be
330 printed in the event of a memory error, so that the faulty DIMM
331 on the motherboard can be matched to the error.
332
333 If in doubt, say Y, as this information can be very useful.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700334
335# Global things across all Sun machines.
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800336config GENERIC_LOCKBREAK
337 bool
338 default y
339 depends on SPARC64 && SMP && PREEMPT
340
341choice
342 prompt "SPARC64 Huge TLB Page Size"
343 depends on SPARC64 && HUGETLB_PAGE
344 default HUGETLB_PAGE_SIZE_4MB
345
346config HUGETLB_PAGE_SIZE_4MB
347 bool "4MB"
348
349config HUGETLB_PAGE_SIZE_512K
350 bool "512K"
351
352config HUGETLB_PAGE_SIZE_64K
353 depends on !SPARC64_PAGE_SIZE_64KB
354 bool "64K"
355
356endchoice
357
358config NUMA
359 bool "NUMA support"
360 depends on SPARC64 && SMP
361
362config NODES_SHIFT
363 int
364 default "4"
365 depends on NEED_MULTIPLE_NODES
366
367# Some NUMA nodes have memory ranges that span
368# other nodes. Even though a pfn is valid and
369# between a node's start and end pfns, it may not
370# reside on that node. See memmap_init_zone()
371# for details.
372config NODES_SPAN_OTHER_NODES
373 def_bool y
374 depends on NEED_MULTIPLE_NODES
375
376config ARCH_POPULATES_NODE_MAP
377 def_bool y if SPARC64
378
379config ARCH_SELECT_MEMORY_MODEL
380 def_bool y if SPARC64
381
382config ARCH_SPARSEMEM_ENABLE
383 def_bool y if SPARC64
384 select SPARSEMEM_VMEMMAP_ENABLE
385
386config ARCH_SPARSEMEM_DEFAULT
387 def_bool y if SPARC64
388
389source "mm/Kconfig"
390
391config SCHED_SMT
392 bool "SMT (Hyperthreading) scheduler support"
393 depends on SPARC64 && SMP
394 default y
395 help
396 SMT scheduler support improves the CPU scheduler's decision making
397 when dealing with SPARC cpus at a cost of slightly increased overhead
398 in some places. If unsure say N here.
399
400config SCHED_MC
401 bool "Multi-core scheduler support"
402 depends on SPARC64 && SMP
403 default y
404 help
405 Multi-core scheduler support improves the CPU scheduler's decision
406 making when dealing with multi-core CPU chips at a cost of slightly
407 increased overhead in some places. If unsure say N here.
408
409if SPARC64
410source "kernel/Kconfig.preempt"
411endif
412
413config CMDLINE_BOOL
414 bool "Default bootloader kernel arguments"
415 depends on SPARC64
416
417config CMDLINE
418 string "Initial kernel command string"
419 depends on CMDLINE_BOOL
420 default "console=ttyS0,9600 root=/dev/sda1"
421 help
422 Say Y here if you want to be able to pass default arguments to
423 the kernel. This will be overridden by the bootloader, if you
424 use one (such as SILO). This is most useful if you want to boot
425 a kernel from TFTP, and want default options to be available
426 with having them passed on the command line.
427
428 NOTE: This option WILL override the PROM bootargs setting!
429
430config SUN_PM
431 bool
432 default y if SPARC32
433 help
434 Enable power management and CPU standby features on supported
435 SPARC platforms.
436
437config SPARC_LED
438 tristate "Sun4m LED driver"
439 depends on SPARC32
440 help
441 This driver toggles the front-panel LED on sun4m systems
442 in a user-specifiable manner. Its state can be probed
443 by reading /proc/led and its blinking mode can be changed
444 via writes to /proc/led
445
Linus Torvalds1da177e2005-04-16 15:20:36 -0700446config SERIAL_CONSOLE
447 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800448 depends on SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700449 default y
450 ---help---
451 If you say Y here, it will be possible to use a serial port as the
452 system console (the system console is the device which receives all
453 kernel messages and warnings and which allows logins in single user
454 mode). This could be useful if some terminal or printer is connected
455 to that serial port.
456
457 Even if you say Y here, the currently visible virtual console
458 (/dev/tty0) will still be used as the system console by default, but
459 you can alter that using a kernel command line option such as
460 "console=ttyS1". (Try "man bootparam" or see the documentation of
461 your boot loader (silo) about how to pass options to the kernel at
462 boot time.)
463
464 If you don't have a graphics card installed and you say Y here, the
465 kernel will automatically use the first serial line, /dev/ttyS0, as
466 system console.
467
468 If unsure, say N.
469
Konrad Eisele5213a782009-08-17 00:13:29 +0000470config SPARC_LEON
471 bool "Sparc Leon processor family"
472 depends on SPARC32
473 ---help---
474 If you say Y here if you are running on a SPARC-LEON processor.
475 The LEON processor is a synthesizable VHDL model of the
476 SPARC-v8 standard. LEON is part of the GRLIB collection of
477 IP cores that are distributed under GPL. GRLIB can be downloaded
478 from www.gaisler.com. You can download a sparc-linux cross-compilation
479 toolchain at www.gaisler.com.
480
Sam Ravnborg4b27e0e2008-11-15 13:44:31 -0800481endmenu
482
483menu "Bus options (PCI etc.)"
Sam Ravnborg4b27e0e2008-11-15 13:44:31 -0800484config SBUS
485 bool
486 default y
487
488config SBUSCHAR
489 bool
490 default y
491
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800492config SUN_LDOMS
493 bool "Sun Logical Domains support"
494 depends on SPARC64
495 help
496 Say Y here is you want to support virtual devices via
497 Logical Domains.
498
Linus Torvalds1da177e2005-04-16 15:20:36 -0700499config PCI
500 bool "Support for PCI and PS/2 keyboard/mouse"
501 help
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800502 Find out whether your system includes a PCI bus. PCI is the name of
503 a bus system, i.e. the way the CPU talks to the other stuff inside
504 your box. If you say Y here, the kernel will include drivers and
505 infrastructure code to support PCI bus devices.
506
Linus Torvalds1da177e2005-04-16 15:20:36 -0700507 CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
508 CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
509 All of these platforms are extremely obscure, so say N if unsure.
510
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800511config PCI_DOMAINS
512 def_bool PCI if SPARC64
513
Matthew Wilcox36e23592007-07-10 10:54:40 -0600514config PCI_SYSCALL
515 def_bool PCI
516
Linus Torvalds1da177e2005-04-16 15:20:36 -0700517source "drivers/pci/Kconfig"
518
David S. Millerc6afec52008-11-23 21:50:16 -0800519source "drivers/pcmcia/Kconfig"
520
Linus Torvalds1da177e2005-04-16 15:20:36 -0700521config SUN_OPENPROMFS
522 tristate "Openprom tree appears in /proc/openprom"
523 help
524 If you say Y, the OpenPROM device tree will be available as a
525 virtual file system, which you can mount to /proc/openprom by "mount
526 -t openpromfs none /proc/openprom".
527
528 To compile the /proc/openprom support as a module, choose M here: the
529 module will be called openpromfs.
530
531 Only choose N if you know in advance that you will not need to modify
532 OpenPROM settings on the running system.
533
Sam Ravnborgd670bd42008-12-03 03:08:37 -0800534# Makefile helpers
535config SPARC32_PCI
536 bool
537 default y
538 depends on SPARC32 && PCI
539
540config SPARC64_PCI
541 bool
542 default y
543 depends on SPARC64 && PCI
William Lee Irwin III30aaa802005-06-23 00:10:18 -0700544
545endmenu
546
Sam Ravnborg12e271a2008-11-15 13:43:49 -0800547menu "Executable file formats"
548
549source "fs/Kconfig.binfmt"
550
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800551config COMPAT
552 bool
553 depends on SPARC64
554 default y
555 select COMPAT_BINFMT_ELF
556
557config SYSVIPC_COMPAT
558 bool
559 depends on COMPAT && SYSVIPC
560 default y
561
Sam Ravnborg12e271a2008-11-15 13:43:49 -0800562endmenu
563
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700564source "net/Kconfig"
565
William Lee Irwin III30aaa802005-06-23 00:10:18 -0700566source "drivers/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700567
Linus Torvalds1da177e2005-04-16 15:20:36 -0700568source "drivers/sbus/char/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700569
Linus Torvalds1da177e2005-04-16 15:20:36 -0700570source "fs/Kconfig"
571
Linus Torvalds1da177e2005-04-16 15:20:36 -0700572source "arch/sparc/Kconfig.debug"
573
574source "security/Kconfig"
575
576source "crypto/Kconfig"
577
578source "lib/Kconfig"