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