Kconfig 25 KB

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