[POWERPC] Implement support for the GPIO LIB API
[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 source "arch/powerpc/platforms/Kconfig.cputype"
8
9 config PPC32
10         bool
11         default y if !PPC64
12
13 config 64BIT
14         bool
15         default y if PPC64
16
17 config WORD_SIZE
18         int
19         default 64 if PPC64
20         default 32 if !PPC64
21
22 config PPC_MERGE
23         def_bool y
24
25 config MMU
26         bool
27         default y
28
29 config GENERIC_CMOS_UPDATE
30         def_bool y
31
32 config GENERIC_TIME
33         def_bool y
34
35 config GENERIC_TIME_VSYSCALL
36         def_bool y
37
38 config GENERIC_CLOCKEVENTS
39         def_bool y
40
41 config GENERIC_HARDIRQS
42         bool
43         default y
44
45 config HAVE_SETUP_PER_CPU_AREA
46         def_bool PPC64
47
48 config IRQ_PER_CPU
49         bool
50         default y
51
52 config RWSEM_GENERIC_SPINLOCK
53         bool
54
55 config RWSEM_XCHGADD_ALGORITHM
56         bool
57         default y
58
59 config GENERIC_LOCKBREAK
60         bool
61         default y
62         depends on SMP && PREEMPT
63
64 config ARCH_HAS_ILOG2_U32
65         bool
66         default y
67
68 config ARCH_HAS_ILOG2_U64
69         bool
70         default y if 64BIT
71
72 config GENERIC_HWEIGHT
73         bool
74         default y
75
76 config GENERIC_CALIBRATE_DELAY
77         bool
78         default y
79
80 config GENERIC_FIND_NEXT_BIT
81         bool
82         default y
83
84 config GENERIC_GPIO
85         bool
86         help
87           Generic GPIO API support
88
89 config ARCH_NO_VIRT_TO_BUS
90         def_bool PPC64
91
92 config PPC
93         bool
94         default y
95         select HAVE_IDE
96         select HAVE_OPROFILE
97         select HAVE_KPROBES
98         select HAVE_KRETPROBES
99         select HAVE_LMB
100
101 config EARLY_PRINTK
102         bool
103         default y
104
105 config COMPAT
106         bool
107         default y if PPC64
108         select COMPAT_BINFMT_ELF
109
110 config SYSVIPC_COMPAT
111         bool
112         depends on COMPAT && SYSVIPC
113         default y
114
115 # All PPC32s use generic nvram driver through ppc_md
116 config GENERIC_NVRAM
117         bool
118         default y if PPC32
119
120 config SCHED_NO_NO_OMIT_FRAME_POINTER
121         bool
122         default y
123
124 config ARCH_MAY_HAVE_PC_FDC
125         bool
126         default !PPC_PSERIES || PCI
127
128 config PPC_OF
129         def_bool y
130
131 config OF
132         def_bool y
133
134 config PPC_UDBG_16550
135         bool
136         default n
137
138 config GENERIC_TBSYNC
139         bool
140         default y if PPC32 && SMP
141         default n
142
143 config AUDIT_ARCH
144         bool
145         default y
146
147 config GENERIC_BUG
148         bool
149         default y
150         depends on BUG
151
152 config SYS_SUPPORTS_APM_EMULATION
153         default y if PMAC_APM_EMU
154         bool
155
156 config DEFAULT_UIMAGE
157         bool
158         help
159           Used to allow a board to specify it wants a uImage built by default
160         default n
161
162 config REDBOOT
163         bool
164
165 config HIBERNATE_32
166         bool
167         depends on (PPC_PMAC && !SMP) || BROKEN
168         default y
169
170 config HIBERNATE_64
171         bool
172         depends on BROKEN || (PPC_PMAC64 && EXPERIMENTAL)
173         default y
174
175 config ARCH_HIBERNATION_POSSIBLE
176         bool
177         depends on (PPC64 && HIBERNATE_64) || (PPC32 && HIBERNATE_32)
178         default y
179
180 config ARCH_SUSPEND_POSSIBLE
181         def_bool y
182         depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200
183
184 config PPC_DCR_NATIVE
185         bool
186         default n
187
188 config PPC_DCR_MMIO
189         bool
190         default n
191
192 config PPC_DCR
193         bool
194         depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
195         default y
196
197 config PPC_OF_PLATFORM_PCI
198         bool
199         depends on PCI
200         depends on PPC64 # not supported on 32 bits yet
201         default n
202
203 source "init/Kconfig"
204
205 source "arch/powerpc/sysdev/Kconfig"
206 source "arch/powerpc/platforms/Kconfig"
207
208 menu "Kernel options"
209
210 config HIGHMEM
211         bool "High memory support"
212         depends on PPC32
213
214 source kernel/time/Kconfig
215 source kernel/Kconfig.hz
216 source kernel/Kconfig.preempt
217 source "fs/Kconfig.binfmt"
218
219 config HUGETLB_PAGE_SIZE_VARIABLE
220         bool
221         depends on HUGETLB_PAGE
222         default y
223
224 config MATH_EMULATION
225         bool "Math emulation"
226         depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
227         ---help---
228           Some PowerPC chips designed for embedded applications do not have
229           a floating-point unit and therefore do not implement the
230           floating-point instructions in the PowerPC instruction set.  If you
231           say Y here, the kernel will include code to emulate a floating-point
232           unit, which will allow programs that use floating-point
233           instructions to run.
234
235 config 8XX_MINIMAL_FPEMU
236         bool "Minimal math emulation for 8xx"
237         depends on 8xx && !MATH_EMULATION
238         help
239           Older arch/ppc kernels still emulated a few floating point
240           instructions such as load and store, even when full math
241           emulation is disabled.  Say "Y" here if you want to preserve
242           this behavior.
243
244           It is recommended that you build a soft-float userspace instead.
245
246 config IOMMU_VMERGE
247         bool "Enable IOMMU virtual merging"
248         depends on PPC64
249         default y
250         help
251           Cause IO segments sent to a device for DMA to be merged virtually
252           by the IOMMU when they happen to have been allocated contiguously.
253           This doesn't add pressure to the IOMMU allocator. However, some
254           drivers don't support getting large merged segments coming back
255           from *_map_sg().
256
257           Most drivers don't have this problem; it is safe to say Y here.
258
259 config IOMMU_HELPER
260         def_bool PPC64
261
262 config HOTPLUG_CPU
263         bool "Support for enabling/disabling CPUs"
264         depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
265         ---help---
266           Say Y here to be able to disable and re-enable individual
267           CPUs at runtime on SMP machines.
268
269           Say N if you are unsure.
270
271 config ARCH_ENABLE_MEMORY_HOTPLUG
272         def_bool y
273
274 config ARCH_HAS_WALK_MEMORY
275         def_bool y
276
277 config ARCH_ENABLE_MEMORY_HOTREMOVE
278         def_bool y
279
280 config KEXEC
281         bool "kexec system call (EXPERIMENTAL)"
282         depends on (PPC_PRPMC2800 || PPC_MULTIPLATFORM) && EXPERIMENTAL
283         help
284           kexec is a system call that implements the ability to shutdown your
285           current kernel, and to start another kernel.  It is like a reboot
286           but it is independent of the system firmware.   And like a reboot
287           you can start any kernel with it, not just Linux.
288
289           The name comes from the similarity to the exec system call.
290
291           It is an ongoing process to be certain the hardware in a machine
292           is properly shutdown, so do not be surprised if this code does not
293           initially work for you.  It may help to enable device hotplugging
294           support.  As of this writing the exact hardware interface is
295           strongly in flux, so no good recommendation can be made.
296
297 config CRASH_DUMP
298         bool "Build a kdump crash kernel (EXPERIMENTAL)"
299         depends on PPC_MULTIPLATFORM && PPC64 && EXPERIMENTAL
300         help
301           Build a kernel suitable for use as a kdump capture kernel.
302           The kernel will be linked at a different address than normal, and
303           so can only be used for Kdump.
304
305           Don't change this unless you know what you are doing.
306
307 config PHYP_DUMP
308         bool "Hypervisor-assisted dump (EXPERIMENTAL)"
309         depends on PPC_PSERIES && EXPERIMENTAL
310         help
311           Hypervisor-assisted dump is meant to be a kdump replacement
312           offering robustness and speed not possible without system
313           hypervisor assistence.
314
315           If unsure, say "N"
316
317 config PPCBUG_NVRAM
318         bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
319         default y if PPC_PREP
320
321 config IRQ_ALL_CPUS
322         bool "Distribute interrupts on all CPUs by default"
323         depends on SMP && !MV64360
324         help
325           This option gives the kernel permission to distribute IRQs across
326           multiple CPUs.  Saying N here will route all IRQs to the first
327           CPU.  Generally saying Y is safe, although some problems have been
328           reported with SMP Power Macintoshes with this option enabled.
329
330 config NUMA
331         bool "NUMA support"
332         depends on PPC64
333         default y if SMP && PPC_PSERIES
334
335 config NODES_SHIFT
336         int
337         default "4"
338         depends on NEED_MULTIPLE_NODES
339
340 config ARCH_SELECT_MEMORY_MODEL
341         def_bool y
342         depends on PPC64
343
344 config ARCH_FLATMEM_ENABLE
345         def_bool y
346         depends on (PPC64 && !NUMA) || PPC32
347
348 config ARCH_SPARSEMEM_ENABLE
349         def_bool y
350         depends on PPC64
351         select SPARSEMEM_VMEMMAP_ENABLE
352
353 config ARCH_SPARSEMEM_DEFAULT
354         def_bool y
355         depends on (SMP && PPC_PSERIES) || PPC_PS3
356
357 config ARCH_POPULATES_NODE_MAP
358         def_bool y
359
360 source "mm/Kconfig"
361
362 config ARCH_MEMORY_PROBE
363         def_bool y
364         depends on MEMORY_HOTPLUG
365
366 # Some NUMA nodes have memory ranges that span
367 # other nodes.  Even though a pfn is valid and
368 # between a node's start and end pfns, it may not
369 # reside on that node.  See memmap_init_zone()
370 # for details.
371 config NODES_SPAN_OTHER_NODES
372         def_bool y
373         depends on NEED_MULTIPLE_NODES
374
375 config PPC_HAS_HASH_64K
376         bool
377         depends on PPC64
378         default n
379
380 config PPC_64K_PAGES
381         bool "64k page size"
382         depends on PPC64
383         select PPC_HAS_HASH_64K
384         help
385           This option changes the kernel logical page size to 64k. On machines
386           without processor support for 64k pages, the kernel will simulate
387           them by loading each individual 4k page on demand transparently,
388           while on hardware with such support, it will be used to map
389           normal application pages.
390
391 config FORCE_MAX_ZONEORDER
392         int "Maximum zone order"
393         default "9" if PPC_64K_PAGES
394         default "13" if PPC64 && !PPC_64K_PAGES
395         default "11"
396         help
397           The kernel memory allocator divides physically contiguous memory
398           blocks into "zones", where each zone is a power of two number of
399           pages.  This option selects the largest power of two that the kernel
400           keeps in the memory allocator.  If you need to allocate very large
401           blocks of physically contiguous memory, then you may need to
402           increase this value.
403
404           This config option is actually maximum order plus one. For example,
405           a value of 11 means that the largest free memory block is 2^10 pages.
406
407           The page size is not necessarily 4KB.  For example, on 64-bit
408           systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES.  Keep
409           this in mind when choosing a value for this option.
410
411 config PPC_SUBPAGE_PROT
412         bool "Support setting protections for 4k subpages"
413         depends on PPC_64K_PAGES
414         help
415           This option adds support for a system call to allow user programs
416           to set access permissions (read/write, readonly, or no access)
417           on the 4k subpages of each 64k page.
418
419 config SCHED_SMT
420         bool "SMT (Hyperthreading) scheduler support"
421         depends on PPC64 && SMP
422         help
423           SMT scheduler support improves the CPU scheduler's decision making
424           when dealing with POWER5 cpus at a cost of slightly increased
425           overhead in some places. If unsure say N here.
426
427 config PROC_DEVICETREE
428         bool "Support for device tree in /proc"
429         depends on PROC_FS
430         help
431           This option adds a device-tree directory under /proc which contains
432           an image of the device tree that the kernel copies from Open
433           Firmware or other boot firmware. If unsure, say Y here.
434
435 config CMDLINE_BOOL
436         bool "Default bootloader kernel arguments"
437
438 config CMDLINE
439         string "Initial kernel command string"
440         depends on CMDLINE_BOOL
441         default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
442         help
443           On some platforms, there is currently no way for the boot loader to
444           pass arguments to the kernel. For these platforms, you can supply
445           some command-line options at build time by entering them here.  In
446           most cases you will need to specify the root device here.
447
448 if !44x || BROKEN
449 config ARCH_WANTS_FREEZER_CONTROL
450         def_bool y
451         depends on ADB_PMU
452
453 source kernel/power/Kconfig
454 endif
455
456 config SECCOMP
457         bool "Enable seccomp to safely compute untrusted bytecode"
458         depends on PROC_FS
459         default y
460         help
461           This kernel feature is useful for number crunching applications
462           that may need to compute untrusted bytecode during their
463           execution. By using pipes or other transports made available to
464           the process as file descriptors supporting the read/write
465           syscalls, it's possible to isolate those applications in
466           their own address space using seccomp. Once seccomp is
467           enabled via /proc/<pid>/seccomp, it cannot be disabled
468           and the task is only allowed to execute a few safe syscalls
469           defined by each seccomp mode.
470
471           If unsure, say Y. Only embedded should say N here.
472
473 endmenu
474
475 config ISA_DMA_API
476         bool
477         default !PPC_ISERIES || PCI
478
479 menu "Bus options"
480
481 config ISA
482         bool "Support for ISA-bus hardware"
483         depends on PPC_PREP || PPC_CHRP
484         select PPC_I8259
485         help
486           Find out whether you have ISA slots on your motherboard.  ISA is the
487           name of a bus system, i.e. the way the CPU talks to the other stuff
488           inside your box.  If you have an Apple machine, say N here; if you
489           have an IBM RS/6000 or pSeries machine or a PReP machine, say Y.  If
490           you have an embedded board, consult your board documentation.
491
492 config ZONE_DMA
493         bool
494         default y
495
496 config GENERIC_ISA_DMA
497         bool
498         depends on PPC64 || POWER4 || 6xx && !CPM2
499         default y
500
501 config PPC_INDIRECT_PCI
502         bool
503         depends on PCI
504         default y if 40x || 44x
505         default n
506
507 config EISA
508         bool
509
510 config SBUS
511         bool
512
513 config FSL_SOC
514         bool
515
516 config FSL_PCI
517         bool
518         select PPC_INDIRECT_PCI
519
520 config 4xx_SOC
521         bool
522
523 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
524 config MCA
525         bool
526
527 config PCI
528         bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
529                 || PPC_MPC52xx || (EMBEDDED && (PPC_PSERIES || PPC_ISERIES)) \
530                 || PPC_PS3 || 44x
531         default y if !40x && !CPM2 && !8xx && !PPC_MPC512x && !PPC_83xx \
532                 && !PPC_85xx && !PPC_86xx
533         default PCI_PERMEDIA if !4xx && !CPM2 && !8xx
534         default PCI_QSPAN if !4xx && !CPM2 && 8xx
535         select ARCH_SUPPORTS_MSI
536         help
537           Find out whether your system includes a PCI bus. PCI is the name of
538           a bus system, i.e. the way the CPU talks to the other stuff inside
539           your box.  If you say Y here, the kernel will include drivers and
540           infrastructure code to support PCI bus devices.
541
542 config PCI_DOMAINS
543         def_bool PCI
544
545 config PCI_SYSCALL
546         def_bool PCI
547
548 config PCI_QSPAN
549         bool "QSpan PCI"
550         depends on !4xx && !CPM2 && 8xx
551         select PPC_I8259
552         help
553           Say Y here if you have a system based on a Motorola 8xx-series
554           embedded processor with a QSPAN PCI interface, otherwise say N.
555
556 config PCI_8260
557         bool
558         depends on PCI && 8260
559         select PPC_INDIRECT_PCI
560         default y
561
562 config 8260_PCI9
563         bool "Enable workaround for MPC826x erratum PCI 9"
564         depends on PCI_8260 && !8272
565         default y
566
567 choice
568         prompt "IDMA channel for PCI 9 workaround"
569         depends on 8260_PCI9
570
571 config 8260_PCI9_IDMA1
572         bool "IDMA1"
573
574 config 8260_PCI9_IDMA2
575         bool "IDMA2"
576
577 config 8260_PCI9_IDMA3
578         bool "IDMA3"
579
580 config 8260_PCI9_IDMA4
581         bool "IDMA4"
582
583 endchoice
584
585 source "drivers/pci/pcie/Kconfig"
586
587 source "drivers/pci/Kconfig"
588
589 source "drivers/pcmcia/Kconfig"
590
591 source "drivers/pci/hotplug/Kconfig"
592
593 endmenu
594
595 menu "Advanced setup"
596         depends on PPC32
597
598 config ADVANCED_OPTIONS
599         bool "Prompt for advanced kernel configuration options"
600         help
601           This option will enable prompting for a variety of advanced kernel
602           configuration options.  These options can cause the kernel to not
603           work if they are set incorrectly, but can be used to optimize certain
604           aspects of kernel memory management.
605
606           Unless you know what you are doing, say N here.
607
608 comment "Default settings for advanced configuration options are used"
609         depends on !ADVANCED_OPTIONS
610
611 config HIGHMEM_START_BOOL
612         bool "Set high memory pool address"
613         depends on ADVANCED_OPTIONS && HIGHMEM
614         help
615           This option allows you to set the base address of the kernel virtual
616           area used to map high memory pages.  This can be useful in
617           optimizing the layout of kernel virtual memory.
618
619           Say N here unless you know what you are doing.
620
621 config HIGHMEM_START
622         hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
623         default "0xfe000000"
624
625 config LOWMEM_SIZE_BOOL
626         bool "Set maximum low memory"
627         depends on ADVANCED_OPTIONS
628         help
629           This option allows you to set the maximum amount of memory which
630           will be used as "low memory", that is, memory which the kernel can
631           access directly, without having to set up a kernel virtual mapping.
632           This can be useful in optimizing the layout of kernel virtual
633           memory.
634
635           Say N here unless you know what you are doing.
636
637 config LOWMEM_SIZE
638         hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
639         default "0x30000000"
640
641 config KERNEL_START_BOOL
642         bool "Set custom kernel base address"
643         depends on ADVANCED_OPTIONS
644         help
645           This option allows you to set the kernel virtual address at which
646           the kernel will map low memory (the kernel image will be linked at
647           this address).  This can be useful in optimizing the virtual memory
648           layout of the system.
649
650           Say N here unless you know what you are doing.
651
652 config KERNEL_START
653         hex "Virtual address of kernel base" if KERNEL_START_BOOL
654         default "0xc0000000"
655
656 config TASK_SIZE_BOOL
657         bool "Set custom user task size"
658         depends on ADVANCED_OPTIONS
659         help
660           This option allows you to set the amount of virtual address space
661           allocated to user tasks.  This can be useful in optimizing the
662           virtual memory layout of the system.
663
664           Say N here unless you know what you are doing.
665
666 config TASK_SIZE
667         hex "Size of user task space" if TASK_SIZE_BOOL
668         default "0x80000000" if PPC_PREP || PPC_8xx
669         default "0xc0000000"
670
671 config CONSISTENT_START_BOOL
672         bool "Set custom consistent memory pool address"
673         depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
674         help
675           This option allows you to set the base virtual address
676           of the consistent memory pool.  This pool of virtual
677           memory is used to make consistent memory allocations.
678
679 config CONSISTENT_START
680         hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
681         default "0xfd000000" if (NOT_COHERENT_CACHE && 8xx)
682         default "0xff100000" if NOT_COHERENT_CACHE
683
684 config CONSISTENT_SIZE_BOOL
685         bool "Set custom consistent memory pool size"
686         depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
687         help
688           This option allows you to set the size of the
689           consistent memory pool.  This pool of virtual memory
690           is used to make consistent memory allocations.
691
692 config CONSISTENT_SIZE
693         hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
694         default "0x00200000" if NOT_COHERENT_CACHE
695
696 config BOOT_LOAD_BOOL
697         bool "Set the boot link/load address"
698         depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
699         help
700           This option allows you to set the initial load address of the zImage
701           or zImage.initrd file.  This can be useful if you are on a board
702           which has a small amount of memory.
703
704           Say N here unless you know what you are doing.
705
706 config BOOT_LOAD
707         hex "Link/load address for booting" if BOOT_LOAD_BOOL
708         default "0x00400000" if 40x || 8xx || 8260
709         default "0x01000000" if 44x
710         default "0x00800000"
711
712 config PIN_TLB
713         bool "Pinned Kernel TLBs (860 ONLY)"
714         depends on ADVANCED_OPTIONS && 8xx
715 endmenu
716
717 if PPC64
718 config KERNEL_START
719         hex
720         default "0xc000000000000000"
721 endif
722
723 source "net/Kconfig"
724
725 source "drivers/Kconfig"
726
727 source "fs/Kconfig"
728
729 # XXX source "arch/ppc/8xx_io/Kconfig"
730
731 # XXX source "arch/ppc/8260_io/Kconfig"
732
733 source "arch/powerpc/sysdev/qe_lib/Kconfig"
734
735 source "lib/Kconfig"
736
737 source "arch/powerpc/Kconfig.debug"
738
739 source "security/Kconfig"
740
741 config KEYS_COMPAT
742         bool
743         depends on COMPAT && KEYS
744         default y
745
746 source "crypto/Kconfig"
747
748 config PPC_CLOCK
749         bool
750         default n
751
752 config PPC_LIB_RHEAP
753         bool
754