bzip2/lzma: make internal initramfs compression configurable
[cascardo/linux.git] / arch / sparc / Kconfig
1 # For a description of the syntax of this configuration file,
2 # see Documentation/kbuild/kconfig-language.txt.
3 #
4
5 mainmenu "Linux/SPARC Kernel Configuration"
6
7 config 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
18 config SPARC
19         bool
20         default y
21         select HAVE_IDE
22         select HAVE_OPROFILE
23         select HAVE_ARCH_KGDB if !SMP || SPARC64
24         select HAVE_ARCH_TRACEHOOK
25         select ARCH_WANT_OPTIONAL_GPIOLIB
26         select RTC_CLASS
27         select RTC_DRV_M48T59
28
29 config SPARC32
30         def_bool !64BIT
31
32 config SPARC64
33         def_bool 64BIT
34         select ARCH_SUPPORTS_MSI
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
45 config ARCH_DEFCONFIG
46         string
47         default "arch/sparc/configs/sparc32_defconfig" if SPARC32
48         default "arch/sparc/configs/sparc64_defconfig" if SPARC64
49
50 # CONFIG_BITS can be used at source level to get 32/64 bits
51 config BITS
52         int
53         default 32 if SPARC32
54         default 64 if SPARC64
55
56 config GENERIC_TIME
57         bool
58         default y if SPARC64
59
60 config GENERIC_CMOS_UPDATE
61         bool
62         default y if SPARC64
63
64 config GENERIC_CLOCKEVENTS
65         bool
66         default y if SPARC64
67
68 config IOMMU_HELPER
69         bool
70         default y if SPARC64
71
72 config QUICKLIST
73         bool
74         default y if SPARC64
75
76 config STACKTRACE_SUPPORT
77         bool
78         default y if SPARC64
79
80 config LOCKDEP_SUPPORT
81         bool
82         default y if SPARC64
83
84 config HAVE_LATENCYTOP_SUPPORT
85         bool
86         default y if SPARC64
87
88 config AUDIT_ARCH
89         bool
90         default y
91
92 config HAVE_SETUP_PER_CPU_AREA
93         def_bool y if SPARC64
94
95 config GENERIC_HARDIRQS_NO__DO_IRQ
96         bool
97         def_bool y if SPARC64
98
99 config MMU
100         bool
101         default y
102
103 config HIGHMEM
104         bool
105         default y if SPARC32
106
107 config ZONE_DMA
108         bool
109         default y if SPARC32
110
111 config GENERIC_ISA_DMA
112         bool
113         default y if SPARC32
114
115 config GENERIC_GPIO
116         bool
117         help
118           Generic GPIO API support
119
120 config ARCH_NO_VIRT_TO_BUS
121         def_bool y
122
123 config OF
124         def_bool y
125
126 source "init/Kconfig"
127
128 source "kernel/Kconfig.freezer"
129
130 menu "Processor type and features"
131
132 config SMP
133         bool "Symmetric multi-processing support (does not work on sun4/sun4c)"
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
149           See also <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO
150           available at <http://www.tldp.org/docs.html#howto>.
151
152           If you don't know what to do here, say N.
153
154 config NR_CPUS
155         int "Maximum number of CPUs"
156         depends on SMP
157         range 2 32 if SPARC32
158         range 2 1024 if SPARC64
159         default 32 if SPARC32
160         default 64 if SPARC64
161
162 source kernel/Kconfig.hz
163
164 config RWSEM_GENERIC_SPINLOCK
165         bool
166         default y if SPARC32
167
168 config RWSEM_XCHGADD_ALGORITHM
169         bool
170         default y if SPARC64
171
172 config GENERIC_FIND_NEXT_BIT
173         bool
174         default y
175
176 config GENERIC_HWEIGHT
177         bool
178         default y if !ULTRA_HAS_POPULATION_COUNT
179
180 config GENERIC_CALIBRATE_DELAY
181         bool
182         default y
183
184 config ARCH_MAY_HAVE_PC_FDC
185         bool
186         default y
187
188 config 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
195 # Makefile helpers
196 config SPARC32_SMP
197         bool
198         default y
199         depends on SPARC32 && SMP
200
201 config SPARC64_SMP
202         bool
203         default y
204         depends on SPARC64 && SMP
205
206 choice
207         prompt "Kernel page size" if SPARC64
208         default SPARC64_PAGE_SIZE_8KB
209
210 config 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
220 config SPARC64_PAGE_SIZE_64KB
221         bool "64KB"
222
223 endchoice
224
225 config 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
242 config 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
251 config GENERIC_HARDIRQS
252         bool
253         default y if SPARC64
254
255 source "kernel/time/Kconfig"
256
257 if SPARC64
258 source "drivers/cpufreq/Kconfig"
259
260 config 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
271 config 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
282 endif
283
284 config 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.
297 config GENERIC_LOCKBREAK
298         bool
299         default y
300         depends on SPARC64 && SMP && PREEMPT
301
302 choice
303         prompt "SPARC64 Huge TLB Page Size"
304         depends on SPARC64 && HUGETLB_PAGE
305         default HUGETLB_PAGE_SIZE_4MB
306
307 config HUGETLB_PAGE_SIZE_4MB
308         bool "4MB"
309
310 config HUGETLB_PAGE_SIZE_512K
311         bool "512K"
312
313 config HUGETLB_PAGE_SIZE_64K
314         depends on !SPARC64_PAGE_SIZE_64KB
315         bool "64K"
316
317 endchoice
318
319 config NUMA
320         bool "NUMA support"
321         depends on SPARC64 && SMP
322
323 config 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.
333 config NODES_SPAN_OTHER_NODES
334         def_bool y
335         depends on NEED_MULTIPLE_NODES
336
337 config ARCH_POPULATES_NODE_MAP
338         def_bool y if SPARC64
339
340 config ARCH_SELECT_MEMORY_MODEL
341         def_bool y if SPARC64
342
343 config ARCH_SPARSEMEM_ENABLE
344         def_bool y if SPARC64
345         select SPARSEMEM_VMEMMAP_ENABLE
346
347 config ARCH_SPARSEMEM_DEFAULT
348         def_bool y if SPARC64
349
350 source "mm/Kconfig"
351
352 config 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
361 config 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
370 if SPARC64
371 source "kernel/Kconfig.preempt"
372 endif
373
374 config CMDLINE_BOOL
375         bool "Default bootloader kernel arguments"
376         depends on SPARC64
377
378 config 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
391 config 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
398 config 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
407 config 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.
430
431 endmenu
432
433 menu "Bus options (PCI etc.)"
434 config SBUS
435         bool
436         default y
437
438 config SBUSCHAR
439         bool
440         default y
441
442 config 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
449 config PCI
450         bool "Support for PCI and PS/2 keyboard/mouse"
451         help
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
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
461 config PCI_DOMAINS
462         def_bool PCI if SPARC64
463
464 config PCI_SYSCALL
465         def_bool PCI
466
467 source "drivers/pci/Kconfig"
468
469 source "drivers/pcmcia/Kconfig"
470
471 config 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
484 # Makefile helpers
485 config SPARC32_PCI
486         bool
487         default y
488         depends on SPARC32 && PCI
489
490 config SPARC64_PCI
491         bool
492         default y
493         depends on SPARC64 && PCI
494
495 endmenu
496
497 menu "Executable file formats"
498
499 source "fs/Kconfig.binfmt"
500
501 config COMPAT
502         bool
503         depends on SPARC64
504         default y
505         select COMPAT_BINFMT_ELF
506
507 config SYSVIPC_COMPAT
508         bool
509         depends on COMPAT && SYSVIPC
510         default y
511
512 endmenu
513
514 source "net/Kconfig"
515
516 source "drivers/Kconfig"
517
518 source "drivers/sbus/char/Kconfig"
519
520 source "fs/Kconfig"
521
522 source "arch/sparc/Kconfig.debug"
523
524 source "security/Kconfig"
525
526 source "crypto/Kconfig"
527
528 source "lib/Kconfig"