1 # For a description of the syntax of this configuration file,
2 # see Documentation/kbuild/kconfig-language.txt.
5 mainmenu "Linux/PowerPC Kernel Configuration"
11 This option selects whether a 32-bit or a 64-bit kernel
32 config GENERIC_HARDIRQS
36 config RWSEM_GENERIC_SPINLOCK
39 config RWSEM_XCHGADD_ALGORITHM
43 config GENERIC_CALIBRATE_DELAY
61 depends on COMPAT && SYSVIPC
64 # All PPC32s use generic nvram driver through ppc_md
69 config SCHED_NO_NO_OMIT_FRAME_POINTER
73 config ARCH_MAY_HAVE_PC_FDC
77 menu "Processor support"
79 prompt "Processor Type"
87 There are four families of PowerPC chips supported. The more common
88 types (601, 603, 604, 740, 750, 7400), the Motorola embedded
89 versions (821, 823, 850, 855, 860, 52xx, 82xx, 83xx), the AMCC
90 embedded versions (403 and 405) and the high end 64 bit Power
91 processors (POWER 3, POWER4, and IBM PPC970 also known as G5).
93 Unless you are building a kernel for one of the embedded processor
94 systems, 64 bit IBM RS/6000 or an Apple G5, choose 6xx.
95 Note that the kernel runs in 32-bit mode even on 64-bit chips.
101 bool "Freescale 82xx"
104 bool "Freescale 83xx"
116 bool "Freescale e200"
119 bool "Freescale e500"
123 bool "Optimize for POWER4"
127 Cause the compiler to optimize for POWER4/POWER5/PPC970 processors.
128 The resulting binary will not work on POWER3 or RS64 processors
129 when compiled with binutils 2.15 or later.
134 default y if !POWER4_ONLY
146 depends on E200 || E500
151 depends on E200 || E500
156 depends on 44x || E500
158 default y if E500 && PHYS_64BIT
161 bool 'Large physical address support' if E500
162 depends on 44x || E500
165 This option enables kernel support for larger than 32-bit physical
166 addresses. This features is not be available on all e500 cores.
168 If in doubt, say N here.
171 bool "AltiVec Support"
172 depends on 6xx || POWER4
174 This option enables kernel support for the Altivec extensions to the
175 PowerPC processor. The kernel currently supports saving and restoring
176 altivec registers, and turning on the 'altivec enable' bit so user
177 processes can execute altivec instructions.
179 This option is only usefully if you have a processor that supports
180 altivec (G4, otherwise known as 74xx series), but does not have
181 any affect on a non-altivec cpu (it does, however add code to the
184 If in doubt, say Y here.
188 depends on E200 || E500
190 This option enables kernel support for the Signal Processing
191 Extensions (SPE) to the PowerPC processor. The kernel currently
192 supports saving and restoring SPE registers, and turning on the
193 'spe enable' bit so user processes can execute SPE instructions.
195 This option is only useful if you have a processor that supports
196 SPE (e500, otherwise known as 85xx series), but does not have any
197 effect on a non-spe cpu (it does, however add code to the kernel).
199 If in doubt, say Y here.
203 depends on 6xx || POWER3 || POWER4 || PPC64
206 config PPC_STD_MMU_32
208 depends on PPC_STD_MMU && PPC32
211 depends on PPC_STD_MMU
212 bool "Symmetric multi-processing support"
214 This enables support for systems with more than one CPU. If you have
215 a system with only one CPU, say N. If you have a system with more
216 than one CPU, say Y. Note that the kernel does not currently
217 support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
218 since they have inadequate hardware support for multiprocessor
221 If you say N here, the kernel will run on single and multiprocessor
222 machines, but will use only one CPU of a multiprocessor machine. If
223 you say Y here, the kernel will run on single-processor machines.
224 On a single-processor machine, the kernel will run faster if you say
227 If you don't know what to do here, say N.
230 int "Maximum number of CPUs (2-128)"
233 default "32" if PPC64
236 config NOT_COHERENT_CACHE
238 depends on 4xx || 8xx || E200
242 source "init/Kconfig"
244 menu "Platform support"
245 depends on PPC64 || 6xx
248 prompt "Machine type"
249 default PPC_MULTIPLATFORM
251 config PPC_MULTIPLATFORM
252 bool "Generic desktop/server/laptop"
254 Select this option if configuring for an IBM pSeries or
255 RS/6000 machine, an Apple machine, or a PReP, CHRP,
256 Maple or Cell-based machine.
259 bool "IBM Legacy iSeries"
263 bool "Embedded 6xx/7xx/7xxx-based board"
264 depends on PPC32 && BROKEN
268 depends on PPC32 && BROKEN
270 Select APUS if configuring for a PowerUP Amiga.
271 More information is available at:
272 <http://linux-apus.sourceforge.net/>.
276 depends on PPC_MULTIPLATFORM && PPC64
277 bool " IBM pSeries & new (POWER5-based) iSeries"
280 select RTAS_ERROR_LOGGING
284 bool " Common Hardware Reference Platform (CHRP) based machines"
285 depends on PPC_MULTIPLATFORM && PPC32
287 select PPC_INDIRECT_PCI
293 bool " Apple PowerMac based machines"
294 depends on PPC_MULTIPLATFORM
295 select PPC_INDIRECT_PCI if PPC32
296 select PPC_MPC106 if PPC32
301 depends on PPC_PMAC && POWER4
303 select GENERIC_TBSYNC
307 bool " PowerPC Reference Platform (PReP) based machines"
308 depends on PPC_MULTIPLATFORM && PPC32 && BROKEN
310 select PPC_INDIRECT_PCI
314 depends on PPC_MULTIPLATFORM && PPC64
315 bool " Maple 970FX Evaluation Board"
317 select MPIC_BROKEN_U3
318 select GENERIC_TBSYNC
321 This option enables support for the Maple 970FX Evaluation Board.
322 For more informations, refer to <http://www.970eval.com>
325 bool " Cell Broadband Processor Architecture"
326 depends on PPC_MULTIPLATFORM && PPC64
332 depends on PPC_MULTIPLATFORM # for now
336 depends on PPC_PSERIES
342 depends on PPC_MULTIPLATFORM && PPC64
346 depends on PPC_PSERIES || PPC_PMAC || PPC_MAPLE || PPC_CHRP
354 config RTAS_ERROR_LOGGING
360 bool "Proc interface to RTAS"
365 tristate "Firmware flash interface"
366 depends on PPC64 && RTAS_PROC
372 config MPIC_BROKEN_U3
383 depends on PPC_PSERIES || PPC_ISERIES
388 depends on PPC_PSERIES
389 bool "Support for GX bus based adapters"
392 Bus device driver for GX bus based adapters.
398 config GENERIC_TBSYNC
400 default y if CONFIG_PPC32 && CONFIG_SMP
403 source "drivers/cpufreq/Kconfig"
406 bool "Support for Apple PowerBooks"
407 depends on CPU_FREQ && ADB_PMU && PPC32
408 select CPU_FREQ_TABLE
410 This adds support for frequency switching on Apple PowerBooks,
411 this currently includes some models of iBook & Titanium
414 config CPU_FREQ_PMAC64
415 bool "Support for some Apple G5s"
416 depends on CPU_FREQ && PMAC_SMU && PPC64
417 select CPU_FREQ_TABLE
419 This adds support for frequency switching on Apple iMac G5,
420 and some of the more recent desktop G5 machines as well.
422 config PPC601_SYNC_FIX
423 bool "Workarounds for PPC601 bugs"
424 depends on 6xx && (PPC_PREP || PPC_PMAC)
426 Some versions of the PPC601 (the first PowerPC chip) have bugs which
427 mean that extra synchronization instructions are required near
428 certain instructions, typically those that make major changes to the
429 CPU state. These extra instructions reduce performance slightly.
430 If you say N here, these extra instructions will not be included,
431 resulting in a kernel which will run faster but may not run at all
432 on some systems with the PPC601 chip.
434 If in doubt, say Y here.
437 bool "Thermal Management Support"
440 G3 and G4 processors have an on-chip temperature sensor called the
441 'Thermal Assist Unit (TAU)', which, in theory, can measure the on-die
442 temperature within 2-4 degrees Celsius. This option shows the current
443 on-die temperature in /proc/cpuinfo if the cpu supports it.
445 Unfortunately, on some chip revisions, this sensor is very inaccurate
446 and in some cases, does not work at all, so don't assume the cpu
447 temp is actually what /proc/cpuinfo says it is.
450 bool "Interrupt driven TAU driver (DANGEROUS)"
453 The TAU supports an interrupt driven mode which causes an interrupt
454 whenever the temperature goes out of range. This is the fastest way
455 to get notified the temp has exceeded a range. With this option off,
456 a timer is used to re-check the temperature periodically.
458 However, on some cpus it appears that the TAU interrupt hardware
459 is buggy and can cause a situation which would lead unexplained hard
462 Unless you are extending the TAU driver, or enjoy kernel/hardware
463 debugging, leave this option off.
466 bool "Average high and low temp"
469 The TAU hardware can compare the temperature to an upper and lower
470 bound. The default behavior is to show both the upper and lower
471 bound in /proc/cpuinfo. If the range is large, the temperature is
472 either changing a lot, or the TAU hardware is broken (likely on some
473 G4's). If the range is small (around 4 degrees), the temperature is
474 relatively stable. If you say Y here, a single temperature value,
475 halfway between the upper and lower bounds, will be reported in
478 If in doubt, say N here.
481 source arch/powerpc/platforms/embedded6xx/Kconfig
482 source arch/powerpc/platforms/4xx/Kconfig
483 source arch/powerpc/platforms/85xx/Kconfig
484 source arch/powerpc/platforms/8xx/Kconfig
485 source arch/powerpc/platforms/cell/Kconfig
487 menu "Kernel options"
490 bool "High memory support"
493 source kernel/Kconfig.hz
494 source kernel/Kconfig.preempt
495 source "fs/Kconfig.binfmt"
497 # We optimistically allocate largepages from the VM, so make the limit
498 # large enough (16MB). This badly named config option is actually
500 config FORCE_MAX_ZONEORDER
503 default "9" if PPC_64K_PAGES
506 config MATH_EMULATION
507 bool "Math emulation"
508 depends on 4xx || 8xx || E200 || E500
510 Some PowerPC chips designed for embedded applications do not have
511 a floating-point unit and therefore do not implement the
512 floating-point instructions in the PowerPC instruction set. If you
513 say Y here, the kernel will include code to emulate a floating-point
514 unit, which will allow programs that use floating-point
518 bool "Enable IOMMU virtual merging (EXPERIMENTAL)"
519 depends on EXPERIMENTAL && PPC64
522 Cause IO segments sent to a device for DMA to be merged virtually
523 by the IOMMU when they happen to have been allocated contiguously.
524 This doesn't add pressure to the IOMMU allocator. However, some
525 drivers don't support getting large merged segments coming back
526 from *_map_sg(). Say Y if you know the drivers you are using are
527 properly handling this case.
530 bool "Support for enabling/disabling CPUs"
531 depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
533 Say Y here to be able to disable and re-enable individual
534 CPUs at runtime on SMP machines.
536 Say N if you are unsure.
539 bool "kexec system call (EXPERIMENTAL)"
540 depends on PPC_MULTIPLATFORM && EXPERIMENTAL
542 kexec is a system call that implements the ability to shutdown your
543 current kernel, and to start another kernel. It is like a reboot
544 but it is indepedent of the system firmware. And like a reboot
545 you can start any kernel with it, not just Linux.
547 The name comes from the similiarity to the exec system call.
549 It is an ongoing process to be certain the hardware in a machine
550 is properly shutdown, so do not be surprised if this code does not
551 initially work for you. It may help to enable device hotplugging
552 support. As of this writing the exact hardware interface is
553 strongly in flux, so no good recommendation can be made.
557 depends on 8xx || 8260
561 bool "PC PS/2 style Keyboard"
562 depends on 4xx || CPM2
565 bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
566 default y if PPC_PREP
569 bool "Distribute interrupts on all CPUs by default"
570 depends on SMP && !MV64360
572 This option gives the kernel permission to distribute IRQs across
573 multiple CPUs. Saying N here will route all IRQs to the first
574 CPU. Generally saying Y is safe, although some problems have been
575 reported with SMP Power Macintoshes with this option enabled.
577 source "arch/powerpc/platforms/pseries/Kconfig"
582 default y if SMP && PPC_PSERIES
584 config ARCH_SELECT_MEMORY_MODEL
588 config ARCH_FLATMEM_ENABLE
590 depends on (PPC64 && !NUMA) || PPC32
592 config ARCH_SPARSEMEM_ENABLE
596 config ARCH_SPARSEMEM_DEFAULT
598 depends on SMP && PPC_PSERIES
602 config HAVE_ARCH_EARLY_PFN_TO_NID
604 depends on NEED_MULTIPLE_NODES
606 config ARCH_MEMORY_PROBE
608 depends on MEMORY_HOTPLUG
614 This option changes the kernel logical page size to 64k. On machines
615 without processor support for 64k pages, the kernel will simulate
616 them by loading each individual 4k page on demand transparently,
617 while on hardware with such support, it will be used to map
618 normal application pages.
621 bool "SMT (Hyperthreading) scheduler support"
622 depends on PPC64 && SMP
625 SMT scheduler support improves the CPU scheduler's decision making
626 when dealing with POWER5 cpus at a cost of slightly increased
627 overhead in some places. If unsure say N here.
629 config PROC_DEVICETREE
630 bool "Support for device tree in /proc"
633 This option adds a device-tree directory under /proc which contains
634 an image of the device tree that the kernel copies from Open
635 Firmware or other boot firmware. If unsure, say Y here.
637 source "arch/powerpc/platforms/prep/Kconfig"
640 bool "Default bootloader kernel arguments"
641 depends on !PPC_ISERIES
644 string "Initial kernel command string"
645 depends on CMDLINE_BOOL
646 default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
648 On some platforms, there is currently no way for the boot loader to
649 pass arguments to the kernel. For these platforms, you can supply
650 some command-line options at build time by entering them here. In
651 most cases you will need to specify the root device here.
654 source kernel/power/Kconfig
658 bool "Enable seccomp to safely compute untrusted bytecode"
662 This kernel feature is useful for number crunching applications
663 that may need to compute untrusted bytecode during their
664 execution. By using pipes or other transports made available to
665 the process as file descriptors supporting the read/write
666 syscalls, it's possible to isolate those applications in
667 their own address space using seccomp. Once seccomp is
668 enabled via /proc/<pid>/seccomp, it cannot be disabled
669 and the task is only allowed to execute a few safe syscalls
670 defined by each seccomp mode.
672 If unsure, say Y. Only embedded should say N here.
683 bool "Support for ISA-bus hardware"
684 depends on PPC_PREP || PPC_CHRP
687 Find out whether you have ISA slots on your motherboard. ISA is the
688 name of a bus system, i.e. the way the CPU talks to the other stuff
689 inside your box. If you have an Apple machine, say N here; if you
690 have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
691 you have an embedded board, consult your board documentation.
693 config GENERIC_ISA_DMA
695 depends on PPC64 || POWER4 || 6xx && !CPM2
703 config PPC_INDIRECT_PCI
706 default y if 40x || 44x || 85xx || 83xx
715 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
720 bool "PCI support" if 40x || CPM2 || 83xx || 85xx || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES)
721 default y if !40x && !CPM2 && !8xx && !APUS && !83xx && !85xx
722 default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
723 default PCI_QSPAN if !4xx && !CPM2 && 8xx
725 Find out whether your system includes a PCI bus. PCI is the name of
726 a bus system, i.e. the way the CPU talks to the other stuff inside
727 your box. If you say Y here, the kernel will include drivers and
728 infrastructure code to support PCI bus devices.
735 bool " Supprt for 2nd PCI host controller"
736 depends on PCI && MPC834x
737 default y if MPC834x_SYS
741 depends on !4xx && !CPM2 && 8xx
744 Say Y here if you have a system based on a Motorola 8xx-series
745 embedded processor with a QSPAN PCI interface, otherwise say N.
749 depends on PCI && 8260
750 select PPC_INDIRECT_PCI
754 bool " Enable workaround for MPC826x erratum PCI 9"
755 depends on PCI_8260 && !ADS8272
759 prompt " IDMA channel for PCI 9 workaround"
762 config 8260_PCI9_IDMA1
765 config 8260_PCI9_IDMA2
768 config 8260_PCI9_IDMA3
771 config 8260_PCI9_IDMA4
776 source "drivers/pci/Kconfig"
778 source "drivers/pcmcia/Kconfig"
780 source "drivers/pci/hotplug/Kconfig"
784 menu "Advanced setup"
787 config ADVANCED_OPTIONS
788 bool "Prompt for advanced kernel configuration options"
790 This option will enable prompting for a variety of advanced kernel
791 configuration options. These options can cause the kernel to not
792 work if they are set incorrectly, but can be used to optimize certain
793 aspects of kernel memory management.
795 Unless you know what you are doing, say N here.
797 comment "Default settings for advanced configuration options are used"
798 depends on !ADVANCED_OPTIONS
800 config HIGHMEM_START_BOOL
801 bool "Set high memory pool address"
802 depends on ADVANCED_OPTIONS && HIGHMEM
804 This option allows you to set the base address of the kernel virtual
805 area used to map high memory pages. This can be useful in
806 optimizing the layout of kernel virtual memory.
808 Say N here unless you know what you are doing.
811 hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
814 config LOWMEM_SIZE_BOOL
815 bool "Set maximum low memory"
816 depends on ADVANCED_OPTIONS
818 This option allows you to set the maximum amount of memory which
819 will be used as "low memory", that is, memory which the kernel can
820 access directly, without having to set up a kernel virtual mapping.
821 This can be useful in optimizing the layout of kernel virtual
824 Say N here unless you know what you are doing.
827 hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
830 config KERNEL_START_BOOL
831 bool "Set custom kernel base address"
832 depends on ADVANCED_OPTIONS
834 This option allows you to set the kernel virtual address at which
835 the kernel will map low memory (the kernel image will be linked at
836 this address). This can be useful in optimizing the virtual memory
837 layout of the system.
839 Say N here unless you know what you are doing.
842 hex "Virtual address of kernel base" if KERNEL_START_BOOL
845 config TASK_SIZE_BOOL
846 bool "Set custom user task size"
847 depends on ADVANCED_OPTIONS
849 This option allows you to set the amount of virtual address space
850 allocated to user tasks. This can be useful in optimizing the
851 virtual memory layout of the system.
853 Say N here unless you know what you are doing.
856 hex "Size of user task space" if TASK_SIZE_BOOL
859 config CONSISTENT_START_BOOL
860 bool "Set custom consistent memory pool address"
861 depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
863 This option allows you to set the base virtual address
864 of the the consistent memory pool. This pool of virtual
865 memory is used to make consistent memory allocations.
867 config CONSISTENT_START
868 hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
869 default "0xff100000" if NOT_COHERENT_CACHE
871 config CONSISTENT_SIZE_BOOL
872 bool "Set custom consistent memory pool size"
873 depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
875 This option allows you to set the size of the the
876 consistent memory pool. This pool of virtual memory
877 is used to make consistent memory allocations.
879 config CONSISTENT_SIZE
880 hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
881 default "0x00200000" if NOT_COHERENT_CACHE
883 config BOOT_LOAD_BOOL
884 bool "Set the boot link/load address"
885 depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
887 This option allows you to set the initial load address of the zImage
888 or zImage.initrd file. This can be useful if you are on a board
889 which has a small amount of memory.
891 Say N here unless you know what you are doing.
894 hex "Link/load address for booting" if BOOT_LOAD_BOOL
895 default "0x00400000" if 40x || 8xx || 8260
896 default "0x01000000" if 44x
900 bool "Pinned Kernel TLBs (860 ONLY)"
901 depends on ADVANCED_OPTIONS && 8xx
907 default "0xc000000000000000"
912 source "drivers/Kconfig"
916 # XXX source "arch/ppc/8xx_io/Kconfig"
918 # XXX source "arch/ppc/8260_io/Kconfig"
920 source "arch/powerpc/platforms/iseries/Kconfig"
924 menu "Instrumentation Support"
925 depends on EXPERIMENTAL
927 source "arch/powerpc/oprofile/Kconfig"
930 bool "Kprobes (EXPERIMENTAL)"
933 Kprobes allows you to trap at almost any kernel address and
934 execute a callback function. register_kprobe() establishes
935 a probepoint and specifies the callback. Kprobes is useful
936 for kernel debugging, non-intrusive instrumentation and testing.
937 If in doubt, say "N".
940 source "arch/powerpc/Kconfig.debug"
942 source "security/Kconfig"
946 depends on COMPAT && KEYS
949 source "crypto/Kconfig"