Kconfig 27 KB

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