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