Pull button into test branch
[sfrench/cifs-2.6.git] / arch / powerpc / Kconfig
1 # For a description of the syntax of this configuration file,
2 # see Documentation/kbuild/kconfig-language.txt.
3 #
4
5 mainmenu "Linux/PowerPC Kernel Configuration"
6
7 config PPC64
8         bool "64-bit kernel"
9         default n
10         help
11           This option selects whether a 32-bit or a 64-bit kernel
12           will be built.
13
14 config PPC32
15         bool
16         default y if !PPC64
17
18 config 64BIT
19         bool
20         default y if PPC64
21
22 config PPC_MERGE
23         def_bool y
24
25 config MMU
26         bool
27         default y
28
29 config GENERIC_HARDIRQS
30         bool
31         default y
32
33 config IRQ_PER_CPU
34         bool
35         default y
36
37 config RWSEM_GENERIC_SPINLOCK
38         bool
39
40 config RWSEM_XCHGADD_ALGORITHM
41         bool
42         default y
43
44 config ARCH_HAS_ILOG2_U32
45         bool
46         default y
47
48 config ARCH_HAS_ILOG2_U64
49         bool
50         default y if 64BIT
51
52 config GENERIC_HWEIGHT
53         bool
54         default y
55
56 config GENERIC_CALIBRATE_DELAY
57         bool
58         default y
59
60 config GENERIC_FIND_NEXT_BIT
61         bool
62         default y
63
64 config PPC
65         bool
66         default y
67
68 config EARLY_PRINTK
69         bool
70         default y
71
72 config COMPAT
73         bool
74         default y if PPC64
75
76 config SYSVIPC_COMPAT
77         bool
78         depends on COMPAT && SYSVIPC
79         default y
80
81 # All PPC32s use generic nvram driver through ppc_md
82 config GENERIC_NVRAM
83         bool
84         default y if PPC32
85
86 config SCHED_NO_NO_OMIT_FRAME_POINTER
87         bool
88         default y
89
90 config ARCH_MAY_HAVE_PC_FDC
91         bool
92         default y
93
94 config PPC_OF
95         def_bool y
96
97 config PPC_UDBG_16550
98         bool
99         default n
100
101 config GENERIC_TBSYNC
102         bool
103         default y if PPC32 && SMP
104         default n
105
106 config AUDIT_ARCH
107         bool
108         default y
109
110 config GENERIC_BUG
111         bool
112         default y
113         depends on BUG
114
115 config DEFAULT_UIMAGE
116         bool
117         help
118           Used to allow a board to specify it wants a uImage built by default
119         default n
120
121 menu "Processor support"
122 choice
123         prompt "Processor Type"
124         depends on PPC32
125         default 6xx
126
127 config CLASSIC32
128         bool "52xx/6xx/7xx/74xx"
129         select PPC_FPU
130         select 6xx
131         help
132           There are four families of PowerPC chips supported.  The more common
133           types (601, 603, 604, 740, 750, 7400), the Motorola embedded
134           versions (821, 823, 850, 855, 860, 52xx, 82xx, 83xx), the AMCC
135           embedded versions (403 and 405) and the high end 64 bit Power
136           processors (POWER 3, POWER4, and IBM PPC970 also known as G5).
137
138           This option is the catch-all for 6xx types, including some of the
139           embedded versions.  Unless there is see an option for the specific
140           chip family you are using, you want this option.
141           
142           You do not want this if you are building a kernel for a 64 bit
143           IBM RS/6000 or an Apple G5, choose 6xx.
144           
145           If unsure, select this option
146           
147           Note that the kernel runs in 32-bit mode even on 64-bit chips.
148
149 config PPC_82xx
150         bool "Freescale 82xx"
151         select 6xx
152         select PPC_FPU
153
154 config PPC_83xx
155         bool "Freescale 83xx"
156         select 6xx
157         select FSL_SOC
158         select 83xx
159         select PPC_FPU
160
161 config PPC_85xx
162         bool "Freescale 85xx"
163         select E500
164         select FSL_SOC
165         select 85xx
166
167 config PPC_86xx
168         bool "Freescale 86xx"
169         select 6xx
170         select FSL_SOC
171         select PPC_FPU
172         select ALTIVEC
173         help
174           The Freescale E600 SoCs have 74xx cores.
175
176 config 40x
177         bool "AMCC 40x"
178         select PPC_DCR_NATIVE
179
180 config 44x
181         bool "AMCC 44x"
182         select PPC_DCR_NATIVE
183
184 config 8xx
185         bool "Freescale 8xx"
186
187 config E200
188         bool "Freescale e200"
189
190 endchoice
191
192 config POWER4_ONLY
193         bool "Optimize for POWER4"
194         depends on PPC64
195         default n
196         ---help---
197           Cause the compiler to optimize for POWER4/POWER5/PPC970 processors.
198           The resulting binary will not work on POWER3 or RS64 processors
199           when compiled with binutils 2.15 or later.
200
201 config POWER3
202         bool
203         depends on PPC64
204         default y if !POWER4_ONLY
205
206 config POWER4
207         depends on PPC64
208         def_bool y
209
210 config 6xx
211         bool
212
213 # this is temp to handle compat with arch=ppc
214 config 83xx
215         bool
216
217 # this is temp to handle compat with arch=ppc
218 config 85xx
219         bool
220
221 config E500
222         bool
223
224 config PPC_FPU
225         bool
226         default y if PPC64
227
228 config PPC_DCR_NATIVE
229         bool
230         default n
231
232 config PPC_DCR_MMIO
233         bool
234         default n
235
236 config PPC_DCR
237         bool
238         depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
239         default y
240
241 config PPC_OF_PLATFORM_PCI
242         bool
243         depends on PPC64 # not supported on 32 bits yet
244         default n
245
246 config BOOKE
247         bool
248         depends on E200 || E500
249         default y
250
251 config FSL_BOOKE
252         bool
253         depends on E200 || E500
254         default y
255
256 config PTE_64BIT
257         bool
258         depends on 44x || E500
259         default y if 44x
260         default y if E500 && PHYS_64BIT
261
262 config PHYS_64BIT
263         bool 'Large physical address support' if E500
264         depends on 44x || E500
265         select RESOURCES_64BIT
266         default y if 44x
267         ---help---
268           This option enables kernel support for larger than 32-bit physical
269           addresses.  This features is not be available on all e500 cores.
270
271           If in doubt, say N here.
272
273 config ALTIVEC
274         bool "AltiVec Support"
275         depends on CLASSIC32 || POWER4
276         ---help---
277           This option enables kernel support for the Altivec extensions to the
278           PowerPC processor. The kernel currently supports saving and restoring
279           altivec registers, and turning on the 'altivec enable' bit so user
280           processes can execute altivec instructions.
281
282           This option is only usefully if you have a processor that supports
283           altivec (G4, otherwise known as 74xx series), but does not have
284           any affect on a non-altivec cpu (it does, however add code to the
285           kernel).
286
287           If in doubt, say Y here.
288
289 config SPE
290         bool "SPE Support"
291         depends on E200 || E500
292         default y
293         ---help---
294           This option enables kernel support for the Signal Processing
295           Extensions (SPE) to the PowerPC processor. The kernel currently
296           supports saving and restoring SPE registers, and turning on the
297           'spe enable' bit so user processes can execute SPE instructions.
298
299           This option is only useful if you have a processor that supports
300           SPE (e500, otherwise known as 85xx series), but does not have any
301           effect on a non-spe cpu (it does, however add code to the kernel).
302
303           If in doubt, say Y here.
304
305 config PPC_STD_MMU
306         bool
307         depends on 6xx || POWER3 || POWER4 || PPC64
308         default y
309
310 config PPC_STD_MMU_32
311         def_bool y
312         depends on PPC_STD_MMU && PPC32
313
314 config VIRT_CPU_ACCOUNTING
315         bool "Deterministic task and CPU time accounting"
316         depends on PPC64
317         default y
318         help
319           Select this option to enable more accurate task and CPU time
320           accounting.  This is done by reading a CPU counter on each
321           kernel entry and exit and on transitions within the kernel
322           between system, softirq and hardirq state, so there is a
323           small performance impact.  This also enables accounting of
324           stolen time on logically-partitioned systems running on
325           IBM POWER5-based machines.
326
327           If in doubt, say Y here.
328
329 config SMP
330         depends on PPC_STD_MMU
331         bool "Symmetric multi-processing support"
332         ---help---
333           This enables support for systems with more than one CPU. If you have
334           a system with only one CPU, say N. If you have a system with more
335           than one CPU, say Y.  Note that the kernel does not currently
336           support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
337           since they have inadequate hardware support for multiprocessor
338           operation.
339
340           If you say N here, the kernel will run on single and multiprocessor
341           machines, but will use only one CPU of a multiprocessor machine. If
342           you say Y here, the kernel will run on single-processor machines.
343           On a single-processor machine, the kernel will run faster if you say
344           N here.
345
346           If you don't know what to do here, say N.
347
348 config NR_CPUS
349         int "Maximum number of CPUs (2-128)"
350         range 2 128
351         depends on SMP
352         default "32" if PPC64
353         default "4"
354
355 config NOT_COHERENT_CACHE
356         bool
357         depends on 4xx || 8xx || E200
358         default y
359 endmenu
360
361 source "init/Kconfig"
362
363 menu "Platform support"
364         depends on PPC64 || CLASSIC32
365
366 choice
367         prompt "Machine type"
368         default PPC_MULTIPLATFORM
369
370 config PPC_MULTIPLATFORM
371         bool "Generic desktop/server/laptop"
372         help
373           Select this option if configuring for an IBM pSeries or
374           RS/6000 machine, an Apple machine, or a PReP, CHRP,
375           Maple or Cell-based machine.
376
377 config EMBEDDED6xx
378         bool "Embedded 6xx/7xx/7xxx-based board"
379         depends on PPC32 && (BROKEN||BROKEN_ON_SMP)
380
381 config APUS
382         bool "Amiga-APUS"
383         depends on PPC32 && BROKEN
384         help
385           Select APUS if configuring for a PowerUP Amiga.
386           More information is available at:
387           <http://linux-apus.sourceforge.net/>.
388 endchoice
389
390 config QUICC_ENGINE
391         bool
392         depends on PPC_MPC836x || PPC_MPC832x
393         default y
394         help
395           The QUICC Engine (QE) is a new generation of communications
396           coprocessors on Freescale embedded CPUs (akin to CPM in older chips).
397           Selecting this option means that you wish to build a kernel
398           for a machine with a QE coprocessor.
399
400 config PPC_PSERIES
401         depends on PPC_MULTIPLATFORM && PPC64
402         bool "IBM pSeries & new (POWER5-based) iSeries"
403         select MPIC
404         select PPC_I8259
405         select PPC_RTAS
406         select RTAS_ERROR_LOGGING
407         select PPC_UDBG_16550
408         select PPC_NATIVE
409         default y
410
411 config PPC_ISERIES
412         bool "IBM Legacy iSeries"
413         depends on PPC_MULTIPLATFORM && PPC64
414         select PPC_INDIRECT_IO
415
416 config PPC_CHRP
417         bool "Common Hardware Reference Platform (CHRP) based machines"
418         depends on PPC_MULTIPLATFORM && PPC32
419         select MPIC
420         select PPC_I8259
421         select PPC_INDIRECT_PCI
422         select PPC_RTAS
423         select PPC_MPC106
424         select PPC_UDBG_16550
425         select PPC_NATIVE
426         default y
427
428 config PPC_MPC52xx
429         bool
430         default n
431
432 config PPC_EFIKA
433         bool "bPlan Efika 5k2. MPC5200B based computer"
434         depends on PPC_MULTIPLATFORM && PPC32
435         select PPC_RTAS
436         select RTAS_PROC
437         select PPC_MPC52xx
438         select PPC_NATIVE
439         default y
440
441 config PPC_LITE5200
442         bool "Freescale Lite5200 Eval Board"
443         depends on PPC_MULTIPLATFORM && PPC32
444         select PPC_MPC52xx
445         default n
446
447 config PPC_PMAC
448         bool "Apple PowerMac based machines"
449         depends on PPC_MULTIPLATFORM
450         select MPIC
451         select PPC_INDIRECT_PCI if PPC32
452         select PPC_MPC106 if PPC32
453         select PPC_NATIVE
454         default y
455
456 config PPC_PMAC64
457         bool
458         depends on PPC_PMAC && POWER4
459         select MPIC
460         select U3_DART
461         select MPIC_BROKEN_U3
462         select GENERIC_TBSYNC
463         select PPC_970_NAP
464         default y
465
466 config PPC_PREP
467         bool "PowerPC Reference Platform (PReP) based machines"
468         depends on PPC_MULTIPLATFORM && PPC32 && BROKEN
469         select MPIC
470         select PPC_I8259
471         select PPC_INDIRECT_PCI
472         select PPC_UDBG_16550
473         select PPC_NATIVE
474         default y
475
476 config PPC_MAPLE
477         depends on PPC_MULTIPLATFORM && PPC64
478         bool "Maple 970FX Evaluation Board"
479         select MPIC
480         select U3_DART
481         select MPIC_BROKEN_U3
482         select GENERIC_TBSYNC
483         select PPC_UDBG_16550
484         select PPC_970_NAP
485         select PPC_NATIVE
486         select PPC_RTAS
487         default n
488         help
489           This option enables support for the Maple 970FX Evaluation Board.
490           For more information, refer to <http://www.970eval.com>
491
492 config PPC_PASEMI
493         depends on PPC_MULTIPLATFORM && PPC64
494         bool "PA Semi SoC-based platforms"
495         default n
496         select MPIC
497         select PPC_UDBG_16550
498         select GENERIC_TBSYNC
499         select PPC_NATIVE
500         help
501           This option enables support for PA Semi's PWRficient line
502           of SoC processors, including PA6T-1682M
503
504 config PPC_CELL
505         bool
506         default n
507
508 config PPC_CELL_NATIVE
509         bool
510         select PPC_CELL
511         select PPC_DCR_MMIO
512         select PPC_OF_PLATFORM_PCI
513         select PPC_INDIRECT_IO
514         select PPC_NATIVE
515         select MPIC
516         default n
517
518 config PPC_IBM_CELL_BLADE
519         bool "IBM Cell Blade"
520         depends on PPC_MULTIPLATFORM && PPC64
521         select PPC_CELL_NATIVE
522         select PPC_RTAS
523         select MMIO_NVRAM
524         select PPC_UDBG_16550
525         select UDBG_RTAS_CONSOLE
526
527 config PPC_PS3
528         bool "Sony PS3"
529         depends on PPC_MULTIPLATFORM && PPC64
530         select PPC_CELL
531         help
532           This option enables support for the Sony PS3 game console
533           and other platforms using the PS3 hypervisor.
534
535 config PPC_NATIVE
536         bool
537         depends on PPC_MULTIPLATFORM
538         help
539           Support for running natively on the hardware, i.e. without
540           a hypervisor. This option is not user-selectable but should
541           be selected by all platforms that need it.
542
543 config UDBG_RTAS_CONSOLE
544         bool "RTAS based debug console"
545         depends on PPC_RTAS
546         default n
547
548 config XICS
549         depends on PPC_PSERIES
550         bool
551         default y
552
553 config U3_DART
554         bool 
555         depends on PPC_MULTIPLATFORM && PPC64
556         default n
557
558 config PPC_RTAS
559         bool
560         default n
561
562 config RTAS_ERROR_LOGGING
563         bool
564         depends on PPC_RTAS
565         default n
566
567 config RTAS_PROC
568         bool "Proc interface to RTAS"
569         depends on PPC_RTAS
570         default y
571
572 config RTAS_FLASH
573         tristate "Firmware flash interface"
574         depends on PPC64 && RTAS_PROC
575
576 config MMIO_NVRAM
577         bool
578         default n
579
580 config MPIC_BROKEN_U3
581         bool
582         depends on PPC_MAPLE
583         default y
584
585 config IBMVIO
586         depends on PPC_PSERIES || PPC_ISERIES
587         bool
588         default y
589
590 config IBMEBUS
591         depends on PPC_PSERIES
592         bool "Support for GX bus based adapters"
593         help
594           Bus device driver for GX bus based adapters.
595
596 config PPC_MPC106
597         bool
598         default n
599
600 config PPC_970_NAP
601         bool
602         default n
603
604 config PPC_INDIRECT_IO
605         bool
606         select GENERIC_IOMAP
607         default n
608
609 config GENERIC_IOMAP
610         bool
611         default n
612
613 source "drivers/cpufreq/Kconfig"
614
615 config CPU_FREQ_PMAC
616         bool "Support for Apple PowerBooks"
617         depends on CPU_FREQ && ADB_PMU && PPC32
618         select CPU_FREQ_TABLE
619         help
620           This adds support for frequency switching on Apple PowerBooks,
621           this currently includes some models of iBook & Titanium
622           PowerBook.
623
624 config CPU_FREQ_PMAC64
625         bool "Support for some Apple G5s"
626         depends on CPU_FREQ && PPC64
627         select CPU_FREQ_TABLE
628         help
629           This adds support for frequency switching on Apple iMac G5,
630           and some of the more recent desktop G5 machines as well.
631
632 config PPC601_SYNC_FIX
633         bool "Workarounds for PPC601 bugs"
634         depends on 6xx && (PPC_PREP || PPC_PMAC)
635         help
636           Some versions of the PPC601 (the first PowerPC chip) have bugs which
637           mean that extra synchronization instructions are required near
638           certain instructions, typically those that make major changes to the
639           CPU state.  These extra instructions reduce performance slightly.
640           If you say N here, these extra instructions will not be included,
641           resulting in a kernel which will run faster but may not run at all
642           on some systems with the PPC601 chip.
643
644           If in doubt, say Y here.
645
646 config TAU
647         bool "On-chip CPU temperature sensor support"
648         depends on 6xx
649         help
650           G3 and G4 processors have an on-chip temperature sensor called the
651           'Thermal Assist Unit (TAU)', which, in theory, can measure the on-die
652           temperature within 2-4 degrees Celsius. This option shows the current
653           on-die temperature in /proc/cpuinfo if the cpu supports it.
654
655           Unfortunately, on some chip revisions, this sensor is very inaccurate
656           and in many cases, does not work at all, so don't assume the cpu
657           temp is actually what /proc/cpuinfo says it is.
658
659 config TAU_INT
660         bool "Interrupt driven TAU driver (DANGEROUS)"
661         depends on TAU
662         ---help---
663           The TAU supports an interrupt driven mode which causes an interrupt
664           whenever the temperature goes out of range. This is the fastest way
665           to get notified the temp has exceeded a range. With this option off,
666           a timer is used to re-check the temperature periodically.
667
668           However, on some cpus it appears that the TAU interrupt hardware
669           is buggy and can cause a situation which would lead unexplained hard
670           lockups.
671
672           Unless you are extending the TAU driver, or enjoy kernel/hardware
673           debugging, leave this option off.
674
675 config TAU_AVERAGE
676         bool "Average high and low temp"
677         depends on TAU
678         ---help---
679           The TAU hardware can compare the temperature to an upper and lower
680           bound.  The default behavior is to show both the upper and lower
681           bound in /proc/cpuinfo. If the range is large, the temperature is
682           either changing a lot, or the TAU hardware is broken (likely on some
683           G4's). If the range is small (around 4 degrees), the temperature is
684           relatively stable.  If you say Y here, a single temperature value,
685           halfway between the upper and lower bounds, will be reported in
686           /proc/cpuinfo.
687
688           If in doubt, say N here.
689
690 endmenu
691
692 source arch/powerpc/platforms/embedded6xx/Kconfig
693 source arch/powerpc/platforms/4xx/Kconfig
694 source arch/powerpc/platforms/82xx/Kconfig
695 source arch/powerpc/platforms/83xx/Kconfig
696 source arch/powerpc/platforms/85xx/Kconfig
697 source arch/powerpc/platforms/86xx/Kconfig
698 source arch/powerpc/platforms/8xx/Kconfig
699 source arch/powerpc/platforms/cell/Kconfig
700 source arch/powerpc/platforms/ps3/Kconfig
701
702 menu "Kernel options"
703
704 config HIGHMEM
705         bool "High memory support"
706         depends on PPC32
707
708 source kernel/Kconfig.hz
709 source kernel/Kconfig.preempt
710 source "fs/Kconfig.binfmt"
711
712 # We optimistically allocate largepages from the VM, so make the limit
713 # large enough (16MB). This badly named config option is actually
714 # max order + 1
715 config FORCE_MAX_ZONEORDER
716         int
717         depends on PPC64
718         default "9" if PPC_64K_PAGES
719         default "13"
720
721 config MATH_EMULATION
722         bool "Math emulation"
723         depends on 4xx || 8xx || E200 || PPC_83xx || E500
724         ---help---
725           Some PowerPC chips designed for embedded applications do not have
726           a floating-point unit and therefore do not implement the
727           floating-point instructions in the PowerPC instruction set.  If you
728           say Y here, the kernel will include code to emulate a floating-point
729           unit, which will allow programs that use floating-point
730           instructions to run.
731
732 config IOMMU_VMERGE
733         bool "Enable IOMMU virtual merging (EXPERIMENTAL)"
734         depends on EXPERIMENTAL && PPC64
735         default n
736         help
737           Cause IO segments sent to a device for DMA to be merged virtually
738           by the IOMMU when they happen to have been allocated contiguously.
739           This doesn't add pressure to the IOMMU allocator. However, some
740           drivers don't support getting large merged segments coming back
741           from *_map_sg(). Say Y if you know the drivers you are using are
742           properly handling this case.
743
744 config HOTPLUG_CPU
745         bool "Support for enabling/disabling CPUs"
746         depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
747         ---help---
748           Say Y here to be able to disable and re-enable individual
749           CPUs at runtime on SMP machines.
750
751           Say N if you are unsure.
752
753 config ARCH_ENABLE_MEMORY_HOTPLUG
754         def_bool y
755
756 config KEXEC
757         bool "kexec system call (EXPERIMENTAL)"
758         depends on PPC_MULTIPLATFORM && EXPERIMENTAL
759         help
760           kexec is a system call that implements the ability to shutdown your
761           current kernel, and to start another kernel.  It is like a reboot
762           but it is independent of the system firmware.   And like a reboot
763           you can start any kernel with it, not just Linux.
764
765           The name comes from the similarity to the exec system call.
766
767           It is an ongoing process to be certain the hardware in a machine
768           is properly shutdown, so do not be surprised if this code does not
769           initially work for you.  It may help to enable device hotplugging
770           support.  As of this writing the exact hardware interface is
771           strongly in flux, so no good recommendation can be made.
772
773 config CRASH_DUMP
774         bool "Build a kdump crash kernel (EXPERIMENTAL)"
775         depends on PPC_MULTIPLATFORM && PPC64 && EXPERIMENTAL
776         help
777           Build a kernel suitable for use as a kdump capture kernel.
778           The kernel will be linked at a different address than normal, and
779           so can only be used for Kdump.
780
781           Don't change this unless you know what you are doing.
782
783 config EMBEDDEDBOOT
784         bool
785         depends on 8xx || 8260
786         default y
787
788 config PC_KEYBOARD
789         bool "PC PS/2 style Keyboard"
790         depends on 4xx || CPM2
791
792 config PPCBUG_NVRAM
793         bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
794         default y if PPC_PREP
795
796 config IRQ_ALL_CPUS
797         bool "Distribute interrupts on all CPUs by default"
798         depends on SMP && !MV64360
799         help
800           This option gives the kernel permission to distribute IRQs across
801           multiple CPUs.  Saying N here will route all IRQs to the first
802           CPU.  Generally saying Y is safe, although some problems have been
803           reported with SMP Power Macintoshes with this option enabled.
804
805 source "arch/powerpc/platforms/pseries/Kconfig"
806
807 config NUMA
808         bool "NUMA support"
809         depends on PPC64
810         default y if SMP && PPC_PSERIES
811
812 config NODES_SHIFT
813         int
814         default "4"
815         depends on NEED_MULTIPLE_NODES
816
817 config ARCH_SELECT_MEMORY_MODEL
818         def_bool y
819         depends on PPC64
820
821 config ARCH_FLATMEM_ENABLE
822         def_bool y
823         depends on (PPC64 && !NUMA) || PPC32
824
825 config ARCH_SPARSEMEM_ENABLE
826         def_bool y
827         depends on PPC64
828
829 config ARCH_SPARSEMEM_DEFAULT
830         def_bool y
831         depends on (SMP && PPC_PSERIES) || PPC_CELL
832
833 config ARCH_POPULATES_NODE_MAP
834         def_bool y
835
836 source "mm/Kconfig"
837
838 config ARCH_MEMORY_PROBE
839         def_bool y
840         depends on MEMORY_HOTPLUG
841
842 # Some NUMA nodes have memory ranges that span
843 # other nodes.  Even though a pfn is valid and
844 # between a node's start and end pfns, it may not
845 # reside on that node.  See memmap_init_zone()
846 # for details.
847 config NODES_SPAN_OTHER_NODES
848         def_bool y
849         depends on NEED_MULTIPLE_NODES
850
851 config PPC_64K_PAGES
852         bool "64k page size"
853         depends on PPC64
854         help
855           This option changes the kernel logical page size to 64k. On machines
856           without processor support for 64k pages, the kernel will simulate
857           them by loading each individual 4k page on demand transparently,
858           while on hardware with such support, it will be used to map
859           normal application pages.
860
861 config SCHED_SMT
862         bool "SMT (Hyperthreading) scheduler support"
863         depends on PPC64 && SMP
864         help
865           SMT scheduler support improves the CPU scheduler's decision making
866           when dealing with POWER5 cpus at a cost of slightly increased
867           overhead in some places. If unsure say N here.
868
869 config PROC_DEVICETREE
870         bool "Support for device tree in /proc"
871         depends on PROC_FS
872         help
873           This option adds a device-tree directory under /proc which contains
874           an image of the device tree that the kernel copies from Open
875           Firmware or other boot firmware. If unsure, say Y here.
876
877 source "arch/powerpc/platforms/prep/Kconfig"
878
879 config CMDLINE_BOOL
880         bool "Default bootloader kernel arguments"
881
882 config CMDLINE
883         string "Initial kernel command string"
884         depends on CMDLINE_BOOL
885         default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
886         help
887           On some platforms, there is currently no way for the boot loader to
888           pass arguments to the kernel. For these platforms, you can supply
889           some command-line options at build time by entering them here.  In
890           most cases you will need to specify the root device here.
891
892 if !44x || BROKEN
893 source kernel/power/Kconfig
894 endif
895
896 config SECCOMP
897         bool "Enable seccomp to safely compute untrusted bytecode"
898         depends on PROC_FS
899         default y
900         help
901           This kernel feature is useful for number crunching applications
902           that may need to compute untrusted bytecode during their
903           execution. By using pipes or other transports made available to
904           the process as file descriptors supporting the read/write
905           syscalls, it's possible to isolate those applications in
906           their own address space using seccomp. Once seccomp is
907           enabled via /proc/<pid>/seccomp, it cannot be disabled
908           and the task is only allowed to execute a few safe syscalls
909           defined by each seccomp mode.
910
911           If unsure, say Y. Only embedded should say N here.
912
913 endmenu
914
915 config ISA_DMA_API
916         bool
917         default y
918
919 menu "Bus options"
920
921 config ISA
922         bool "Support for ISA-bus hardware"
923         depends on PPC_PREP || PPC_CHRP
924         select PPC_I8259
925         help
926           Find out whether you have ISA slots on your motherboard.  ISA is the
927           name of a bus system, i.e. the way the CPU talks to the other stuff
928           inside your box.  If you have an Apple machine, say N here; if you
929           have an IBM RS/6000 or pSeries machine or a PReP machine, say Y.  If
930           you have an embedded board, consult your board documentation.
931
932 config GENERIC_ISA_DMA
933         bool
934         depends on PPC64 || POWER4 || 6xx && !CPM2
935         default y
936
937 config MPIC
938         bool
939         default n
940
941 config MPIC_WEIRD
942         bool
943         default n
944
945 config PPC_I8259
946         bool
947         default n
948
949 config PPC_INDIRECT_PCI
950         bool
951         depends on PCI
952         default y if 40x || 44x
953         default n
954
955 config EISA
956         bool
957
958 config SBUS
959         bool
960
961 config FSL_SOC
962         bool
963
964 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
965 config MCA
966         bool
967
968 config PCI
969         bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
970                 || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES) || MPC7448HPC2 || PPC_PS3
971         default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx \
972                 && !PPC_85xx && !PPC_86xx
973         default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
974         default PCI_QSPAN if !4xx && !CPM2 && 8xx
975         help
976           Find out whether your system includes a PCI bus. PCI is the name of
977           a bus system, i.e. the way the CPU talks to the other stuff inside
978           your box.  If you say Y here, the kernel will include drivers and
979           infrastructure code to support PCI bus devices.
980
981 config PCI_DOMAINS
982         bool
983         default PCI
984
985 config PCI_QSPAN
986         bool "QSpan PCI"
987         depends on !4xx && !CPM2 && 8xx
988         select PPC_I8259
989         help
990           Say Y here if you have a system based on a Motorola 8xx-series
991           embedded processor with a QSPAN PCI interface, otherwise say N.
992
993 config PCI_8260
994         bool
995         depends on PCI && 8260
996         select PPC_INDIRECT_PCI
997         default y
998
999 config 8260_PCI9
1000         bool "Enable workaround for MPC826x erratum PCI 9"
1001         depends on PCI_8260 && !ADS8272
1002         default y
1003
1004 choice
1005         prompt "IDMA channel for PCI 9 workaround"
1006         depends on 8260_PCI9
1007
1008 config 8260_PCI9_IDMA1
1009         bool "IDMA1"
1010
1011 config 8260_PCI9_IDMA2
1012         bool "IDMA2"
1013
1014 config 8260_PCI9_IDMA3
1015         bool "IDMA3"
1016
1017 config 8260_PCI9_IDMA4
1018         bool "IDMA4"
1019
1020 endchoice
1021
1022 source "drivers/pci/pcie/Kconfig"
1023
1024 source "drivers/pci/Kconfig"
1025
1026 source "drivers/pcmcia/Kconfig"
1027
1028 source "drivers/pci/hotplug/Kconfig"
1029
1030 endmenu
1031
1032 menu "Advanced setup"
1033         depends on PPC32
1034
1035 config ADVANCED_OPTIONS
1036         bool "Prompt for advanced kernel configuration options"
1037         help
1038           This option will enable prompting for a variety of advanced kernel
1039           configuration options.  These options can cause the kernel to not
1040           work if they are set incorrectly, but can be used to optimize certain
1041           aspects of kernel memory management.
1042
1043           Unless you know what you are doing, say N here.
1044
1045 comment "Default settings for advanced configuration options are used"
1046         depends on !ADVANCED_OPTIONS
1047
1048 config HIGHMEM_START_BOOL
1049         bool "Set high memory pool address"
1050         depends on ADVANCED_OPTIONS && HIGHMEM
1051         help
1052           This option allows you to set the base address of the kernel virtual
1053           area used to map high memory pages.  This can be useful in
1054           optimizing the layout of kernel virtual memory.
1055
1056           Say N here unless you know what you are doing.
1057
1058 config HIGHMEM_START
1059         hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
1060         default "0xfe000000"
1061
1062 config LOWMEM_SIZE_BOOL
1063         bool "Set maximum low memory"
1064         depends on ADVANCED_OPTIONS
1065         help
1066           This option allows you to set the maximum amount of memory which
1067           will be used as "low memory", that is, memory which the kernel can
1068           access directly, without having to set up a kernel virtual mapping.
1069           This can be useful in optimizing the layout of kernel virtual
1070           memory.
1071
1072           Say N here unless you know what you are doing.
1073
1074 config LOWMEM_SIZE
1075         hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
1076         default "0x30000000"
1077
1078 config KERNEL_START_BOOL
1079         bool "Set custom kernel base address"
1080         depends on ADVANCED_OPTIONS
1081         help
1082           This option allows you to set the kernel virtual address at which
1083           the kernel will map low memory (the kernel image will be linked at
1084           this address).  This can be useful in optimizing the virtual memory
1085           layout of the system.
1086
1087           Say N here unless you know what you are doing.
1088
1089 config KERNEL_START
1090         hex "Virtual address of kernel base" if KERNEL_START_BOOL
1091         default "0xc0000000"
1092
1093 config TASK_SIZE_BOOL
1094         bool "Set custom user task size"
1095         depends on ADVANCED_OPTIONS
1096         help
1097           This option allows you to set the amount of virtual address space
1098           allocated to user tasks.  This can be useful in optimizing the
1099           virtual memory layout of the system.
1100
1101           Say N here unless you know what you are doing.
1102
1103 config TASK_SIZE
1104         hex "Size of user task space" if TASK_SIZE_BOOL
1105         default "0x80000000"
1106
1107 config CONSISTENT_START_BOOL
1108         bool "Set custom consistent memory pool address"
1109         depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
1110         help
1111           This option allows you to set the base virtual address
1112           of the consistent memory pool.  This pool of virtual
1113           memory is used to make consistent memory allocations.
1114
1115 config CONSISTENT_START
1116         hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
1117         default "0xff100000" if NOT_COHERENT_CACHE
1118
1119 config CONSISTENT_SIZE_BOOL
1120         bool "Set custom consistent memory pool size"
1121         depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
1122         help
1123           This option allows you to set the size of the
1124           consistent memory pool.  This pool of virtual memory
1125           is used to make consistent memory allocations.
1126
1127 config CONSISTENT_SIZE
1128         hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
1129         default "0x00200000" if NOT_COHERENT_CACHE
1130
1131 config BOOT_LOAD_BOOL
1132         bool "Set the boot link/load address"
1133         depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
1134         help
1135           This option allows you to set the initial load address of the zImage
1136           or zImage.initrd file.  This can be useful if you are on a board
1137           which has a small amount of memory.
1138
1139           Say N here unless you know what you are doing.
1140
1141 config BOOT_LOAD
1142         hex "Link/load address for booting" if BOOT_LOAD_BOOL
1143         default "0x00400000" if 40x || 8xx || 8260
1144         default "0x01000000" if 44x
1145         default "0x00800000"
1146
1147 config PIN_TLB
1148         bool "Pinned Kernel TLBs (860 ONLY)"
1149         depends on ADVANCED_OPTIONS && 8xx
1150 endmenu
1151
1152 if PPC64
1153 config KERNEL_START
1154         hex
1155         default "0xc000000000000000"
1156 endif
1157
1158 source "net/Kconfig"
1159
1160 source "drivers/Kconfig"
1161
1162 source "fs/Kconfig"
1163
1164 # XXX source "arch/ppc/8xx_io/Kconfig"
1165
1166 # XXX source "arch/ppc/8260_io/Kconfig"
1167
1168 source "arch/powerpc/sysdev/qe_lib/Kconfig"
1169
1170 source "arch/powerpc/platforms/iseries/Kconfig"
1171
1172 source "lib/Kconfig"
1173
1174 menu "Instrumentation Support"
1175         depends on EXPERIMENTAL
1176
1177 source "arch/powerpc/oprofile/Kconfig"
1178
1179 config KPROBES
1180         bool "Kprobes (EXPERIMENTAL)"
1181         depends on PPC64 && KALLSYMS && EXPERIMENTAL && MODULES
1182         help
1183           Kprobes allows you to trap at almost any kernel address and
1184           execute a callback function.  register_kprobe() establishes
1185           a probepoint and specifies the callback.  Kprobes is useful
1186           for kernel debugging, non-intrusive instrumentation and testing.
1187           If in doubt, say "N".
1188 endmenu
1189
1190 source "arch/powerpc/Kconfig.debug"
1191
1192 source "security/Kconfig"
1193
1194 config KEYS_COMPAT
1195         bool
1196         depends on COMPAT && KEYS
1197         default y
1198
1199 source "crypto/Kconfig"