Kconfig 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092
  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/82xx/Kconfig
  487. source arch/powerpc/platforms/83xx/Kconfig
  488. source arch/powerpc/platforms/85xx/Kconfig
  489. source arch/powerpc/platforms/86xx/Kconfig
  490. source arch/powerpc/platforms/8xx/Kconfig
  491. source arch/powerpc/platforms/cell/Kconfig
  492. menu "Kernel options"
  493. config HIGHMEM
  494. bool "High memory support"
  495. depends on PPC32
  496. source kernel/Kconfig.hz
  497. source kernel/Kconfig.preempt
  498. source "fs/Kconfig.binfmt"
  499. # We optimistically allocate largepages from the VM, so make the limit
  500. # large enough (16MB). This badly named config option is actually
  501. # max order + 1
  502. config FORCE_MAX_ZONEORDER
  503. int
  504. depends on PPC64
  505. default "9" if PPC_64K_PAGES
  506. default "13"
  507. config MATH_EMULATION
  508. bool "Math emulation"
  509. depends on 4xx || 8xx || E200 || E500
  510. ---help---
  511. Some PowerPC chips designed for embedded applications do not have
  512. a floating-point unit and therefore do not implement the
  513. floating-point instructions in the PowerPC instruction set. If you
  514. say Y here, the kernel will include code to emulate a floating-point
  515. unit, which will allow programs that use floating-point
  516. instructions to run.
  517. config IOMMU_VMERGE
  518. bool "Enable IOMMU virtual merging (EXPERIMENTAL)"
  519. depends on EXPERIMENTAL && PPC64
  520. default n
  521. help
  522. Cause IO segments sent to a device for DMA to be merged virtually
  523. by the IOMMU when they happen to have been allocated contiguously.
  524. This doesn't add pressure to the IOMMU allocator. However, some
  525. drivers don't support getting large merged segments coming back
  526. from *_map_sg(). Say Y if you know the drivers you are using are
  527. properly handling this case.
  528. config HOTPLUG_CPU
  529. bool "Support for enabling/disabling CPUs"
  530. depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
  531. ---help---
  532. Say Y here to be able to disable and re-enable individual
  533. CPUs at runtime on SMP machines.
  534. Say N if you are unsure.
  535. config ARCH_ENABLE_MEMORY_HOTPLUG
  536. def_bool y
  537. config KEXEC
  538. bool "kexec system call (EXPERIMENTAL)"
  539. depends on PPC_MULTIPLATFORM && EXPERIMENTAL
  540. help
  541. kexec is a system call that implements the ability to shutdown your
  542. current kernel, and to start another kernel. It is like a reboot
  543. but it is independent of the system firmware. And like a reboot
  544. you can start any kernel with it, not just Linux.
  545. The name comes from the similarity to the exec system call.
  546. It is an ongoing process to be certain the hardware in a machine
  547. is properly shutdown, so do not be surprised if this code does not
  548. initially work for you. It may help to enable device hotplugging
  549. support. As of this writing the exact hardware interface is
  550. strongly in flux, so no good recommendation can be made.
  551. config CRASH_DUMP
  552. bool "Build a kdump crash kernel (EXPERIMENTAL)"
  553. depends on PPC_MULTIPLATFORM && PPC64 && EXPERIMENTAL
  554. help
  555. Build a kernel suitable for use as a kdump capture kernel.
  556. The kernel will be linked at a different address than normal, and
  557. so can only be used for Kdump.
  558. Don't change this unless you know what you are doing.
  559. config EMBEDDEDBOOT
  560. bool
  561. depends on 8xx || 8260
  562. default y
  563. config PC_KEYBOARD
  564. bool "PC PS/2 style Keyboard"
  565. depends on 4xx || CPM2
  566. config PPCBUG_NVRAM
  567. bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
  568. default y if PPC_PREP
  569. config IRQ_ALL_CPUS
  570. bool "Distribute interrupts on all CPUs by default"
  571. depends on SMP && !MV64360
  572. help
  573. This option gives the kernel permission to distribute IRQs across
  574. multiple CPUs. Saying N here will route all IRQs to the first
  575. CPU. Generally saying Y is safe, although some problems have been
  576. reported with SMP Power Macintoshes with this option enabled.
  577. source "arch/powerpc/platforms/pseries/Kconfig"
  578. config NUMA
  579. bool "NUMA support"
  580. depends on PPC64
  581. default y if SMP && PPC_PSERIES
  582. config NODES_SHIFT
  583. int
  584. default "4"
  585. depends on NEED_MULTIPLE_NODES
  586. config ARCH_SELECT_MEMORY_MODEL
  587. def_bool y
  588. depends on PPC64
  589. config ARCH_FLATMEM_ENABLE
  590. def_bool y
  591. depends on (PPC64 && !NUMA) || PPC32
  592. config ARCH_SPARSEMEM_ENABLE
  593. def_bool y
  594. depends on PPC64
  595. config ARCH_SPARSEMEM_DEFAULT
  596. def_bool y
  597. depends on SMP && PPC_PSERIES
  598. source "mm/Kconfig"
  599. config HAVE_ARCH_EARLY_PFN_TO_NID
  600. def_bool y
  601. depends on NEED_MULTIPLE_NODES
  602. config ARCH_MEMORY_PROBE
  603. def_bool y
  604. depends on MEMORY_HOTPLUG
  605. config PPC_64K_PAGES
  606. bool "64k page size"
  607. depends on PPC64
  608. help
  609. This option changes the kernel logical page size to 64k. On machines
  610. without processor support for 64k pages, the kernel will simulate
  611. them by loading each individual 4k page on demand transparently,
  612. while on hardware with such support, it will be used to map
  613. normal application pages.
  614. config SCHED_SMT
  615. bool "SMT (Hyperthreading) scheduler support"
  616. depends on PPC64 && SMP
  617. help
  618. SMT scheduler support improves the CPU scheduler's decision making
  619. when dealing with POWER5 cpus at a cost of slightly increased
  620. overhead in some places. If unsure say N here.
  621. config PROC_DEVICETREE
  622. bool "Support for device tree in /proc"
  623. depends on PROC_FS
  624. help
  625. This option adds a device-tree directory under /proc which contains
  626. an image of the device tree that the kernel copies from Open
  627. Firmware or other boot firmware. If unsure, say Y here.
  628. source "arch/powerpc/platforms/prep/Kconfig"
  629. config CMDLINE_BOOL
  630. bool "Default bootloader kernel arguments"
  631. depends on !PPC_ISERIES
  632. config CMDLINE
  633. string "Initial kernel command string"
  634. depends on CMDLINE_BOOL
  635. default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
  636. help
  637. On some platforms, there is currently no way for the boot loader to
  638. pass arguments to the kernel. For these platforms, you can supply
  639. some command-line options at build time by entering them here. In
  640. most cases you will need to specify the root device here.
  641. if !44x || BROKEN
  642. source kernel/power/Kconfig
  643. endif
  644. config SECCOMP
  645. bool "Enable seccomp to safely compute untrusted bytecode"
  646. depends on PROC_FS
  647. default y
  648. help
  649. This kernel feature is useful for number crunching applications
  650. that may need to compute untrusted bytecode during their
  651. execution. By using pipes or other transports made available to
  652. the process as file descriptors supporting the read/write
  653. syscalls, it's possible to isolate those applications in
  654. their own address space using seccomp. Once seccomp is
  655. enabled via /proc/<pid>/seccomp, it cannot be disabled
  656. and the task is only allowed to execute a few safe syscalls
  657. defined by each seccomp mode.
  658. If unsure, say Y. Only embedded should say N here.
  659. endmenu
  660. config ISA_DMA_API
  661. bool
  662. default y
  663. menu "Bus options"
  664. config ISA
  665. bool "Support for ISA-bus hardware"
  666. depends on PPC_PREP || PPC_CHRP
  667. select PPC_I8259
  668. help
  669. Find out whether you have ISA slots on your motherboard. ISA is the
  670. name of a bus system, i.e. the way the CPU talks to the other stuff
  671. inside your box. If you have an Apple machine, say N here; if you
  672. have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
  673. you have an embedded board, consult your board documentation.
  674. config GENERIC_ISA_DMA
  675. bool
  676. depends on PPC64 || POWER4 || 6xx && !CPM2
  677. default y
  678. config MPIC
  679. bool
  680. default n
  681. config MPIC_WEIRD
  682. bool
  683. default n
  684. config PPC_I8259
  685. bool
  686. default n
  687. config PPC_INDIRECT_PCI
  688. bool
  689. depends on PCI
  690. default y if 40x || 44x
  691. default n
  692. config EISA
  693. bool
  694. config SBUS
  695. bool
  696. config FSL_SOC
  697. bool
  698. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  699. config MCA
  700. bool
  701. config PCI
  702. bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
  703. || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES) || MPC7448HPC2
  704. default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx \
  705. && !PPC_85xx && !PPC_86xx
  706. default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
  707. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  708. help
  709. Find out whether your system includes a PCI bus. PCI is the name of
  710. a bus system, i.e. the way the CPU talks to the other stuff inside
  711. your box. If you say Y here, the kernel will include drivers and
  712. infrastructure code to support PCI bus devices.
  713. config PCI_DOMAINS
  714. bool
  715. default PCI
  716. config PCI_QSPAN
  717. bool "QSpan PCI"
  718. depends on !4xx && !CPM2 && 8xx
  719. select PPC_I8259
  720. help
  721. Say Y here if you have a system based on a Motorola 8xx-series
  722. embedded processor with a QSPAN PCI interface, otherwise say N.
  723. config PCI_8260
  724. bool
  725. depends on PCI && 8260
  726. select PPC_INDIRECT_PCI
  727. default y
  728. config 8260_PCI9
  729. bool "Enable workaround for MPC826x erratum PCI 9"
  730. depends on PCI_8260 && !ADS8272
  731. default y
  732. choice
  733. prompt "IDMA channel for PCI 9 workaround"
  734. depends on 8260_PCI9
  735. config 8260_PCI9_IDMA1
  736. bool "IDMA1"
  737. config 8260_PCI9_IDMA2
  738. bool "IDMA2"
  739. config 8260_PCI9_IDMA3
  740. bool "IDMA3"
  741. config 8260_PCI9_IDMA4
  742. bool "IDMA4"
  743. endchoice
  744. source "drivers/pci/pcie/Kconfig"
  745. source "drivers/pci/Kconfig"
  746. source "drivers/pcmcia/Kconfig"
  747. source "drivers/pci/hotplug/Kconfig"
  748. endmenu
  749. menu "Advanced setup"
  750. depends on PPC32
  751. config ADVANCED_OPTIONS
  752. bool "Prompt for advanced kernel configuration options"
  753. help
  754. This option will enable prompting for a variety of advanced kernel
  755. configuration options. These options can cause the kernel to not
  756. work if they are set incorrectly, but can be used to optimize certain
  757. aspects of kernel memory management.
  758. Unless you know what you are doing, say N here.
  759. comment "Default settings for advanced configuration options are used"
  760. depends on !ADVANCED_OPTIONS
  761. config HIGHMEM_START_BOOL
  762. bool "Set high memory pool address"
  763. depends on ADVANCED_OPTIONS && HIGHMEM
  764. help
  765. This option allows you to set the base address of the kernel virtual
  766. area used to map high memory pages. This can be useful in
  767. optimizing the layout of kernel virtual memory.
  768. Say N here unless you know what you are doing.
  769. config HIGHMEM_START
  770. hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
  771. default "0xfe000000"
  772. config LOWMEM_SIZE_BOOL
  773. bool "Set maximum low memory"
  774. depends on ADVANCED_OPTIONS
  775. help
  776. This option allows you to set the maximum amount of memory which
  777. will be used as "low memory", that is, memory which the kernel can
  778. access directly, without having to set up a kernel virtual mapping.
  779. This can be useful in optimizing the layout of kernel virtual
  780. memory.
  781. Say N here unless you know what you are doing.
  782. config LOWMEM_SIZE
  783. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  784. default "0x30000000"
  785. config KERNEL_START_BOOL
  786. bool "Set custom kernel base address"
  787. depends on ADVANCED_OPTIONS
  788. help
  789. This option allows you to set the kernel virtual address at which
  790. the kernel will map low memory (the kernel image will be linked at
  791. this address). This can be useful in optimizing the virtual memory
  792. layout of the system.
  793. Say N here unless you know what you are doing.
  794. config KERNEL_START
  795. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  796. default "0xc0000000"
  797. config TASK_SIZE_BOOL
  798. bool "Set custom user task size"
  799. depends on ADVANCED_OPTIONS
  800. help
  801. This option allows you to set the amount of virtual address space
  802. allocated to user tasks. This can be useful in optimizing the
  803. virtual memory layout of the system.
  804. Say N here unless you know what you are doing.
  805. config TASK_SIZE
  806. hex "Size of user task space" if TASK_SIZE_BOOL
  807. default "0x80000000"
  808. config CONSISTENT_START_BOOL
  809. bool "Set custom consistent memory pool address"
  810. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  811. help
  812. This option allows you to set the base virtual address
  813. of the the consistent memory pool. This pool of virtual
  814. memory is used to make consistent memory allocations.
  815. config CONSISTENT_START
  816. hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
  817. default "0xff100000" if NOT_COHERENT_CACHE
  818. config CONSISTENT_SIZE_BOOL
  819. bool "Set custom consistent memory pool size"
  820. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  821. help
  822. This option allows you to set the size of the the
  823. consistent memory pool. This pool of virtual memory
  824. is used to make consistent memory allocations.
  825. config CONSISTENT_SIZE
  826. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  827. default "0x00200000" if NOT_COHERENT_CACHE
  828. config BOOT_LOAD_BOOL
  829. bool "Set the boot link/load address"
  830. depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
  831. help
  832. This option allows you to set the initial load address of the zImage
  833. or zImage.initrd file. This can be useful if you are on a board
  834. which has a small amount of memory.
  835. Say N here unless you know what you are doing.
  836. config BOOT_LOAD
  837. hex "Link/load address for booting" if BOOT_LOAD_BOOL
  838. default "0x00400000" if 40x || 8xx || 8260
  839. default "0x01000000" if 44x
  840. default "0x00800000"
  841. config PIN_TLB
  842. bool "Pinned Kernel TLBs (860 ONLY)"
  843. depends on ADVANCED_OPTIONS && 8xx
  844. endmenu
  845. if PPC64
  846. config KERNEL_START
  847. hex
  848. default "0xc000000000000000"
  849. endif
  850. source "net/Kconfig"
  851. source "drivers/Kconfig"
  852. source "fs/Kconfig"
  853. # XXX source "arch/ppc/8xx_io/Kconfig"
  854. # XXX source "arch/ppc/8260_io/Kconfig"
  855. source "arch/powerpc/platforms/iseries/Kconfig"
  856. source "lib/Kconfig"
  857. menu "Instrumentation Support"
  858. depends on EXPERIMENTAL
  859. source "arch/powerpc/oprofile/Kconfig"
  860. config KPROBES
  861. bool "Kprobes (EXPERIMENTAL)"
  862. depends on PPC64 && EXPERIMENTAL && MODULES
  863. help
  864. Kprobes allows you to trap at almost any kernel address and
  865. execute a callback function. register_kprobe() establishes
  866. a probepoint and specifies the callback. Kprobes is useful
  867. for kernel debugging, non-intrusive instrumentation and testing.
  868. If in doubt, say "N".
  869. endmenu
  870. source "arch/powerpc/Kconfig.debug"
  871. source "security/Kconfig"
  872. config KEYS_COMPAT
  873. bool
  874. depends on COMPAT && KEYS
  875. default y
  876. source "crypto/Kconfig"