Kconfig 29 KB

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