Kconfig 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  1. # For a description of the syntax of this configuration file,
  2. # see Documentation/kbuild/kconfig-language.txt.
  3. #
  4. mainmenu "Linux/PowerPC Kernel Configuration"
  5. config PPC64
  6. bool "64-bit kernel"
  7. default n
  8. help
  9. This option selects whether a 32-bit or a 64-bit kernel
  10. will be built.
  11. config PPC32
  12. bool
  13. default y if !PPC64
  14. config 64BIT
  15. bool
  16. default y if PPC64
  17. config PPC_MERGE
  18. def_bool y
  19. config MMU
  20. bool
  21. default y
  22. config GENERIC_HARDIRQS
  23. bool
  24. default y
  25. config IRQ_PER_CPU
  26. bool
  27. default y
  28. config RWSEM_GENERIC_SPINLOCK
  29. bool
  30. config RWSEM_XCHGADD_ALGORITHM
  31. bool
  32. default y
  33. config GENERIC_HWEIGHT
  34. bool
  35. default y
  36. config GENERIC_CALIBRATE_DELAY
  37. bool
  38. default y
  39. config GENERIC_FIND_NEXT_BIT
  40. bool
  41. default y
  42. config PPC
  43. bool
  44. default y
  45. config EARLY_PRINTK
  46. bool
  47. default y
  48. config COMPAT
  49. bool
  50. default y if PPC64
  51. config SYSVIPC_COMPAT
  52. bool
  53. depends on COMPAT && SYSVIPC
  54. default y
  55. # All PPC32s use generic nvram driver through ppc_md
  56. config GENERIC_NVRAM
  57. bool
  58. default y if PPC32
  59. config SCHED_NO_NO_OMIT_FRAME_POINTER
  60. bool
  61. default y
  62. config ARCH_MAY_HAVE_PC_FDC
  63. bool
  64. default y
  65. config PPC_OF
  66. def_bool y
  67. config PPC_UDBG_16550
  68. bool
  69. default n
  70. config GENERIC_TBSYNC
  71. bool
  72. default y if PPC32 && SMP
  73. default n
  74. config AUDIT_ARCH
  75. bool
  76. default y
  77. config DEFAULT_UIMAGE
  78. bool
  79. help
  80. Used to allow a board to specify it wants a uImage built by default
  81. default n
  82. menu "Processor support"
  83. choice
  84. prompt "Processor Type"
  85. depends on PPC32
  86. default 6xx
  87. config CLASSIC32
  88. bool "6xx/7xx/74xx"
  89. select PPC_FPU
  90. select 6xx
  91. help
  92. There are four families of PowerPC chips supported. The more common
  93. types (601, 603, 604, 740, 750, 7400), the Motorola embedded
  94. versions (821, 823, 850, 855, 860, 52xx, 82xx, 83xx), the AMCC
  95. embedded versions (403 and 405) and the high end 64 bit Power
  96. processors (POWER 3, POWER4, and IBM PPC970 also known as G5).
  97. Unless you are building a kernel for one of the embedded processor
  98. systems, 64 bit IBM RS/6000 or an Apple G5, choose 6xx.
  99. Note that the kernel runs in 32-bit mode even on 64-bit chips.
  100. config PPC_52xx
  101. bool "Freescale 52xx"
  102. select 6xx
  103. select PPC_FPU
  104. config PPC_82xx
  105. bool "Freescale 82xx"
  106. select 6xx
  107. select PPC_FPU
  108. config PPC_83xx
  109. bool "Freescale 83xx"
  110. select 6xx
  111. select FSL_SOC
  112. select 83xx
  113. select PPC_FPU
  114. config PPC_85xx
  115. bool "Freescale 85xx"
  116. select E500
  117. select FSL_SOC
  118. select 85xx
  119. config PPC_86xx
  120. bool "Freescale 86xx"
  121. select 6xx
  122. select FSL_SOC
  123. select PPC_FPU
  124. select ALTIVEC
  125. help
  126. The Freescale E600 SoCs have 74xx cores.
  127. config 40x
  128. bool "AMCC 40x"
  129. config 44x
  130. bool "AMCC 44x"
  131. config 8xx
  132. bool "Freescale 8xx"
  133. config E200
  134. bool "Freescale e200"
  135. endchoice
  136. config POWER4_ONLY
  137. bool "Optimize for POWER4"
  138. depends on PPC64
  139. default n
  140. ---help---
  141. Cause the compiler to optimize for POWER4/POWER5/PPC970 processors.
  142. The resulting binary will not work on POWER3 or RS64 processors
  143. when compiled with binutils 2.15 or later.
  144. config POWER3
  145. bool
  146. depends on PPC64
  147. default y if !POWER4_ONLY
  148. config POWER4
  149. depends on PPC64
  150. def_bool y
  151. config 6xx
  152. bool
  153. # this is temp to handle compat with arch=ppc
  154. config 83xx
  155. bool
  156. # this is temp to handle compat with arch=ppc
  157. config 85xx
  158. bool
  159. config E500
  160. bool
  161. config PPC_FPU
  162. bool
  163. default y if PPC64
  164. config BOOKE
  165. bool
  166. depends on E200 || E500
  167. default y
  168. config FSL_BOOKE
  169. bool
  170. depends on E200 || E500
  171. default y
  172. config PTE_64BIT
  173. bool
  174. depends on 44x || E500
  175. default y if 44x
  176. default y if E500 && PHYS_64BIT
  177. config PHYS_64BIT
  178. bool 'Large physical address support' if E500
  179. depends on 44x || E500
  180. default y if 44x
  181. ---help---
  182. This option enables kernel support for larger than 32-bit physical
  183. addresses. This features is not be available on all e500 cores.
  184. If in doubt, say N here.
  185. config ALTIVEC
  186. bool "AltiVec Support"
  187. depends on CLASSIC32 || POWER4
  188. ---help---
  189. This option enables kernel support for the Altivec extensions to the
  190. PowerPC processor. The kernel currently supports saving and restoring
  191. altivec registers, and turning on the 'altivec enable' bit so user
  192. processes can execute altivec instructions.
  193. This option is only usefully if you have a processor that supports
  194. altivec (G4, otherwise known as 74xx series), but does not have
  195. any affect on a non-altivec cpu (it does, however add code to the
  196. kernel).
  197. If in doubt, say Y here.
  198. config SPE
  199. bool "SPE Support"
  200. depends on E200 || E500
  201. default y
  202. ---help---
  203. This option enables kernel support for the Signal Processing
  204. Extensions (SPE) to the PowerPC processor. The kernel currently
  205. supports saving and restoring SPE registers, and turning on the
  206. 'spe enable' bit so user processes can execute SPE instructions.
  207. This option is only useful if you have a processor that supports
  208. SPE (e500, otherwise known as 85xx series), but does not have any
  209. effect on a non-spe cpu (it does, however add code to the kernel).
  210. If in doubt, say Y here.
  211. config PPC_STD_MMU
  212. bool
  213. depends on 6xx || POWER3 || POWER4 || PPC64
  214. default y
  215. config PPC_STD_MMU_32
  216. def_bool y
  217. depends on PPC_STD_MMU && PPC32
  218. config VIRT_CPU_ACCOUNTING
  219. bool "Deterministic task and CPU time accounting"
  220. depends on PPC64
  221. default y
  222. help
  223. Select this option to enable more accurate task and CPU time
  224. accounting. This is done by reading a CPU counter on each
  225. kernel entry and exit and on transitions within the kernel
  226. between system, softirq and hardirq state, so there is a
  227. small performance impact. This also enables accounting of
  228. stolen time on logically-partitioned systems running on
  229. IBM POWER5-based machines.
  230. If in doubt, say Y here.
  231. config SMP
  232. depends on PPC_STD_MMU
  233. bool "Symmetric multi-processing support"
  234. ---help---
  235. This enables support for systems with more than one CPU. If you have
  236. a system with only one CPU, say N. If you have a system with more
  237. than one CPU, say Y. Note that the kernel does not currently
  238. support SMP machines with 603/603e/603ev or PPC750 ("G3") processors
  239. since they have inadequate hardware support for multiprocessor
  240. operation.
  241. If you say N here, the kernel will run on single and multiprocessor
  242. machines, but will use only one CPU of a multiprocessor machine. If
  243. you say Y here, the kernel will run on single-processor machines.
  244. On a single-processor machine, the kernel will run faster if you say
  245. N here.
  246. If you don't know what to do here, say N.
  247. config NR_CPUS
  248. int "Maximum number of CPUs (2-128)"
  249. range 2 128
  250. depends on SMP
  251. default "32" if PPC64
  252. default "4"
  253. config NOT_COHERENT_CACHE
  254. bool
  255. depends on 4xx || 8xx || E200
  256. default y
  257. endmenu
  258. source "init/Kconfig"
  259. menu "Platform support"
  260. depends on PPC64 || CLASSIC32
  261. choice
  262. prompt "Machine type"
  263. default PPC_MULTIPLATFORM
  264. config PPC_MULTIPLATFORM
  265. bool "Generic desktop/server/laptop"
  266. help
  267. Select this option if configuring for an IBM pSeries or
  268. RS/6000 machine, an Apple machine, or a PReP, CHRP,
  269. Maple or Cell-based machine.
  270. config PPC_ISERIES
  271. bool "IBM Legacy iSeries"
  272. depends on PPC64
  273. config EMBEDDED6xx
  274. bool "Embedded 6xx/7xx/7xxx-based board"
  275. depends on PPC32 && (BROKEN||BROKEN_ON_SMP)
  276. config APUS
  277. bool "Amiga-APUS"
  278. depends on PPC32 && BROKEN
  279. help
  280. Select APUS if configuring for a PowerUP Amiga.
  281. More information is available at:
  282. <http://linux-apus.sourceforge.net/>.
  283. endchoice
  284. config PPC_PSERIES
  285. depends on PPC_MULTIPLATFORM && PPC64
  286. bool "IBM pSeries & new (POWER5-based) iSeries"
  287. select MPIC
  288. select PPC_I8259
  289. select PPC_RTAS
  290. select RTAS_ERROR_LOGGING
  291. select PPC_UDBG_16550
  292. default y
  293. config PPC_CHRP
  294. bool "Common Hardware Reference Platform (CHRP) based machines"
  295. depends on PPC_MULTIPLATFORM && PPC32
  296. select MPIC
  297. select PPC_I8259
  298. select PPC_INDIRECT_PCI
  299. select PPC_RTAS
  300. select PPC_MPC106
  301. select PPC_UDBG_16550
  302. default y
  303. config PPC_PMAC
  304. bool "Apple PowerMac based machines"
  305. depends on PPC_MULTIPLATFORM
  306. select MPIC
  307. select PPC_INDIRECT_PCI if PPC32
  308. select PPC_MPC106 if PPC32
  309. default y
  310. config PPC_PMAC64
  311. bool
  312. depends on PPC_PMAC && POWER4
  313. select MPIC
  314. select U3_DART
  315. select MPIC_BROKEN_U3
  316. select GENERIC_TBSYNC
  317. select PPC_970_NAP
  318. default y
  319. config PPC_PREP
  320. bool "PowerPC Reference Platform (PReP) based machines"
  321. depends on PPC_MULTIPLATFORM && PPC32 && BROKEN
  322. select MPIC
  323. select PPC_I8259
  324. select PPC_INDIRECT_PCI
  325. select PPC_UDBG_16550
  326. default y
  327. config PPC_MAPLE
  328. depends on PPC_MULTIPLATFORM && PPC64
  329. bool "Maple 970FX Evaluation Board"
  330. select MPIC
  331. select U3_DART
  332. select MPIC_BROKEN_U3
  333. select GENERIC_TBSYNC
  334. select PPC_UDBG_16550
  335. select PPC_970_NAP
  336. default n
  337. help
  338. This option enables support for the Maple 970FX Evaluation Board.
  339. For more informations, refer to <http://www.970eval.com>
  340. config PPC_PASEMI
  341. depends on PPC_MULTIPLATFORM && PPC64
  342. bool "PA Semi SoC-based platforms"
  343. default n
  344. select MPIC
  345. select PPC_UDBG_16550
  346. select GENERIC_TBSYNC
  347. help
  348. This option enables support for PA Semi's PWRficient line
  349. of SoC processors, including PA6T-1682M
  350. config PPC_CELL
  351. bool
  352. default n
  353. config PPC_CELL_NATIVE
  354. bool
  355. select PPC_CELL
  356. default n
  357. config PPC_IBM_CELL_BLADE
  358. bool "IBM Cell Blade"
  359. depends on PPC_MULTIPLATFORM && PPC64
  360. select PPC_CELL_NATIVE
  361. select PPC_RTAS
  362. select MMIO_NVRAM
  363. select PPC_UDBG_16550
  364. select UDBG_RTAS_CONSOLE
  365. config UDBG_RTAS_CONSOLE
  366. bool "RTAS based debug console"
  367. depends on PPC_RTAS
  368. default n
  369. config XICS
  370. depends on PPC_PSERIES
  371. bool
  372. default y
  373. config U3_DART
  374. bool
  375. depends on PPC_MULTIPLATFORM && PPC64
  376. default n
  377. config PPC_RTAS
  378. bool
  379. default n
  380. config RTAS_ERROR_LOGGING
  381. bool
  382. depends on PPC_RTAS
  383. default n
  384. config RTAS_PROC
  385. bool "Proc interface to RTAS"
  386. depends on PPC_RTAS
  387. default y
  388. config RTAS_FLASH
  389. tristate "Firmware flash interface"
  390. depends on PPC64 && RTAS_PROC
  391. config MMIO_NVRAM
  392. bool
  393. default n
  394. config MPIC_BROKEN_U3
  395. bool
  396. depends on PPC_MAPLE
  397. default y
  398. config IBMVIO
  399. depends on PPC_PSERIES || PPC_ISERIES
  400. bool
  401. default y
  402. config IBMEBUS
  403. depends on PPC_PSERIES
  404. bool "Support for GX bus based adapters"
  405. help
  406. Bus device driver for GX bus based adapters.
  407. config PPC_MPC106
  408. bool
  409. default n
  410. config PPC_970_NAP
  411. bool
  412. default n
  413. source "drivers/cpufreq/Kconfig"
  414. config CPU_FREQ_PMAC
  415. bool "Support for Apple PowerBooks"
  416. depends on CPU_FREQ && ADB_PMU && PPC32
  417. select CPU_FREQ_TABLE
  418. help
  419. This adds support for frequency switching on Apple PowerBooks,
  420. this currently includes some models of iBook & Titanium
  421. PowerBook.
  422. config CPU_FREQ_PMAC64
  423. bool "Support for some Apple G5s"
  424. depends on CPU_FREQ && PPC64
  425. select CPU_FREQ_TABLE
  426. help
  427. This adds support for frequency switching on Apple iMac G5,
  428. and some of the more recent desktop G5 machines as well.
  429. config PPC601_SYNC_FIX
  430. bool "Workarounds for PPC601 bugs"
  431. depends on 6xx && (PPC_PREP || PPC_PMAC)
  432. help
  433. Some versions of the PPC601 (the first PowerPC chip) have bugs which
  434. mean that extra synchronization instructions are required near
  435. certain instructions, typically those that make major changes to the
  436. CPU state. These extra instructions reduce performance slightly.
  437. If you say N here, these extra instructions will not be included,
  438. resulting in a kernel which will run faster but may not run at all
  439. on some systems with the PPC601 chip.
  440. If in doubt, say Y here.
  441. config TAU
  442. bool "On-chip CPU temperature sensor support"
  443. depends on 6xx
  444. help
  445. G3 and G4 processors have an on-chip temperature sensor called the
  446. 'Thermal Assist Unit (TAU)', which, in theory, can measure the on-die
  447. temperature within 2-4 degrees Celsius. This option shows the current
  448. on-die temperature in /proc/cpuinfo if the cpu supports it.
  449. Unfortunately, on some chip revisions, this sensor is very inaccurate
  450. and in many cases, does not work at all, so don't assume the cpu
  451. temp is actually what /proc/cpuinfo says it is.
  452. config TAU_INT
  453. bool "Interrupt driven TAU driver (DANGEROUS)"
  454. depends on TAU
  455. ---help---
  456. The TAU supports an interrupt driven mode which causes an interrupt
  457. whenever the temperature goes out of range. This is the fastest way
  458. to get notified the temp has exceeded a range. With this option off,
  459. a timer is used to re-check the temperature periodically.
  460. However, on some cpus it appears that the TAU interrupt hardware
  461. is buggy and can cause a situation which would lead unexplained hard
  462. lockups.
  463. Unless you are extending the TAU driver, or enjoy kernel/hardware
  464. debugging, leave this option off.
  465. config TAU_AVERAGE
  466. bool "Average high and low temp"
  467. depends on TAU
  468. ---help---
  469. The TAU hardware can compare the temperature to an upper and lower
  470. bound. The default behavior is to show both the upper and lower
  471. bound in /proc/cpuinfo. If the range is large, the temperature is
  472. either changing a lot, or the TAU hardware is broken (likely on some
  473. G4's). If the range is small (around 4 degrees), the temperature is
  474. relatively stable. If you say Y here, a single temperature value,
  475. halfway between the upper and lower bounds, will be reported in
  476. /proc/cpuinfo.
  477. If in doubt, say N here.
  478. config PPC_TODC
  479. depends on EMBEDDED6xx
  480. bool "Generic Time-of-day Clock (TODC) support"
  481. ---help---
  482. This adds support for many TODC/RTC chips.
  483. endmenu
  484. source arch/powerpc/platforms/embedded6xx/Kconfig
  485. source arch/powerpc/platforms/4xx/Kconfig
  486. source arch/powerpc/platforms/83xx/Kconfig
  487. source arch/powerpc/platforms/85xx/Kconfig
  488. source arch/powerpc/platforms/86xx/Kconfig
  489. source arch/powerpc/platforms/8xx/Kconfig
  490. source arch/powerpc/platforms/cell/Kconfig
  491. menu "Kernel options"
  492. config HIGHMEM
  493. bool "High memory support"
  494. depends on PPC32
  495. source kernel/Kconfig.hz
  496. source kernel/Kconfig.preempt
  497. source "fs/Kconfig.binfmt"
  498. # We optimistically allocate largepages from the VM, so make the limit
  499. # large enough (16MB). This badly named config option is actually
  500. # max order + 1
  501. config FORCE_MAX_ZONEORDER
  502. int
  503. depends on PPC64
  504. default "9" if PPC_64K_PAGES
  505. default "13"
  506. config MATH_EMULATION
  507. bool "Math emulation"
  508. depends on 4xx || 8xx || E200 || E500
  509. ---help---
  510. Some PowerPC chips designed for embedded applications do not have
  511. a floating-point unit and therefore do not implement the
  512. floating-point instructions in the PowerPC instruction set. If you
  513. say Y here, the kernel will include code to emulate a floating-point
  514. unit, which will allow programs that use floating-point
  515. instructions to run.
  516. config IOMMU_VMERGE
  517. bool "Enable IOMMU virtual merging (EXPERIMENTAL)"
  518. depends on EXPERIMENTAL && PPC64
  519. default n
  520. help
  521. Cause IO segments sent to a device for DMA to be merged virtually
  522. by the IOMMU when they happen to have been allocated contiguously.
  523. This doesn't add pressure to the IOMMU allocator. However, some
  524. drivers don't support getting large merged segments coming back
  525. from *_map_sg(). Say Y if you know the drivers you are using are
  526. properly handling this case.
  527. config HOTPLUG_CPU
  528. bool "Support for enabling/disabling CPUs"
  529. depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
  530. ---help---
  531. Say Y here to be able to disable and re-enable individual
  532. CPUs at runtime on SMP machines.
  533. Say N if you are unsure.
  534. config ARCH_ENABLE_MEMORY_HOTPLUG
  535. def_bool y
  536. config KEXEC
  537. bool "kexec system call (EXPERIMENTAL)"
  538. depends on PPC_MULTIPLATFORM && EXPERIMENTAL
  539. help
  540. kexec is a system call that implements the ability to shutdown your
  541. current kernel, and to start another kernel. It is like a reboot
  542. but it is independent of the system firmware. And like a reboot
  543. you can start any kernel with it, not just Linux.
  544. The name comes from the similarity to the exec system call.
  545. It is an ongoing process to be certain the hardware in a machine
  546. is properly shutdown, so do not be surprised if this code does not
  547. initially work for you. It may help to enable device hotplugging
  548. support. As of this writing the exact hardware interface is
  549. strongly in flux, so no good recommendation can be made.
  550. config CRASH_DUMP
  551. bool "Build a kdump crash kernel (EXPERIMENTAL)"
  552. depends on PPC_MULTIPLATFORM && PPC64 && EXPERIMENTAL
  553. help
  554. Build a kernel suitable for use as a kdump capture kernel.
  555. The kernel will be linked at a different address than normal, and
  556. so can only be used for Kdump.
  557. Don't change this unless you know what you are doing.
  558. config EMBEDDEDBOOT
  559. bool
  560. depends on 8xx || 8260
  561. default y
  562. config PC_KEYBOARD
  563. bool "PC PS/2 style Keyboard"
  564. depends on 4xx || CPM2
  565. config PPCBUG_NVRAM
  566. bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
  567. default y if PPC_PREP
  568. config IRQ_ALL_CPUS
  569. bool "Distribute interrupts on all CPUs by default"
  570. depends on SMP && !MV64360
  571. help
  572. This option gives the kernel permission to distribute IRQs across
  573. multiple CPUs. Saying N here will route all IRQs to the first
  574. CPU. Generally saying Y is safe, although some problems have been
  575. reported with SMP Power Macintoshes with this option enabled.
  576. source "arch/powerpc/platforms/pseries/Kconfig"
  577. config NUMA
  578. bool "NUMA support"
  579. depends on PPC64
  580. default y if SMP && PPC_PSERIES
  581. config NODES_SHIFT
  582. int
  583. default "4"
  584. depends on NEED_MULTIPLE_NODES
  585. config ARCH_SELECT_MEMORY_MODEL
  586. def_bool y
  587. depends on PPC64
  588. config ARCH_FLATMEM_ENABLE
  589. def_bool y
  590. depends on (PPC64 && !NUMA) || PPC32
  591. config ARCH_SPARSEMEM_ENABLE
  592. def_bool y
  593. depends on PPC64
  594. config ARCH_SPARSEMEM_DEFAULT
  595. def_bool y
  596. depends on SMP && PPC_PSERIES
  597. source "mm/Kconfig"
  598. config HAVE_ARCH_EARLY_PFN_TO_NID
  599. def_bool y
  600. depends on NEED_MULTIPLE_NODES
  601. config ARCH_MEMORY_PROBE
  602. def_bool y
  603. depends on MEMORY_HOTPLUG
  604. config PPC_64K_PAGES
  605. bool "64k page size"
  606. depends on PPC64
  607. help
  608. This option changes the kernel logical page size to 64k. On machines
  609. without processor support for 64k pages, the kernel will simulate
  610. them by loading each individual 4k page on demand transparently,
  611. while on hardware with such support, it will be used to map
  612. normal application pages.
  613. config SCHED_SMT
  614. bool "SMT (Hyperthreading) scheduler support"
  615. depends on PPC64 && SMP
  616. help
  617. SMT scheduler support improves the CPU scheduler's decision making
  618. when dealing with POWER5 cpus at a cost of slightly increased
  619. overhead in some places. If unsure say N here.
  620. config PROC_DEVICETREE
  621. bool "Support for device tree in /proc"
  622. depends on PROC_FS
  623. help
  624. This option adds a device-tree directory under /proc which contains
  625. an image of the device tree that the kernel copies from Open
  626. Firmware or other boot firmware. If unsure, say Y here.
  627. source "arch/powerpc/platforms/prep/Kconfig"
  628. config CMDLINE_BOOL
  629. bool "Default bootloader kernel arguments"
  630. depends on !PPC_ISERIES
  631. config CMDLINE
  632. string "Initial kernel command string"
  633. depends on CMDLINE_BOOL
  634. default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
  635. help
  636. On some platforms, there is currently no way for the boot loader to
  637. pass arguments to the kernel. For these platforms, you can supply
  638. some command-line options at build time by entering them here. In
  639. most cases you will need to specify the root device here.
  640. if !44x || BROKEN
  641. source kernel/power/Kconfig
  642. endif
  643. config SECCOMP
  644. bool "Enable seccomp to safely compute untrusted bytecode"
  645. depends on PROC_FS
  646. default y
  647. help
  648. This kernel feature is useful for number crunching applications
  649. that may need to compute untrusted bytecode during their
  650. execution. By using pipes or other transports made available to
  651. the process as file descriptors supporting the read/write
  652. syscalls, it's possible to isolate those applications in
  653. their own address space using seccomp. Once seccomp is
  654. enabled via /proc/<pid>/seccomp, it cannot be disabled
  655. and the task is only allowed to execute a few safe syscalls
  656. defined by each seccomp mode.
  657. If unsure, say Y. Only embedded should say N here.
  658. endmenu
  659. config ISA_DMA_API
  660. bool
  661. default y
  662. menu "Bus options"
  663. config ISA
  664. bool "Support for ISA-bus hardware"
  665. depends on PPC_PREP || PPC_CHRP
  666. select PPC_I8259
  667. help
  668. Find out whether you have ISA slots on your motherboard. ISA is the
  669. name of a bus system, i.e. the way the CPU talks to the other stuff
  670. inside your box. If you have an Apple machine, say N here; if you
  671. have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
  672. you have an embedded board, consult your board documentation.
  673. config GENERIC_ISA_DMA
  674. bool
  675. depends on PPC64 || POWER4 || 6xx && !CPM2
  676. default y
  677. config MPIC
  678. bool
  679. default n
  680. config MPIC_WEIRD
  681. bool
  682. default n
  683. config PPC_I8259
  684. bool
  685. default n
  686. config PPC_INDIRECT_PCI
  687. bool
  688. depends on PCI
  689. default y if 40x || 44x
  690. default n
  691. config EISA
  692. bool
  693. config SBUS
  694. bool
  695. config FSL_SOC
  696. bool
  697. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  698. config MCA
  699. bool
  700. config PCI
  701. bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
  702. || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES) || MPC7448HPC2
  703. default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx \
  704. && !PPC_85xx && !PPC_86xx
  705. default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
  706. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  707. help
  708. Find out whether your system includes a PCI bus. PCI is the name of
  709. a bus system, i.e. the way the CPU talks to the other stuff inside
  710. your box. If you say Y here, the kernel will include drivers and
  711. infrastructure code to support PCI bus devices.
  712. config PCI_DOMAINS
  713. bool
  714. default PCI
  715. config PCI_QSPAN
  716. bool "QSpan PCI"
  717. depends on !4xx && !CPM2 && 8xx
  718. select PPC_I8259
  719. help
  720. Say Y here if you have a system based on a Motorola 8xx-series
  721. embedded processor with a QSPAN PCI interface, otherwise say N.
  722. config PCI_8260
  723. bool
  724. depends on PCI && 8260
  725. select PPC_INDIRECT_PCI
  726. default y
  727. config 8260_PCI9
  728. bool "Enable workaround for MPC826x erratum PCI 9"
  729. depends on PCI_8260 && !ADS8272
  730. default y
  731. choice
  732. prompt "IDMA channel for PCI 9 workaround"
  733. depends on 8260_PCI9
  734. config 8260_PCI9_IDMA1
  735. bool "IDMA1"
  736. config 8260_PCI9_IDMA2
  737. bool "IDMA2"
  738. config 8260_PCI9_IDMA3
  739. bool "IDMA3"
  740. config 8260_PCI9_IDMA4
  741. bool "IDMA4"
  742. endchoice
  743. source "drivers/pci/pcie/Kconfig"
  744. source "drivers/pci/Kconfig"
  745. source "drivers/pcmcia/Kconfig"
  746. source "drivers/pci/hotplug/Kconfig"
  747. endmenu
  748. menu "Advanced setup"
  749. depends on PPC32
  750. config ADVANCED_OPTIONS
  751. bool "Prompt for advanced kernel configuration options"
  752. help
  753. This option will enable prompting for a variety of advanced kernel
  754. configuration options. These options can cause the kernel to not
  755. work if they are set incorrectly, but can be used to optimize certain
  756. aspects of kernel memory management.
  757. Unless you know what you are doing, say N here.
  758. comment "Default settings for advanced configuration options are used"
  759. depends on !ADVANCED_OPTIONS
  760. config HIGHMEM_START_BOOL
  761. bool "Set high memory pool address"
  762. depends on ADVANCED_OPTIONS && HIGHMEM
  763. help
  764. This option allows you to set the base address of the kernel virtual
  765. area used to map high memory pages. This can be useful in
  766. optimizing the layout of kernel virtual memory.
  767. Say N here unless you know what you are doing.
  768. config HIGHMEM_START
  769. hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
  770. default "0xfe000000"
  771. config LOWMEM_SIZE_BOOL
  772. bool "Set maximum low memory"
  773. depends on ADVANCED_OPTIONS
  774. help
  775. This option allows you to set the maximum amount of memory which
  776. will be used as "low memory", that is, memory which the kernel can
  777. access directly, without having to set up a kernel virtual mapping.
  778. This can be useful in optimizing the layout of kernel virtual
  779. memory.
  780. Say N here unless you know what you are doing.
  781. config LOWMEM_SIZE
  782. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  783. default "0x30000000"
  784. config KERNEL_START_BOOL
  785. bool "Set custom kernel base address"
  786. depends on ADVANCED_OPTIONS
  787. help
  788. This option allows you to set the kernel virtual address at which
  789. the kernel will map low memory (the kernel image will be linked at
  790. this address). This can be useful in optimizing the virtual memory
  791. layout of the system.
  792. Say N here unless you know what you are doing.
  793. config KERNEL_START
  794. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  795. default "0xc0000000"
  796. config TASK_SIZE_BOOL
  797. bool "Set custom user task size"
  798. depends on ADVANCED_OPTIONS
  799. help
  800. This option allows you to set the amount of virtual address space
  801. allocated to user tasks. This can be useful in optimizing the
  802. virtual memory layout of the system.
  803. Say N here unless you know what you are doing.
  804. config TASK_SIZE
  805. hex "Size of user task space" if TASK_SIZE_BOOL
  806. default "0x80000000"
  807. config CONSISTENT_START_BOOL
  808. bool "Set custom consistent memory pool address"
  809. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  810. help
  811. This option allows you to set the base virtual address
  812. of the the consistent memory pool. This pool of virtual
  813. memory is used to make consistent memory allocations.
  814. config CONSISTENT_START
  815. hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
  816. default "0xff100000" if NOT_COHERENT_CACHE
  817. config CONSISTENT_SIZE_BOOL
  818. bool "Set custom consistent memory pool size"
  819. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  820. help
  821. This option allows you to set the size of the the
  822. consistent memory pool. This pool of virtual memory
  823. is used to make consistent memory allocations.
  824. config CONSISTENT_SIZE
  825. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  826. default "0x00200000" if NOT_COHERENT_CACHE
  827. config BOOT_LOAD_BOOL
  828. bool "Set the boot link/load address"
  829. depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
  830. help
  831. This option allows you to set the initial load address of the zImage
  832. or zImage.initrd file. This can be useful if you are on a board
  833. which has a small amount of memory.
  834. Say N here unless you know what you are doing.
  835. config BOOT_LOAD
  836. hex "Link/load address for booting" if BOOT_LOAD_BOOL
  837. default "0x00400000" if 40x || 8xx || 8260
  838. default "0x01000000" if 44x
  839. default "0x00800000"
  840. config PIN_TLB
  841. bool "Pinned Kernel TLBs (860 ONLY)"
  842. depends on ADVANCED_OPTIONS && 8xx
  843. endmenu
  844. if PPC64
  845. config KERNEL_START
  846. hex
  847. default "0xc000000000000000"
  848. endif
  849. source "net/Kconfig"
  850. source "drivers/Kconfig"
  851. source "fs/Kconfig"
  852. # XXX source "arch/ppc/8xx_io/Kconfig"
  853. # XXX source "arch/ppc/8260_io/Kconfig"
  854. source "arch/powerpc/platforms/iseries/Kconfig"
  855. source "lib/Kconfig"
  856. menu "Instrumentation Support"
  857. depends on EXPERIMENTAL
  858. source "arch/powerpc/oprofile/Kconfig"
  859. config KPROBES
  860. bool "Kprobes (EXPERIMENTAL)"
  861. depends on PPC64 && EXPERIMENTAL && MODULES
  862. help
  863. Kprobes allows you to trap at almost any kernel address and
  864. execute a callback function. register_kprobe() establishes
  865. a probepoint and specifies the callback. Kprobes is useful
  866. for kernel debugging, non-intrusive instrumentation and testing.
  867. If in doubt, say "N".
  868. endmenu
  869. source "arch/powerpc/Kconfig.debug"
  870. source "security/Kconfig"
  871. config KEYS_COMPAT
  872. bool
  873. depends on COMPAT && KEYS
  874. default y
  875. source "crypto/Kconfig"