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