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