Merge branch 'core-iommu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / arch / powerpc / Kconfig
1 # For a description of the syntax of this configuration file,
2 # see Documentation/kbuild/kconfig-language.txt.
3 #
4
5 mainmenu "Linux/PowerPC Kernel Configuration"
6
7 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 ARCH_PHYS_ADDR_T_64BIT
23        def_bool PPC64 || PHYS_64BIT
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 GENERIC_HARDIRQS_NO__DO_IRQ
46         bool
47         default y
48
49 config HAVE_SETUP_PER_CPU_AREA
50         def_bool PPC64
51
52 config NEED_PER_CPU_EMBED_FIRST_CHUNK
53         def_bool PPC64
54
55 config IRQ_PER_CPU
56         bool
57         default y
58
59 config NR_IRQS
60         int "Number of virtual interrupt numbers"
61         range 32 32768
62         default "512"
63         help
64           This defines the number of virtual interrupt numbers the kernel
65           can manage. Virtual interrupt numbers are what you see in
66           /proc/interrupts. If you configure your system to have too few,
67           drivers will fail to load or worse - handle with care.
68
69 config STACKTRACE_SUPPORT
70         bool
71         default y
72
73 config HAVE_LATENCYTOP_SUPPORT
74         def_bool y
75
76 config TRACE_IRQFLAGS_SUPPORT
77         bool
78         default y
79
80 config LOCKDEP_SUPPORT
81         bool
82         default y
83
84 config RWSEM_GENERIC_SPINLOCK
85         bool
86
87 config RWSEM_XCHGADD_ALGORITHM
88         bool
89         default y
90
91 config GENERIC_LOCKBREAK
92         bool
93         default y
94         depends on SMP && PREEMPT
95
96 config ARCH_HAS_ILOG2_U32
97         bool
98         default y
99
100 config ARCH_HAS_ILOG2_U64
101         bool
102         default y if 64BIT
103
104 config GENERIC_HWEIGHT
105         bool
106         default y
107
108 config GENERIC_FIND_NEXT_BIT
109         bool
110         default y
111
112 config GENERIC_GPIO
113         bool
114         help
115           Generic GPIO API support
116
117 config ARCH_NO_VIRT_TO_BUS
118         def_bool PPC64
119
120 config PPC
121         bool
122         default y
123         select OF
124         select OF_FLATTREE
125         select HAVE_FTRACE_MCOUNT_RECORD
126         select HAVE_DYNAMIC_FTRACE
127         select HAVE_FUNCTION_TRACER
128         select HAVE_FUNCTION_GRAPH_TRACER
129         select ARCH_WANT_OPTIONAL_GPIOLIB
130         select HAVE_IDE
131         select HAVE_IOREMAP_PROT
132         select HAVE_EFFICIENT_UNALIGNED_ACCESS
133         select HAVE_KPROBES
134         select HAVE_ARCH_KGDB
135         select HAVE_KRETPROBES
136         select HAVE_ARCH_TRACEHOOK
137         select HAVE_MEMBLOCK
138         select HAVE_DMA_ATTRS
139         select HAVE_DMA_API_DEBUG
140         select USE_GENERIC_SMP_HELPERS if SMP
141         select HAVE_OPROFILE
142         select HAVE_SYSCALL_WRAPPERS if PPC64
143         select GENERIC_ATOMIC64 if PPC32
144         select HAVE_PERF_EVENTS
145         select HAVE_REGS_AND_STACK_ACCESS_API
146         select HAVE_HW_BREAKPOINT if PERF_EVENTS && PPC_BOOK3S_64
147
148 config EARLY_PRINTK
149         bool
150         default y
151
152 config COMPAT
153         bool
154         default y if PPC64
155         select COMPAT_BINFMT_ELF
156
157 config SYSVIPC_COMPAT
158         bool
159         depends on COMPAT && SYSVIPC
160         default y
161
162 # All PPC32s use generic nvram driver through ppc_md
163 config GENERIC_NVRAM
164         bool
165         default y if PPC32
166
167 config SCHED_OMIT_FRAME_POINTER
168         bool
169         default y
170
171 config ARCH_MAY_HAVE_PC_FDC
172         bool
173         default !PPC_PSERIES || PCI
174
175 config PPC_OF
176         def_bool y
177
178 config PPC_UDBG_16550
179         bool
180         default n
181
182 config GENERIC_TBSYNC
183         bool
184         default y if PPC32 && SMP
185         default n
186
187 config AUDIT_ARCH
188         bool
189         default y
190
191 config GENERIC_BUG
192         bool
193         default y
194         depends on BUG
195
196 config SYS_SUPPORTS_APM_EMULATION
197         default y if PMAC_APM_EMU
198         bool
199
200 config DEFAULT_UIMAGE
201         bool
202         help
203           Used to allow a board to specify it wants a uImage built by default
204         default n
205
206 config REDBOOT
207         bool
208
209 config ARCH_HIBERNATION_POSSIBLE
210         bool
211         default y
212
213 config ARCH_SUSPEND_POSSIBLE
214         def_bool y
215         depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
216                    PPC_85xx || PPC_86xx || PPC_PSERIES
217
218 config PPC_DCR_NATIVE
219         bool
220         default n
221
222 config PPC_DCR_MMIO
223         bool
224         default n
225
226 config PPC_DCR
227         bool
228         depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
229         default y
230
231 config PPC_OF_PLATFORM_PCI
232         bool
233         depends on PCI
234         depends on PPC64 # not supported on 32 bits yet
235         default n
236
237 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
238         def_bool y
239
240 config PPC_ADV_DEBUG_REGS
241         bool
242         depends on 40x || BOOKE
243         default y
244
245 config PPC_ADV_DEBUG_IACS
246         int
247         depends on PPC_ADV_DEBUG_REGS
248         default 4 if 44x
249         default 2
250
251 config PPC_ADV_DEBUG_DACS
252         int
253         depends on PPC_ADV_DEBUG_REGS
254         default 2
255
256 config PPC_ADV_DEBUG_DVCS
257         int
258         depends on PPC_ADV_DEBUG_REGS
259         default 2 if 44x
260         default 0
261
262 config PPC_ADV_DEBUG_DAC_RANGE
263         bool
264         depends on PPC_ADV_DEBUG_REGS && 44x
265         default y
266
267 source "init/Kconfig"
268
269 source "kernel/Kconfig.freezer"
270
271 source "arch/powerpc/sysdev/Kconfig"
272 source "arch/powerpc/platforms/Kconfig"
273
274 menu "Kernel options"
275
276 config HIGHMEM
277         bool "High memory support"
278         depends on PPC32
279
280 source kernel/time/Kconfig
281 source kernel/Kconfig.hz
282 source kernel/Kconfig.preempt
283 source "fs/Kconfig.binfmt"
284
285 config HUGETLB_PAGE_SIZE_VARIABLE
286         bool
287         depends on HUGETLB_PAGE
288         default y
289
290 config MATH_EMULATION
291         bool "Math emulation"
292         depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
293         ---help---
294           Some PowerPC chips designed for embedded applications do not have
295           a floating-point unit and therefore do not implement the
296           floating-point instructions in the PowerPC instruction set.  If you
297           say Y here, the kernel will include code to emulate a floating-point
298           unit, which will allow programs that use floating-point
299           instructions to run.
300
301 config 8XX_MINIMAL_FPEMU
302         bool "Minimal math emulation for 8xx"
303         depends on 8xx && !MATH_EMULATION
304         help
305           Older arch/ppc kernels still emulated a few floating point
306           instructions such as load and store, even when full math
307           emulation is disabled.  Say "Y" here if you want to preserve
308           this behavior.
309
310           It is recommended that you build a soft-float userspace instead.
311
312 config IOMMU_HELPER
313         def_bool PPC64
314
315 config SWIOTLB
316         bool "SWIOTLB support"
317         default n
318         select IOMMU_HELPER
319         ---help---
320           Support for IO bounce buffering for systems without an IOMMU.
321           This allows us to DMA to the full physical address space on
322           platforms where the size of a physical address is larger
323           than the bus address.  Not all platforms support this.
324
325 config HOTPLUG_CPU
326         bool "Support for enabling/disabling CPUs"
327         depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
328         ---help---
329           Say Y here to be able to disable and re-enable individual
330           CPUs at runtime on SMP machines.
331
332           Say N if you are unsure.
333
334 config ARCH_CPU_PROBE_RELEASE
335         def_bool y
336         depends on HOTPLUG_CPU
337
338 config ARCH_ENABLE_MEMORY_HOTPLUG
339         def_bool y
340
341 config ARCH_HAS_WALK_MEMORY
342         def_bool y
343
344 config ARCH_ENABLE_MEMORY_HOTREMOVE
345         def_bool y
346
347 config KEXEC
348         bool "kexec system call (EXPERIMENTAL)"
349         depends on (PPC_BOOK3S || FSL_BOOKE) && EXPERIMENTAL
350         help
351           kexec is a system call that implements the ability to shutdown your
352           current kernel, and to start another kernel.  It is like a reboot
353           but it is independent of the system firmware.   And like a reboot
354           you can start any kernel with it, not just Linux.
355
356           The name comes from the similarity to the exec system call.
357
358           It is an ongoing process to be certain the hardware in a machine
359           is properly shutdown, so do not be surprised if this code does not
360           initially work for you.  It may help to enable device hotplugging
361           support.  As of this writing the exact hardware interface is
362           strongly in flux, so no good recommendation can be made.
363
364 config CRASH_DUMP
365         bool "Build a kdump crash kernel"
366         depends on PPC64 || 6xx || FSL_BOOKE
367         select RELOCATABLE if PPC64 || FSL_BOOKE
368         help
369           Build a kernel suitable for use as a kdump capture kernel.
370           The same kernel binary can be used as production kernel and dump
371           capture kernel.
372
373 config PHYP_DUMP
374         bool "Hypervisor-assisted dump (EXPERIMENTAL)"
375         depends on PPC_PSERIES && EXPERIMENTAL
376         help
377           Hypervisor-assisted dump is meant to be a kdump replacement
378           offering robustness and speed not possible without system
379           hypervisor assistance.
380
381           If unsure, say "N"
382
383 config PPCBUG_NVRAM
384         bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
385         default y if PPC_PREP
386
387 config IRQ_ALL_CPUS
388         bool "Distribute interrupts on all CPUs by default"
389         depends on SMP && !MV64360
390         help
391           This option gives the kernel permission to distribute IRQs across
392           multiple CPUs.  Saying N here will route all IRQs to the first
393           CPU.  Generally saying Y is safe, although some problems have been
394           reported with SMP Power Macintoshes with this option enabled.
395
396 config SPARSE_IRQ
397         bool "Support sparse irq numbering"
398         default n
399         help
400           This enables support for sparse irqs. This is useful for distro
401           kernels that want to define a high CONFIG_NR_CPUS value but still
402           want to have low kernel memory footprint on smaller machines.
403
404           ( Sparse IRQs can also be beneficial on NUMA boxes, as they spread
405             out the irq_desc[] array in a more NUMA-friendly way. )
406
407           If you don't know what to do here, say N.
408
409 config NUMA
410         bool "NUMA support"
411         depends on PPC64
412         default y if SMP && PPC_PSERIES
413
414 config NODES_SHIFT
415         int
416         default "8" if PPC64
417         default "4"
418         depends on NEED_MULTIPLE_NODES
419
420 config MAX_ACTIVE_REGIONS
421         int
422         default "256" if PPC64
423         default "32"
424
425 config ARCH_SELECT_MEMORY_MODEL
426         def_bool y
427         depends on PPC64
428
429 config ARCH_FLATMEM_ENABLE
430         def_bool y
431         depends on (PPC64 && !NUMA) || PPC32
432
433 config ARCH_SPARSEMEM_ENABLE
434         def_bool y
435         depends on PPC64
436         select SPARSEMEM_VMEMMAP_ENABLE
437
438 config ARCH_SPARSEMEM_DEFAULT
439         def_bool y
440         depends on (SMP && PPC_PSERIES) || PPC_PS3
441
442 config ARCH_POPULATES_NODE_MAP
443         def_bool y
444
445 config SYS_SUPPORTS_HUGETLBFS
446        def_bool y
447        depends on PPC_BOOK3S_64
448
449 source "mm/Kconfig"
450
451 config ARCH_MEMORY_PROBE
452         def_bool y
453         depends on MEMORY_HOTPLUG
454
455 # Some NUMA nodes have memory ranges that span
456 # other nodes.  Even though a pfn is valid and
457 # between a node's start and end pfns, it may not
458 # reside on that node.  See memmap_init_zone()
459 # for details.
460 config NODES_SPAN_OTHER_NODES
461         def_bool y
462         depends on NEED_MULTIPLE_NODES
463
464 config PPC_HAS_HASH_64K
465         bool
466         depends on PPC64
467         default n
468
469 config STDBINUTILS
470         bool "Using standard binutils settings"
471         depends on 44x
472         default y
473         help
474           Turning this option off allows you to select 256KB PAGE_SIZE on 44x.
475           Note, that kernel will be able to run only those applications,
476           which had been compiled using binutils later than 2.17.50.0.3 with
477           '-zmax-page-size' set to 256K (the default is 64K). Or, if using
478           the older binutils, you can patch them with a trivial patch, which
479           changes the ELF_MAXPAGESIZE definition from 0x10000 to 0x40000.
480
481 choice
482         prompt "Page size"
483         default PPC_4K_PAGES
484         help
485           Select the kernel logical page size. Increasing the page size
486           will reduce software overhead at each page boundary, allow
487           hardware prefetch mechanisms to be more effective, and allow
488           larger dma transfers increasing IO efficiency and reducing
489           overhead. However the utilization of memory will increase.
490           For example, each cached file will using a multiple of the
491           page size to hold its contents and the difference between the
492           end of file and the end of page is wasted.
493
494           Some dedicated systems, such as software raid serving with
495           accelerated calculations, have shown significant increases.
496
497           If you configure a 64 bit kernel for 64k pages but the
498           processor does not support them, then the kernel will simulate
499           them with 4k pages, loading them on demand, but with the
500           reduced software overhead and larger internal fragmentation.
501           For the 32 bit kernel, a large page option will not be offered
502           unless it is supported by the configured processor.
503
504           If unsure, choose 4K_PAGES.
505
506 config PPC_4K_PAGES
507         bool "4k page size"
508
509 config PPC_16K_PAGES
510         bool "16k page size" if 44x
511
512 config PPC_64K_PAGES
513         bool "64k page size" if 44x || PPC_STD_MMU_64 || PPC_BOOK3E_64
514         select PPC_HAS_HASH_64K if PPC_STD_MMU_64
515
516 config PPC_256K_PAGES
517         bool "256k page size" if 44x
518         depends on !STDBINUTILS
519         help
520           Make the page size 256k.
521
522           As the ELF standard only requires alignment to support page
523           sizes up to 64k, you will need to compile all of your user
524           space applications with a non-standard binutils settings
525           (see the STDBINUTILS description for details).
526
527           Say N unless you know what you are doing.
528
529 endchoice
530
531 config FORCE_MAX_ZONEORDER
532         int "Maximum zone order"
533         range 9 64 if PPC64 && PPC_64K_PAGES
534         default "9" if PPC64 && PPC_64K_PAGES
535         range 13 64 if PPC64 && !PPC_64K_PAGES
536         default "13" if PPC64 && !PPC_64K_PAGES
537         range 9 64 if PPC32 && PPC_16K_PAGES
538         default "9" if PPC32 && PPC_16K_PAGES
539         range 7 64 if PPC32 && PPC_64K_PAGES
540         default "7" if PPC32 && PPC_64K_PAGES
541         range 5 64 if PPC32 && PPC_256K_PAGES
542         default "5" if PPC32 && PPC_256K_PAGES
543         range 11 64
544         default "11"
545         help
546           The kernel memory allocator divides physically contiguous memory
547           blocks into "zones", where each zone is a power of two number of
548           pages.  This option selects the largest power of two that the kernel
549           keeps in the memory allocator.  If you need to allocate very large
550           blocks of physically contiguous memory, then you may need to
551           increase this value.
552
553           This config option is actually maximum order plus one. For example,
554           a value of 11 means that the largest free memory block is 2^10 pages.
555
556           The page size is not necessarily 4KB.  For example, on 64-bit
557           systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES.  Keep
558           this in mind when choosing a value for this option.
559
560 config PPC_SUBPAGE_PROT
561         bool "Support setting protections for 4k subpages"
562         depends on PPC_STD_MMU_64 && PPC_64K_PAGES
563         help
564           This option adds support for a system call to allow user programs
565           to set access permissions (read/write, readonly, or no access)
566           on the 4k subpages of each 64k page.
567
568 config SCHED_SMT
569         bool "SMT (Hyperthreading) scheduler support"
570         depends on PPC64 && SMP
571         help
572           SMT scheduler support improves the CPU scheduler's decision making
573           when dealing with POWER5 cpus at a cost of slightly increased
574           overhead in some places. If unsure say N here.
575
576 config CMDLINE_BOOL
577         bool "Default bootloader kernel arguments"
578
579 config CMDLINE
580         string "Initial kernel command string"
581         depends on CMDLINE_BOOL
582         default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
583         help
584           On some platforms, there is currently no way for the boot loader to
585           pass arguments to the kernel. For these platforms, you can supply
586           some command-line options at build time by entering them here.  In
587           most cases you will need to specify the root device here.
588
589 config EXTRA_TARGETS
590         string "Additional default image types"
591         help
592           List additional targets to be built by the bootwrapper here (separated
593           by spaces).  This is useful for targets that depend of device tree
594           files in the .dts directory.
595
596           Targets in this list will be build as part of the default build
597           target, or when the user does a 'make zImage' or a
598           'make zImage.initrd'.
599
600           If unsure, leave blank
601
602 if !44x || BROKEN
603 config ARCH_WANTS_FREEZER_CONTROL
604         def_bool y
605         depends on ADB_PMU
606
607 source kernel/power/Kconfig
608 endif
609
610 config SECCOMP
611         bool "Enable seccomp to safely compute untrusted bytecode"
612         depends on PROC_FS
613         default y
614         help
615           This kernel feature is useful for number crunching applications
616           that may need to compute untrusted bytecode during their
617           execution. By using pipes or other transports made available to
618           the process as file descriptors supporting the read/write
619           syscalls, it's possible to isolate those applications in
620           their own address space using seccomp. Once seccomp is
621           enabled via /proc/<pid>/seccomp, it cannot be disabled
622           and the task is only allowed to execute a few safe syscalls
623           defined by each seccomp mode.
624
625           If unsure, say Y. Only embedded should say N here.
626
627 endmenu
628
629 config ISA_DMA_API
630         bool
631         default !PPC_ISERIES || PCI
632
633 menu "Bus options"
634
635 config ISA
636         bool "Support for ISA-bus hardware"
637         depends on PPC_PREP || PPC_CHRP
638         select PPC_I8259
639         help
640           Find out whether you have ISA slots on your motherboard.  ISA is the
641           name of a bus system, i.e. the way the CPU talks to the other stuff
642           inside your box.  If you have an Apple machine, say N here; if you
643           have an IBM RS/6000 or pSeries machine or a PReP machine, say Y.  If
644           you have an embedded board, consult your board documentation.
645
646 config ZONE_DMA
647         bool
648         default y
649
650 config NEED_DMA_MAP_STATE
651         def_bool (PPC64 || NOT_COHERENT_CACHE)
652
653 config NEED_SG_DMA_LENGTH
654         def_bool y
655
656 config GENERIC_ISA_DMA
657         bool
658         depends on ISA_DMA_API
659         default y
660
661 config PPC_INDIRECT_PCI
662         bool
663         depends on PCI
664         default y if 40x || 44x
665         default n
666
667 config EISA
668         bool
669
670 config SBUS
671         bool
672
673 config FSL_SOC
674         bool
675
676 config FSL_PCI
677         bool
678         select PPC_INDIRECT_PCI
679         select PCI_QUIRKS
680
681 config FSL_PMC
682         bool
683         default y
684         depends on SUSPEND && (PPC_85xx || PPC_86xx)
685         help
686           Freescale MPC85xx/MPC86xx power management controller support
687           (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
688
689 config 4xx_SOC
690         bool
691
692 config FSL_LBC
693         bool
694         help
695           Freescale Localbus support
696
697 config FSL_GTM
698         bool
699         depends on PPC_83xx || QUICC_ENGINE || CPM2
700         help
701           Freescale General-purpose Timers support
702
703 # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
704 config MCA
705         bool
706
707 # Platforms that what PCI turned unconditionally just do select PCI
708 # in their config node.  Platforms that want to choose at config
709 # time should select PPC_PCI_CHOICE
710 config PPC_PCI_CHOICE
711         bool
712
713 config PCI
714         bool "PCI support" if PPC_PCI_CHOICE
715         default y if !40x && !CPM2 && !8xx && !PPC_83xx \
716                 && !PPC_85xx && !PPC_86xx && !GAMECUBE_COMMON
717         default PCI_PERMEDIA if !4xx && !CPM2 && !8xx
718         default PCI_QSPAN if !4xx && !CPM2 && 8xx
719         select ARCH_SUPPORTS_MSI
720         help
721           Find out whether your system includes a PCI bus. PCI is the name of
722           a bus system, i.e. the way the CPU talks to the other stuff inside
723           your box.  If you say Y here, the kernel will include drivers and
724           infrastructure code to support PCI bus devices.
725
726 config PCI_DOMAINS
727         def_bool PCI
728
729 config PCI_SYSCALL
730         def_bool PCI
731
732 config PCI_QSPAN
733         bool "QSpan PCI"
734         depends on !4xx && !CPM2 && 8xx
735         select PPC_I8259
736         help
737           Say Y here if you have a system based on a Motorola 8xx-series
738           embedded processor with a QSPAN PCI interface, otherwise say N.
739
740 config PCI_8260
741         bool
742         depends on PCI && 8260
743         select PPC_INDIRECT_PCI
744         default y
745
746 config 8260_PCI9
747         bool "Enable workaround for MPC826x erratum PCI 9"
748         depends on PCI_8260 && !8272
749         default y
750
751 choice
752         prompt "IDMA channel for PCI 9 workaround"
753         depends on 8260_PCI9
754
755 config 8260_PCI9_IDMA1
756         bool "IDMA1"
757
758 config 8260_PCI9_IDMA2
759         bool "IDMA2"
760
761 config 8260_PCI9_IDMA3
762         bool "IDMA3"
763
764 config 8260_PCI9_IDMA4
765         bool "IDMA4"
766
767 endchoice
768
769 source "drivers/pci/pcie/Kconfig"
770
771 source "drivers/pci/Kconfig"
772
773 source "drivers/pcmcia/Kconfig"
774
775 source "drivers/pci/hotplug/Kconfig"
776
777 config HAS_RAPIDIO
778         bool
779         default n
780
781 config RAPIDIO
782         bool "RapidIO support"
783         depends on HAS_RAPIDIO
784         help
785           If you say Y here, the kernel will include drivers and
786           infrastructure code to support RapidIO interconnect devices.
787
788 source "drivers/rapidio/Kconfig"
789
790 endmenu
791
792 menu "Advanced setup"
793         depends on PPC32
794
795 config ADVANCED_OPTIONS
796         bool "Prompt for advanced kernel configuration options"
797         help
798           This option will enable prompting for a variety of advanced kernel
799           configuration options.  These options can cause the kernel to not
800           work if they are set incorrectly, but can be used to optimize certain
801           aspects of kernel memory management.
802
803           Unless you know what you are doing, say N here.
804
805 comment "Default settings for advanced configuration options are used"
806         depends on !ADVANCED_OPTIONS
807
808 config LOWMEM_SIZE_BOOL
809         bool "Set maximum low memory"
810         depends on ADVANCED_OPTIONS
811         help
812           This option allows you to set the maximum amount of memory which
813           will be used as "low memory", that is, memory which the kernel can
814           access directly, without having to set up a kernel virtual mapping.
815           This can be useful in optimizing the layout of kernel virtual
816           memory.
817
818           Say N here unless you know what you are doing.
819
820 config LOWMEM_SIZE
821         hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
822         default "0x30000000"
823
824 config LOWMEM_CAM_NUM_BOOL
825         bool "Set number of CAMs to use to map low memory"
826         depends on ADVANCED_OPTIONS && FSL_BOOKE
827         help
828           This option allows you to set the maximum number of CAM slots that
829           will be used to map low memory.  There are a limited number of slots
830           available and even more limited number that will fit in the L1 MMU.
831           However, using more entries will allow mapping more low memory.  This
832           can be useful in optimizing the layout of kernel virtual memory.
833
834           Say N here unless you know what you are doing.
835
836 config LOWMEM_CAM_NUM
837         depends on FSL_BOOKE
838         int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
839         default 3
840
841 config RELOCATABLE
842         bool "Build a relocatable kernel (EXPERIMENTAL)"
843         depends on EXPERIMENTAL && ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE
844         help
845           This builds a kernel image that is capable of running at the
846           location the kernel is loaded at (some alignment restrictions may
847           exist).
848
849           One use is for the kexec on panic case where the recovery kernel
850           must live at a different physical address than the primary
851           kernel.
852
853           Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
854           it has been loaded at and the compile time physical addresses
855           CONFIG_PHYSICAL_START is ignored.  However CONFIG_PHYSICAL_START
856           setting can still be useful to bootwrappers that need to know the
857           load location of the kernel (eg. u-boot/mkimage).
858
859 config PAGE_OFFSET_BOOL
860         bool "Set custom page offset address"
861         depends on ADVANCED_OPTIONS
862         help
863           This option allows you to set the kernel virtual address at which
864           the kernel will map low memory.  This can be useful in optimizing
865           the virtual memory layout of the system.
866
867           Say N here unless you know what you are doing.
868
869 config PAGE_OFFSET
870         hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
871         default "0xc0000000"
872
873 config KERNEL_START_BOOL
874         bool "Set custom kernel base address"
875         depends on ADVANCED_OPTIONS
876         help
877           This option allows you to set the kernel virtual address at which
878           the kernel will be loaded.  Normally this should match PAGE_OFFSET
879           however there are times (like kdump) that one might not want them
880           to be the same.
881
882           Say N here unless you know what you are doing.
883
884 config KERNEL_START
885         hex "Virtual address of kernel base" if KERNEL_START_BOOL
886         default PAGE_OFFSET if PAGE_OFFSET_BOOL
887         default "0xc2000000" if CRASH_DUMP && !RELOCATABLE
888         default "0xc0000000"
889
890 config PHYSICAL_START_BOOL
891         bool "Set physical address where the kernel is loaded"
892         depends on ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE
893         help
894           This gives the physical address where the kernel is loaded.
895
896           Say N here unless you know what you are doing.
897
898 config PHYSICAL_START
899         hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
900         default "0x02000000" if PPC_STD_MMU && CRASH_DUMP && !RELOCATABLE
901         default "0x00000000"
902
903 config PHYSICAL_ALIGN
904         hex
905         default "0x04000000" if FSL_BOOKE
906         help
907           This value puts the alignment restrictions on physical address
908           where kernel is loaded and run from. Kernel is compiled for an
909           address which meets above alignment restriction.
910
911 config TASK_SIZE_BOOL
912         bool "Set custom user task size"
913         depends on ADVANCED_OPTIONS
914         help
915           This option allows you to set the amount of virtual address space
916           allocated to user tasks.  This can be useful in optimizing the
917           virtual memory layout of the system.
918
919           Say N here unless you know what you are doing.
920
921 config TASK_SIZE
922         hex "Size of user task space" if TASK_SIZE_BOOL
923         default "0x80000000" if PPC_PREP || PPC_8xx
924         default "0xc0000000"
925
926 config CONSISTENT_SIZE_BOOL
927         bool "Set custom consistent memory pool size"
928         depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
929         help
930           This option allows you to set the size of the
931           consistent memory pool.  This pool of virtual memory
932           is used to make consistent memory allocations.
933
934 config CONSISTENT_SIZE
935         hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
936         default "0x00200000" if NOT_COHERENT_CACHE
937
938 config PIN_TLB
939         bool "Pinned Kernel TLBs (860 ONLY)"
940         depends on ADVANCED_OPTIONS && 8xx
941 endmenu
942
943 if PPC64
944 config RELOCATABLE
945         bool "Build a relocatable kernel"
946         help
947           This builds a kernel image that is capable of running anywhere
948           in the RMA (real memory area) at any 16k-aligned base address.
949           The kernel is linked as a position-independent executable (PIE)
950           and contains dynamic relocations which are processed early
951           in the bootup process.
952
953           One use is for the kexec on panic case where the recovery kernel
954           must live at a different physical address than the primary
955           kernel.
956
957 config PAGE_OFFSET
958         hex
959         default "0xc000000000000000"
960 config KERNEL_START
961         hex
962         default "0xc000000000000000"
963 config PHYSICAL_START
964         hex
965         default "0x00000000"
966 endif
967
968 source "net/Kconfig"
969
970 source "drivers/Kconfig"
971
972 source "fs/Kconfig"
973
974 source "arch/powerpc/sysdev/qe_lib/Kconfig"
975
976 source "lib/Kconfig"
977
978 source "arch/powerpc/Kconfig.debug"
979
980 source "security/Kconfig"
981
982 config KEYS_COMPAT
983         bool
984         depends on COMPAT && KEYS
985         default y
986
987 source "crypto/Kconfig"
988
989 config PPC_CLOCK
990         bool
991         default n
992         select HAVE_CLK
993
994 config PPC_LIB_RHEAP
995         bool
996
997 source "arch/powerpc/kvm/Kconfig"