blob: c51b6bba5fce8732e342fbb81947808ffb649217 [file] [log] [blame]
Paul Mackerras14cf11a2005-09-26 16:04:21 +10001# For a description of the syntax of this configuration file,
2# see Documentation/kbuild/kconfig-language.txt.
3#
4
5mainmenu "Linux/PowerPC Kernel Configuration"
6
Arnd Bergmanna0ae9c72007-06-13 02:30:17 +10007source "arch/powerpc/platforms/Kconfig.cputype"
Johannes Berg17e638b2007-03-19 11:53:53 +01008
Paul Mackerras14cf11a2005-09-26 16:04:21 +10009config PPC32
10 bool
11 default y if !PPC64
12
13config 64BIT
14 bool
15 default y if PPC64
16
Stephen Rothwell2578bfa2007-09-21 10:16:20 +100017config WORD_SIZE
18 int
19 default 64 if PPC64
20 default 32 if !PPC64
21
Paul Mackerras14cf11a2005-09-26 16:04:21 +100022config PPC_MERGE
23 def_bool y
24
25config MMU
26 bool
27 default y
28
Tony Breedsaa3be5f2007-09-21 13:26:02 +100029config GENERIC_CMOS_UPDATE
30 def_bool y
31
Tony Breeds4a4cfe32007-09-22 07:35:52 +100032config GENERIC_TIME
33 def_bool y
34
35config GENERIC_TIME_VSYSCALL
36 def_bool y
37
Tony Breedsd831d0b2007-09-21 13:26:03 +100038config GENERIC_CLOCKEVENTS
39 def_bool y
40
Paul Mackerras14cf11a2005-09-26 16:04:21 +100041config GENERIC_HARDIRQS
42 bool
43 default y
44
travis@sgi.com988c3882008-01-30 23:27:58 +010045config HAVE_SETUP_PER_CPU_AREA
travis@sgi.comb32ef632008-01-30 13:32:51 +010046 def_bool PPC64
47
Ingo Molnar0d7012a2006-06-29 02:24:43 -070048config IRQ_PER_CPU
49 bool
50 default y
51
Paul Mackerras14cf11a2005-09-26 16:04:21 +100052config RWSEM_GENERIC_SPINLOCK
53 bool
54
55config RWSEM_XCHGADD_ALGORITHM
56 bool
57 default y
58
Nick Piggin95c354f2008-01-30 13:31:20 +010059config GENERIC_LOCKBREAK
60 bool
61 default y
62 depends on SMP && PREEMPT
63
David Howellsf0d1b0b2006-12-08 02:37:49 -080064config ARCH_HAS_ILOG2_U32
65 bool
David Howellsef55d532006-12-08 02:37:53 -080066 default y
David Howellsf0d1b0b2006-12-08 02:37:49 -080067
68config ARCH_HAS_ILOG2_U64
69 bool
David Howellsef55d532006-12-08 02:37:53 -080070 default y if 64BIT
David Howellsf0d1b0b2006-12-08 02:37:49 -080071
Akinobu Mitae779b2f2006-03-26 01:39:33 -080072config GENERIC_HWEIGHT
73 bool
74 default y
75
Paul Mackerras14cf11a2005-09-26 16:04:21 +100076config GENERIC_CALIBRATE_DELAY
77 bool
78 default y
79
Jon Mason0a9cb462006-05-19 15:35:32 -050080config GENERIC_FIND_NEXT_BIT
81 bool
82 default y
83
Anton Vorontsovb7ce3412008-04-11 23:06:36 +100084config GENERIC_GPIO
85 bool
86 help
87 Generic GPIO API support
88
Stephen Rothwellf057eac2007-07-15 23:40:05 -070089config ARCH_NO_VIRT_TO_BUS
90 def_bool PPC64
91
Paul Mackerras14cf11a2005-09-26 16:04:21 +100092config PPC
93 bool
94 default y
Sam Ravnborgec7748b2008-02-09 10:46:40 +010095 select HAVE_IDE
Mathieu Desnoyers42d4b832008-02-02 15:10:34 -050096 select HAVE_OPROFILE
Mathieu Desnoyers3f550092008-02-02 15:10:35 -050097 select HAVE_KPROBES
Ananth N Mavinakayanahalli9edddaa2008-03-04 14:28:37 -080098 select HAVE_KRETPROBES
David S. Millerd9b2b2a2008-02-13 16:56:49 -080099 select HAVE_LMB
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000100
101config EARLY_PRINTK
102 bool
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +1100103 default y
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000104
105config COMPAT
106 bool
107 default y if PPC64
Roland McGrath01e31db2008-01-02 17:03:11 -0800108 select COMPAT_BINFMT_ELF
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000109
110config SYSVIPC_COMPAT
111 bool
112 depends on COMPAT && SYSVIPC
113 default y
114
115# All PPC32s use generic nvram driver through ppc_md
116config GENERIC_NVRAM
117 bool
118 default y if PPC32
119
120config SCHED_NO_NO_OMIT_FRAME_POINTER
121 bool
122 default y
123
124config ARCH_MAY_HAVE_PC_FDC
125 bool
Stephen Rothwellbed59272007-03-04 17:04:44 +1100126 default !PPC_PSERIES || PCI
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000127
Kumar Gala08264cb2006-01-10 21:43:56 -0600128config PPC_OF
129 def_bool y
130
Stephen Rothwell97e873e2007-05-01 16:26:07 +1000131config OF
132 def_bool y
133
Kumar Gala08264cb2006-01-10 21:43:56 -0600134config PPC_UDBG_16550
135 bool
136 default n
137
Kumar Gala08264cb2006-01-10 21:43:56 -0600138config GENERIC_TBSYNC
139 bool
140 default y if PPC32 && SMP
141 default n
142
Al Viroe65e1fc2006-09-12 03:04:40 -0400143config AUDIT_ARCH
144 bool
145 default y
146
Jeremy Fitzhardinge73c9cea2006-12-08 03:30:41 -0800147config GENERIC_BUG
148 bool
149 default y
150 depends on BUG
151
Johannes Bergb3028872007-03-20 05:18:02 +1100152config SYS_SUPPORTS_APM_EMULATION
Kumar Gala58da10b2007-05-23 09:51:46 -0500153 default y if PMAC_APM_EMU
Johannes Bergb3028872007-03-20 05:18:02 +1100154 bool
155
Kumar Galaf4fc4a52006-01-16 10:53:22 -0600156config 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
Scott Woodb09c1642008-01-17 16:31:40 -0600162config REDBOOT
163 bool
164
Johannes Berg801e4062007-12-08 02:12:39 +0100165config HIBERNATE_32
Johannes Berg543b9fd2007-05-03 22:31:38 +1000166 bool
Johannes Berg801e4062007-12-08 02:12:39 +0100167 depends on (PPC_PMAC && !SMP) || BROKEN
168 default y
169
170config HIBERNATE_64
171 bool
172 depends on BROKEN || (PPC_PMAC64 && EXPERIMENTAL)
173 default y
174
175config ARCH_HIBERNATION_POSSIBLE
176 bool
177 depends on (PPC64 && HIBERNATE_64) || (PPC32 && HIBERNATE_32)
Johannes Berg543b9fd2007-05-03 22:31:38 +1000178 default y
179
Johannes Bergf4cb5702007-12-08 02:14:00 +0100180config ARCH_SUSPEND_POSSIBLE
181 def_bool y
182 depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200
183
Benjamin Herrenschmidt4c75a6f2006-11-11 17:24:53 +1100184config PPC_DCR_NATIVE
185 bool
186 default n
187
188config PPC_DCR_MMIO
189 bool
190 default n
191
192config PPC_DCR
193 bool
194 depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
195 default y
196
Benjamin Herrenschmidt4c9d2802006-11-11 17:25:08 +1100197config PPC_OF_PLATFORM_PCI
198 bool
Stephen Rothwell373a6da2007-12-21 15:37:07 +1100199 depends on PCI
Benjamin Herrenschmidt4c9d2802006-11-11 17:25:08 +1100200 depends on PPC64 # not supported on 32 bits yet
201 default n
202
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000203source "init/Kconfig"
204
Benjamin Herrenschmidta2d2e1e2007-12-21 15:39:24 +1100205source "arch/powerpc/sysdev/Kconfig"
Kumar Gala4330f5d2007-03-16 09:32:17 -0500206source "arch/powerpc/platforms/Kconfig"
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000207
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000208menu "Kernel options"
209
210config HIGHMEM
211 bool "High memory support"
212 depends on PPC32
213
Tony Breeds1ad74992007-09-21 13:26:03 +1000214source kernel/time/Kconfig
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000215source kernel/Kconfig.hz
216source kernel/Kconfig.preempt
217source "fs/Kconfig.binfmt"
218
Mel Gormanba72cb82007-11-28 16:21:13 -0800219config HUGETLB_PAGE_SIZE_VARIABLE
220 bool
221 depends on HUGETLB_PAGE
222 default y
223
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000224config MATH_EMULATION
225 bool "Math emulation"
Kumar Gala4d527192007-01-26 00:23:34 -0600226 depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000227 ---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
Scott Wood5dd57a12007-09-18 15:29:35 -0500235config 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
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000246config IOMMU_VMERGE
Linas Vepstas768cc2d2007-07-18 02:09:35 +1000247 bool "Enable IOMMU virtual merging"
248 depends on PPC64
249 default y
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000250 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
Linas Vepstas768cc2d2007-07-18 02:09:35 +1000255 from *_map_sg().
256
257 Most drivers don't have this problem; it is safe to say Y here.
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000258
FUJITA Tomonorifb3475e2008-02-04 22:28:08 -0800259config IOMMU_HELPER
260 def_bool PPC64
261
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000262config 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
Yasunori Gotocc576372006-06-29 02:24:27 -0700271config ARCH_ENABLE_MEMORY_HOTPLUG
272 def_bool y
273
Badari Pulavartya99824f2008-02-05 00:10:18 -0800274config ARCH_HAS_WALK_MEMORY
275 def_bool y
276
Badari Pulavarty14824712008-02-05 00:10:17 -0800277config ARCH_ENABLE_MEMORY_HOTREMOVE
278 def_bool y
279
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000280config KEXEC
281 bool "kexec system call (EXPERIMENTAL)"
Dale Farnsworthfd4ba7e2007-05-12 10:58:43 +1000282 depends on (PPC_PRPMC2800 || PPC_MULTIPLATFORM) && EXPERIMENTAL
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000283 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
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400286 but it is independent of the system firmware. And like a reboot
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000287 you can start any kernel with it, not just Linux.
288
Matt LaPlante1f1332f2006-06-29 01:32:47 -0400289 The name comes from the similarity to the exec system call.
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000290
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
Haren Mynenie8625d462006-01-14 13:48:25 -0800297config CRASH_DUMP
Michael Ellermancd9c99d2006-03-10 15:01:08 +1100298 bool "Build a kdump crash kernel (EXPERIMENTAL)"
Haren Mynenie8625d462006-01-14 13:48:25 -0800299 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
Manish Ahuja242f2712008-03-22 10:50:50 +1100307config 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
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000317config PPCBUG_NVRAM
318 bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
319 default y if PPC_PREP
320
321config 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
Andy Whitcroftffa27b62005-10-28 17:46:58 -0700330config NUMA
331 bool "NUMA support"
332 depends on PPC64
333 default y if SMP && PPC_PSERIES
334
Yasunori Gotoc80d79d2006-04-10 22:53:53 -0700335config NODES_SHIFT
336 int
337 default "4"
338 depends on NEED_MULTIPLE_NODES
339
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000340config ARCH_SELECT_MEMORY_MODEL
341 def_bool y
342 depends on PPC64
343
344config ARCH_FLATMEM_ENABLE
Andy Whitcroft9100b202005-11-29 19:20:55 +0000345 def_bool y
346 depends on (PPC64 && !NUMA) || PPC32
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000347
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000348config ARCH_SPARSEMEM_ENABLE
349 def_bool y
Andy Whitcroft9100b202005-11-29 19:20:55 +0000350 depends on PPC64
Andy Whitcroftd29eff72007-10-16 01:24:17 -0700351 select SPARSEMEM_VMEMMAP_ENABLE
Anton Blanchard45fb6ce2005-11-11 14:22:35 +1100352
353config ARCH_SPARSEMEM_DEFAULT
354 def_bool y
Benjamin Herrenschmidt78bde532007-02-13 11:46:06 +1100355 depends on (SMP && PPC_PSERIES) || PPC_PS3
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000356
Mel Gormanc67c3cb2006-09-27 01:49:49 -0700357config ARCH_POPULATES_NODE_MAP
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000358 def_bool y
Mel Gormanc67c3cb2006-09-27 01:49:49 -0700359
360source "mm/Kconfig"
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000361
Mike Kravetz7e9191d2005-11-07 09:39:48 -0800362config ARCH_MEMORY_PROBE
363 def_bool y
364 depends on MEMORY_HOTPLUG
365
Andy Whitcroft75167952006-10-21 10:24:14 -0700366# 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.
371config NODES_SPAN_OTHER_NODES
372 def_bool y
373 depends on NEED_MULTIPLE_NODES
374
Benjamin Herrenschmidt16c2d472007-05-08 16:27:28 +1000375config PPC_HAS_HASH_64K
376 bool
377 depends on PPC64
378 default n
379
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100380config PPC_64K_PAGES
381 bool "64k page size"
Benjamin Herrenschmidt863c84b2005-11-07 00:57:58 -0800382 depends on PPC64
Benjamin Herrenschmidt16c2d472007-05-08 16:27:28 +1000383 select PPC_HAS_HASH_64K
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100384 help
385 This option changes the kernel logical page size to 64k. On machines
Kumar Gala98750262007-04-12 18:01:34 -0500386 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.
Benjamin Herrenschmidt3c726f82005-11-07 11:06:55 +1100390
Stephen Rothwell53bcddb2008-04-11 11:11:56 +1000391config 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
Paul Mackerrasfa282372008-01-24 08:35:13 +1100411config 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
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000419config SCHED_SMT
420 bool "SMT (Hyperthreading) scheduler support"
421 depends on PPC64 && SMP
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000422 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
427config PROC_DEVICETREE
Paul Mackerras5f296752005-10-17 20:14:59 +1000428 bool "Support for device tree in /proc"
429 depends on PROC_FS
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000430 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
Paul Mackerras5f296752005-10-17 20:14:59 +1000433 Firmware or other boot firmware. If unsure, say Y here.
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000434
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000435config CMDLINE_BOOL
436 bool "Default bootloader kernel arguments"
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000437
438config 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
448if !44x || BROKEN
Johannes Bergb28f5082008-01-15 23:17:00 -0500449config ARCH_WANTS_FREEZER_CONTROL
450 def_bool y
451 depends on ADB_PMU
452
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000453source kernel/power/Kconfig
454endif
455
456config 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
473endmenu
474
475config ISA_DMA_API
476 bool
Stephen Rothwell373a6da2007-12-21 15:37:07 +1100477 default !PPC_ISERIES || PCI
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000478
479menu "Bus options"
480
481config ISA
482 bool "Support for ISA-bus hardware"
483 depends on PPC_PREP || PPC_CHRP
Paul Mackerrasf9bd1702005-10-26 16:47:42 +1000484 select PPC_I8259
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000485 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
Christoph Lameter5ac6da62007-02-10 01:43:14 -0800492config ZONE_DMA
493 bool
494 default y
495
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000496config GENERIC_ISA_DMA
497 bool
498 depends on PPC64 || POWER4 || 6xx && !CPM2
499 default y
500
Paul Mackerras25635c72005-10-26 16:36:55 +1000501config PPC_INDIRECT_PCI
502 bool
503 depends on PCI
Becky Bruce63dafe52006-01-14 16:57:39 -0600504 default y if 40x || 44x
Paul Mackerras25635c72005-10-26 16:36:55 +1000505 default n
506
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000507config EISA
508 bool
509
510config SBUS
511 bool
512
Kumar Gala08264cb2006-01-10 21:43:56 -0600513config FSL_SOC
514 bool
515
Roy Zang55c44992007-07-10 18:44:34 +0800516config FSL_PCI
517 bool
518 select PPC_INDIRECT_PCI
519
Stefan Roese2a706912008-03-26 22:39:50 +1100520config 4xx_SOC
521 bool
522
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000523# Yes MCA RS/6000s exist but Linux-PPC does not currently support any
524config MCA
525 bool
526
527config PCI
Jon Loeliger53158622006-08-09 10:37:28 -0500528 bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
Stephen Rothwellbed59272007-03-04 17:04:44 +1100529 || PPC_MPC52xx || (EMBEDDED && (PPC_PSERIES || PPC_ISERIES)) \
Sean MacLennanf9bdedb2008-01-22 04:55:29 +1100530 || PPC_PS3 || 44x
John Rigbye177edc2008-01-29 04:28:53 +1100531 default y if !40x && !CPM2 && !8xx && !PPC_MPC512x && !PPC_83xx \
Jon Loeliger53158622006-08-09 10:37:28 -0500532 && !PPC_85xx && !PPC_86xx
David Gibsonf21f49e2007-06-13 14:52:54 +1000533 default PCI_PERMEDIA if !4xx && !CPM2 && !8xx
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000534 default PCI_QSPAN if !4xx && !CPM2 && 8xx
Michael Ellermandf87ef52007-05-08 12:58:34 +1000535 select ARCH_SUPPORTS_MSI
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000536 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
542config PCI_DOMAINS
Matthew Wilcox36e23592007-07-10 10:54:40 -0600543 def_bool PCI
544
545config PCI_SYSCALL
546 def_bool PCI
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000547
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000548config PCI_QSPAN
549 bool "QSpan PCI"
550 depends on !4xx && !CPM2 && 8xx
Paul Mackerrasf9bd1702005-10-26 16:47:42 +1000551 select PPC_I8259
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000552 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
556config PCI_8260
557 bool
558 depends on PCI && 8260
Paul Mackerras25635c72005-10-26 16:36:55 +1000559 select PPC_INDIRECT_PCI
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000560 default y
561
562config 8260_PCI9
Andrew Morton4a3ecc62006-06-01 20:36:04 -0700563 bool "Enable workaround for MPC826x erratum PCI 9"
Scott Woode00c5492007-09-14 15:41:56 -0500564 depends on PCI_8260 && !8272
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000565 default y
566
567choice
Andrew Morton4a3ecc62006-06-01 20:36:04 -0700568 prompt "IDMA channel for PCI 9 workaround"
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000569 depends on 8260_PCI9
570
571config 8260_PCI9_IDMA1
572 bool "IDMA1"
573
574config 8260_PCI9_IDMA2
575 bool "IDMA2"
576
577config 8260_PCI9_IDMA3
578 bool "IDMA3"
579
580config 8260_PCI9_IDMA4
581 bool "IDMA4"
582
583endchoice
584
Jake Moilanenbb53bb32006-06-07 16:05:46 -0500585source "drivers/pci/pcie/Kconfig"
586
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000587source "drivers/pci/Kconfig"
588
589source "drivers/pcmcia/Kconfig"
590
591source "drivers/pci/hotplug/Kconfig"
592
593endmenu
594
595menu "Advanced setup"
596 depends on PPC32
597
598config 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
608comment "Default settings for advanced configuration options are used"
609 depends on !ADVANCED_OPTIONS
610
611config 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
621config HIGHMEM_START
622 hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
623 default "0xfe000000"
624
625config 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
637config LOWMEM_SIZE
638 hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
639 default "0x30000000"
640
641config 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
652config KERNEL_START
653 hex "Virtual address of kernel base" if KERNEL_START_BOOL
654 default "0xc0000000"
655
656config 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
666config TASK_SIZE
667 hex "Size of user task space" if TASK_SIZE_BOOL
Kumar Gala4d9e55102007-10-11 13:40:21 -0500668 default "0x80000000" if PPC_PREP || PPC_8xx
669 default "0xc0000000"
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000670
671config 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
Matt LaPlante4b3f6862006-10-03 22:21:02 +0200676 of the consistent memory pool. This pool of virtual
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000677 memory is used to make consistent memory allocations.
678
679config CONSISTENT_START
680 hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
Scott Woodccf0d682007-07-16 11:28:18 -0500681 default "0xfd000000" if (NOT_COHERENT_CACHE && 8xx)
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000682 default "0xff100000" if NOT_COHERENT_CACHE
683
684config CONSISTENT_SIZE_BOOL
685 bool "Set custom consistent memory pool size"
686 depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
687 help
Matt LaPlante4b3f6862006-10-03 22:21:02 +0200688 This option allows you to set the size of the
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000689 consistent memory pool. This pool of virtual memory
690 is used to make consistent memory allocations.
691
692config CONSISTENT_SIZE
693 hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
694 default "0x00200000" if NOT_COHERENT_CACHE
695
696config 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
706config 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
712config PIN_TLB
713 bool "Pinned Kernel TLBs (860 ONLY)"
714 depends on ADVANCED_OPTIONS && 8xx
715endmenu
716
Stephen Rothwellcabb5582005-09-30 16:16:52 +1000717if PPC64
718config KERNEL_START
719 hex
Stephen Rothwelleeb2d212005-09-30 17:24:15 +1000720 default "0xc000000000000000"
Stephen Rothwellcabb5582005-09-30 16:16:52 +1000721endif
722
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000723source "net/Kconfig"
724
725source "drivers/Kconfig"
726
727source "fs/Kconfig"
728
729# XXX source "arch/ppc/8xx_io/Kconfig"
730
731# XXX source "arch/ppc/8260_io/Kconfig"
732
Li Yang98658532006-10-03 23:10:46 -0500733source "arch/powerpc/sysdev/qe_lib/Kconfig"
734
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000735source "lib/Kconfig"
736
Paul Mackerras14cf11a2005-09-26 16:04:21 +1000737source "arch/powerpc/Kconfig.debug"
738
739source "security/Kconfig"
740
741config KEYS_COMPAT
742 bool
743 depends on COMPAT && KEYS
744 default y
745
746source "crypto/Kconfig"
Domen Puncer6f668282007-09-21 00:00:11 +1000747
748config PPC_CLOCK
749 bool
750 default n
Sylvain Munaut1088a202007-09-16 20:53:25 +1000751
752config PPC_LIB_RHEAP
753 bool
754