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