blob: 989bb6415ea3db11d655ac46e8d9528aa4f22080 [file] [log] [blame]
Bastian Blank761b6022009-01-04 23:03:10 -08001config 64BIT
2 bool "64-bit kernel" if ARCH = "sparc"
3 default ARCH = "sparc64"
4 help
5 SPARC is a family of RISC microprocessors designed and marketed by
6 Sun Microsystems, incorporated. They are very widely found in Sun
7 workstations and clones.
8
9 Say yes to build a 64-bit kernel - formerly known as sparc64
10 Say no to build a 32-bit kernel - formerly known as sparc
11
Sam Ravnborg35da3e32008-11-15 13:40:12 -080012config SPARC
13 bool
14 default y
Stephen Rothwell7b14c642010-06-29 12:44:50 +100015 select OF
Andres Salomon3cfc5352010-10-10 21:42:33 -060016 select OF_PROMTREE
Sam Ravnborg35da3e32008-11-15 13:40:12 -080017 select HAVE_IDE
18 select HAVE_OPROFILE
Sam Ravnborg26b4c912008-11-16 20:01:17 -080019 select HAVE_ARCH_KGDB if !SMP || SPARC64
Sam Ravnborg35da3e32008-11-15 13:40:12 -080020 select HAVE_ARCH_TRACEHOOK
21 select ARCH_WANT_OPTIONAL_GPIOLIB
22 select RTC_CLASS
23 select RTC_DRV_M48T59
Peter Zijlstrae360adb2010-10-14 14:01:34 +080024 select HAVE_IRQ_WORK
FUJITA Tomonori02f7a182009-08-10 11:53:13 +090025 select HAVE_DMA_ATTRS
FUJITA Tomonori451d7402009-08-10 11:53:17 +090026 select HAVE_DMA_API_DEBUG
Steven Rostedt46eb3b62010-09-22 23:10:23 -040027 select HAVE_ARCH_JUMP_LABEL
Sam Ravnborg35da3e32008-11-15 13:40:12 -080028
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
David S. Miller9960e9e2010-04-07 04:41:33 -070036 select HAVE_FUNCTION_GRAPH_TRACER
37 select HAVE_FUNCTION_GRAPH_FP_TEST
David S. Miller63b75492010-04-12 22:35:24 -070038 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
Sam Ravnborg26b4c912008-11-16 20:01:17 -080039 select HAVE_KRETPROBES
40 select HAVE_KPROBES
Yinghai Lu95f72d12010-07-12 14:36:09 +100041 select HAVE_MEMBLOCK
Christian Borntraeger67605d62009-01-19 20:21:49 -080042 select HAVE_SYSCALL_WRAPPERS
David S. Miller9be12f92009-06-13 01:03:24 -070043 select HAVE_DYNAMIC_FTRACE
44 select HAVE_FTRACE_MCOUNT_RECORD
David S. Millerc658ad12009-12-11 00:44:47 -080045 select HAVE_SYSCALL_TRACEPOINTS
Sam Ravnborg26b4c912008-11-16 20:01:17 -080046 select USE_GENERIC_SMP_HELPERS if SMP
47 select RTC_DRV_CMOS
48 select RTC_DRV_BQ4802
49 select RTC_DRV_SUN4V
50 select RTC_DRV_STARFIRE
Ingo Molnarcdd6c482009-09-21 12:02:48 +020051 select HAVE_PERF_EVENTS
Peter Zijlstra906010b2009-09-21 16:08:49 +020052 select PERF_USE_VMALLOC
Sam Ravnborg26b4c912008-11-16 20:01:17 -080053
Sam Ravnborg5e538792008-12-02 23:17:12 -080054config ARCH_DEFCONFIG
55 string
56 default "arch/sparc/configs/sparc32_defconfig" if SPARC32
57 default "arch/sparc/configs/sparc64_defconfig" if SPARC64
58
Sam Ravnborgfe6875e2008-12-26 15:35:16 -080059# CONFIG_BITS can be used at source level to get 32/64 bits
60config BITS
61 int
62 default 32 if SPARC32
63 default 64 if SPARC64
Sam Ravnborg5e538792008-12-02 23:17:12 -080064
John Stultz0299b132010-01-15 01:34:28 -080065config ARCH_USES_GETTIMEOFFSET
Sam Ravnborg26b4c912008-11-16 20:01:17 -080066 bool
John Stultz0299b132010-01-15 01:34:28 -080067 default y if SPARC32
Sam Ravnborg26b4c912008-11-16 20:01:17 -080068
69config GENERIC_CMOS_UPDATE
70 bool
John Stultzf5c9c9b2010-03-03 19:57:27 -080071 default y
Sam Ravnborg26b4c912008-11-16 20:01:17 -080072
73config GENERIC_CLOCKEVENTS
74 bool
75 default y if SPARC64
76
77config IOMMU_HELPER
78 bool
79 default y if SPARC64
80
81config QUICKLIST
82 bool
83 default y if SPARC64
84
85config STACKTRACE_SUPPORT
86 bool
87 default y if SPARC64
88
89config LOCKDEP_SUPPORT
90 bool
91 default y if SPARC64
92
David S. Miller6a5726d2008-11-28 01:19:41 -080093config HAVE_LATENCYTOP_SUPPORT
94 bool
95 default y if SPARC64
96
Sam Ravnborg26b4c912008-11-16 20:01:17 -080097config AUDIT_ARCH
98 bool
David S. Miller7e7e93a2008-12-05 22:18:40 -080099 default y
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800100
101config HAVE_SETUP_PER_CPU_AREA
102 def_bool y if SPARC64
103
Tejun Heobcb21072009-08-14 15:00:53 +0900104config NEED_PER_CPU_EMBED_FIRST_CHUNK
David S. Miller4fd78a52009-04-08 20:32:02 -0700105 def_bool y if SPARC64
106
Tejun Heoa70c6912009-09-24 18:18:55 +0900107config NEED_PER_CPU_PAGE_FIRST_CHUNK
108 def_bool y if SPARC64
109
Linus Torvalds1da177e2005-04-16 15:20:36 -0700110config MMU
111 bool
112 default y
113
Linus Torvalds1da177e2005-04-16 15:20:36 -0700114config HIGHMEM
115 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800116 default y if SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117
Christoph Lameter5ac6da62007-02-10 01:43:14 -0800118config ZONE_DMA
119 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800120 default y if SPARC32
Christoph Lameter5ac6da62007-02-10 01:43:14 -0800121
FUJITA Tomonorid15b51b2010-03-10 15:23:28 -0800122config NEED_DMA_MAP_STATE
123 def_bool y
124
FUJITA Tomonori18e98302010-05-26 14:44:32 -0700125config NEED_SG_DMA_LENGTH
126 def_bool y
127
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128config GENERIC_ISA_DMA
129 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800130 default y if SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131
David S. Miller15df0f32008-08-20 23:03:24 -0700132config GENERIC_GPIO
133 bool
134 help
135 Generic GPIO API support
136
Stephen Rothwell0785b9d2007-07-18 00:09:30 -0700137config ARCH_NO_VIRT_TO_BUS
138 def_bool y
139
Akinobu Mita6a11f752009-03-31 15:23:17 -0700140config ARCH_SUPPORTS_DEBUG_PAGEALLOC
141 def_bool y if SPARC64
142
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143source "init/Kconfig"
144
Matt Helsleydc52ddc2008-10-18 20:27:21 -0700145source "kernel/Kconfig.freezer"
146
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800147menu "Processor type and features"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700148
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149config SMP
150 bool "Symmetric multi-processing support (does not work on sun4/sun4c)"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151 ---help---
152 This enables support for systems with more than one CPU. If you have
153 a system with only one CPU, say N. If you have a system with more
154 than one CPU, say Y.
155
156 If you say N here, the kernel will run on single and multiprocessor
157 machines, but will use only one CPU of a multiprocessor machine. If
158 you say Y here, the kernel will run on many, but not all,
159 singleprocessor machines. On a singleprocessor machine, the kernel
160 will run faster if you say N here.
161
162 People using multiprocessor machines who say Y here should also say
163 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
164 Management" code will be disabled if you say Y here.
165
Adrian Bunk03502fa2008-02-03 15:50:21 +0200166 See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
167 available at <http://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168
169 If you don't know what to do here, say N.
170
171config NR_CPUS
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800172 int "Maximum number of CPUs"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173 depends on SMP
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800174 range 2 32 if SPARC32
175 range 2 1024 if SPARC64
176 default 32 if SPARC32
177 default 64 if SPARC64
Linus Torvalds1da177e2005-04-16 15:20:36 -0700178
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800179source kernel/Kconfig.hz
180
181config RWSEM_GENERIC_SPINLOCK
182 bool
183 default y if SPARC32
184
185config RWSEM_XCHGADD_ALGORITHM
186 bool
187 default y if SPARC64
188
189config GENERIC_FIND_NEXT_BIT
190 bool
191 default y
192
193config GENERIC_HWEIGHT
194 bool
195 default y if !ULTRA_HAS_POPULATION_COUNT
196
197config GENERIC_CALIBRATE_DELAY
198 bool
199 default y
200
201config ARCH_MAY_HAVE_PC_FDC
202 bool
203 default y
204
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800205config EMULATED_CMPXCHG
206 bool
207 default y if SPARC32
208 help
209 Sparc32 does not have a CAS instruction like sparc64. cmpxchg()
210 is emulated, and therefore it is not completely atomic.
211
Sam Ravnborgd670bd42008-12-03 03:08:37 -0800212# Makefile helpers
213config SPARC32_SMP
214 bool
215 default y
216 depends on SPARC32 && SMP
217
218config SPARC64_SMP
219 bool
220 default y
221 depends on SPARC64 && SMP
222
David S. Millerc57ec522009-11-27 17:33:43 -0800223config EARLYFB
224 bool "Support for early boot text console"
225 default y
226 depends on SPARC64
227 help
228 Say Y here to enable a faster early framebuffer boot console.
229
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800230choice
231 prompt "Kernel page size" if SPARC64
232 default SPARC64_PAGE_SIZE_8KB
233
234config SPARC64_PAGE_SIZE_8KB
235 bool "8KB"
236 help
237 This lets you select the page size of the kernel.
238
239 8KB and 64KB work quite well, since SPARC ELF sections
240 provide for up to 64KB alignment.
241
242 If you don't know what to do, choose 8KB.
243
244config SPARC64_PAGE_SIZE_64KB
245 bool "64KB"
246
247endchoice
248
249config SECCOMP
250 bool "Enable seccomp to safely compute untrusted bytecode"
251 depends on SPARC64 && PROC_FS
252 default y
253 help
254 This kernel feature is useful for number crunching applications
255 that may need to compute untrusted bytecode during their
256 execution. By using pipes or other transports made available to
257 the process as file descriptors supporting the read/write
258 syscalls, it's possible to isolate those applications in
259 their own address space using seccomp. Once seccomp is
260 enabled via /proc/<pid>/seccomp, it cannot be disabled
261 and the task is only allowed to execute a few safe syscalls
262 defined by each seccomp mode.
263
264 If unsure, say Y. Only embedded should say N here.
265
266config HOTPLUG_CPU
267 bool "Support for hot-pluggable CPUs"
268 depends on SPARC64 && SMP
269 select HOTPLUG
270 help
271 Say Y here to experiment with turning CPUs off and on. CPUs
272 can be controlled through /sys/devices/system/cpu/cpu#.
273 Say N if you want to disable CPU hotplug.
274
275config GENERIC_HARDIRQS
276 bool
277 default y if SPARC64
278
279source "kernel/time/Kconfig"
280
281if SPARC64
282source "drivers/cpufreq/Kconfig"
283
284config US3_FREQ
285 tristate "UltraSPARC-III CPU Frequency driver"
286 depends on CPU_FREQ
287 select CPU_FREQ_TABLE
288 help
289 This adds the CPUFreq driver for UltraSPARC-III processors.
290
291 For details, take a look at <file:Documentation/cpu-freq>.
292
293 If in doubt, say N.
294
295config US2E_FREQ
296 tristate "UltraSPARC-IIe CPU Frequency driver"
297 depends on CPU_FREQ
298 select CPU_FREQ_TABLE
299 help
300 This adds the CPUFreq driver for UltraSPARC-IIe processors.
301
302 For details, take a look at <file:Documentation/cpu-freq>.
303
304 If in doubt, say N.
305
306endif
307
308config US3_MC
309 tristate "UltraSPARC-III Memory Controller driver"
310 depends on SPARC64
311 default y
312 help
313 This adds a driver for the UltraSPARC-III memory controller.
314 Loading this driver allows exact mnemonic strings to be
315 printed in the event of a memory error, so that the faulty DIMM
316 on the motherboard can be matched to the error.
317
318 If in doubt, say Y, as this information can be very useful.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700319
320# Global things across all Sun machines.
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800321config GENERIC_LOCKBREAK
322 bool
323 default y
324 depends on SPARC64 && SMP && PREEMPT
325
326choice
327 prompt "SPARC64 Huge TLB Page Size"
328 depends on SPARC64 && HUGETLB_PAGE
329 default HUGETLB_PAGE_SIZE_4MB
330
331config HUGETLB_PAGE_SIZE_4MB
332 bool "4MB"
333
334config HUGETLB_PAGE_SIZE_512K
335 bool "512K"
336
337config HUGETLB_PAGE_SIZE_64K
338 depends on !SPARC64_PAGE_SIZE_64KB
339 bool "64K"
340
341endchoice
342
343config NUMA
344 bool "NUMA support"
345 depends on SPARC64 && SMP
346
347config NODES_SHIFT
348 int
349 default "4"
350 depends on NEED_MULTIPLE_NODES
351
352# Some NUMA nodes have memory ranges that span
353# other nodes. Even though a pfn is valid and
354# between a node's start and end pfns, it may not
355# reside on that node. See memmap_init_zone()
356# for details.
357config NODES_SPAN_OTHER_NODES
358 def_bool y
359 depends on NEED_MULTIPLE_NODES
360
361config ARCH_POPULATES_NODE_MAP
362 def_bool y if SPARC64
363
364config ARCH_SELECT_MEMORY_MODEL
365 def_bool y if SPARC64
366
367config ARCH_SPARSEMEM_ENABLE
368 def_bool y if SPARC64
369 select SPARSEMEM_VMEMMAP_ENABLE
370
371config ARCH_SPARSEMEM_DEFAULT
372 def_bool y if SPARC64
373
374source "mm/Kconfig"
375
376config SCHED_SMT
377 bool "SMT (Hyperthreading) scheduler support"
378 depends on SPARC64 && SMP
379 default y
380 help
381 SMT scheduler support improves the CPU scheduler's decision making
382 when dealing with SPARC cpus at a cost of slightly increased overhead
383 in some places. If unsure say N here.
384
385config SCHED_MC
386 bool "Multi-core scheduler support"
387 depends on SPARC64 && SMP
388 default y
389 help
390 Multi-core scheduler support improves the CPU scheduler's decision
391 making when dealing with multi-core CPU chips at a cost of slightly
392 increased overhead in some places. If unsure say N here.
393
394if SPARC64
395source "kernel/Kconfig.preempt"
396endif
397
398config CMDLINE_BOOL
399 bool "Default bootloader kernel arguments"
400 depends on SPARC64
401
402config CMDLINE
403 string "Initial kernel command string"
404 depends on CMDLINE_BOOL
405 default "console=ttyS0,9600 root=/dev/sda1"
406 help
407 Say Y here if you want to be able to pass default arguments to
408 the kernel. This will be overridden by the bootloader, if you
409 use one (such as SILO). This is most useful if you want to boot
410 a kernel from TFTP, and want default options to be available
411 with having them passed on the command line.
412
413 NOTE: This option WILL override the PROM bootargs setting!
414
415config SUN_PM
416 bool
417 default y if SPARC32
418 help
419 Enable power management and CPU standby features on supported
420 SPARC platforms.
421
422config SPARC_LED
423 tristate "Sun4m LED driver"
424 depends on SPARC32
425 help
426 This driver toggles the front-panel LED on sun4m systems
427 in a user-specifiable manner. Its state can be probed
428 by reading /proc/led and its blinking mode can be changed
429 via writes to /proc/led
430
Linus Torvalds1da177e2005-04-16 15:20:36 -0700431config SERIAL_CONSOLE
432 bool
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800433 depends on SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -0700434 default y
435 ---help---
436 If you say Y here, it will be possible to use a serial port as the
437 system console (the system console is the device which receives all
438 kernel messages and warnings and which allows logins in single user
439 mode). This could be useful if some terminal or printer is connected
440 to that serial port.
441
442 Even if you say Y here, the currently visible virtual console
443 (/dev/tty0) will still be used as the system console by default, but
444 you can alter that using a kernel command line option such as
445 "console=ttyS1". (Try "man bootparam" or see the documentation of
446 your boot loader (silo) about how to pass options to the kernel at
447 boot time.)
448
449 If you don't have a graphics card installed and you say Y here, the
450 kernel will automatically use the first serial line, /dev/ttyS0, as
451 system console.
452
453 If unsure, say N.
454
Konrad Eisele5213a782009-08-17 00:13:29 +0000455config SPARC_LEON
456 bool "Sparc Leon processor family"
457 depends on SPARC32
458 ---help---
459 If you say Y here if you are running on a SPARC-LEON processor.
460 The LEON processor is a synthesizable VHDL model of the
461 SPARC-v8 standard. LEON is part of the GRLIB collection of
462 IP cores that are distributed under GPL. GRLIB can be downloaded
463 from www.gaisler.com. You can download a sparc-linux cross-compilation
464 toolchain at www.gaisler.com.
465
Sam Ravnborg4b27e0e2008-11-15 13:44:31 -0800466endmenu
467
468menu "Bus options (PCI etc.)"
Sam Ravnborg4b27e0e2008-11-15 13:44:31 -0800469config SBUS
470 bool
471 default y
472
473config SBUSCHAR
474 bool
475 default y
476
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800477config SUN_LDOMS
478 bool "Sun Logical Domains support"
479 depends on SPARC64
480 help
481 Say Y here is you want to support virtual devices via
482 Logical Domains.
483
Linus Torvalds1da177e2005-04-16 15:20:36 -0700484config PCI
485 bool "Support for PCI and PS/2 keyboard/mouse"
486 help
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800487 Find out whether your system includes a PCI bus. PCI is the name of
488 a bus system, i.e. the way the CPU talks to the other stuff inside
489 your box. If you say Y here, the kernel will include drivers and
490 infrastructure code to support PCI bus devices.
491
Linus Torvalds1da177e2005-04-16 15:20:36 -0700492 CONFIG_PCI is needed for all JavaStation's (including MrCoffee),
493 CP-1200, JavaEngine-1, Corona, Red October, and Serengeti SGSC.
494 All of these platforms are extremely obscure, so say N if unsure.
495
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800496config PCI_DOMAINS
497 def_bool PCI if SPARC64
498
Matthew Wilcox36e23592007-07-10 10:54:40 -0600499config PCI_SYSCALL
500 def_bool PCI
501
Linus Torvalds1da177e2005-04-16 15:20:36 -0700502source "drivers/pci/Kconfig"
503
David S. Millerc6afec52008-11-23 21:50:16 -0800504source "drivers/pcmcia/Kconfig"
505
Linus Torvalds1da177e2005-04-16 15:20:36 -0700506config SUN_OPENPROMFS
507 tristate "Openprom tree appears in /proc/openprom"
508 help
509 If you say Y, the OpenPROM device tree will be available as a
510 virtual file system, which you can mount to /proc/openprom by "mount
511 -t openpromfs none /proc/openprom".
512
513 To compile the /proc/openprom support as a module, choose M here: the
514 module will be called openpromfs.
515
516 Only choose N if you know in advance that you will not need to modify
517 OpenPROM settings on the running system.
518
Sam Ravnborgd670bd42008-12-03 03:08:37 -0800519# Makefile helpers
520config SPARC32_PCI
521 bool
522 default y
523 depends on SPARC32 && PCI
524
525config SPARC64_PCI
526 bool
527 default y
528 depends on SPARC64 && PCI
William Lee Irwin III30aaa802005-06-23 00:10:18 -0700529
530endmenu
531
Sam Ravnborg12e271a2008-11-15 13:43:49 -0800532menu "Executable file formats"
533
534source "fs/Kconfig.binfmt"
535
Sam Ravnborg26b4c912008-11-16 20:01:17 -0800536config COMPAT
537 bool
538 depends on SPARC64
539 default y
540 select COMPAT_BINFMT_ELF
541
542config SYSVIPC_COMPAT
543 bool
544 depends on COMPAT && SYSVIPC
545 default y
546
Sam Ravnborg12e271a2008-11-15 13:43:49 -0800547endmenu
548
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700549source "net/Kconfig"
550
William Lee Irwin III30aaa802005-06-23 00:10:18 -0700551source "drivers/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700552
Linus Torvalds1da177e2005-04-16 15:20:36 -0700553source "drivers/sbus/char/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700554
Linus Torvalds1da177e2005-04-16 15:20:36 -0700555source "fs/Kconfig"
556
Linus Torvalds1da177e2005-04-16 15:20:36 -0700557source "arch/sparc/Kconfig.debug"
558
559source "security/Kconfig"
560
561source "crypto/Kconfig"
562
563source "lib/Kconfig"