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