Kconfig 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227
  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. select MMIO_NVRAM
  401. select ATA_NONSTANDARD if ATA
  402. default n
  403. help
  404. This option enables support for the Maple 970FX Evaluation Board.
  405. For more information, refer to <http://www.970eval.com>
  406. config PPC_PASEMI
  407. depends on PPC_MULTIPLATFORM && PPC64
  408. bool "PA Semi SoC-based platforms"
  409. default n
  410. select MPIC
  411. select PPC_UDBG_16550
  412. select GENERIC_TBSYNC
  413. select PPC_NATIVE
  414. help
  415. This option enables support for PA Semi's PWRficient line
  416. of SoC processors, including PA6T-1682M
  417. config PPC_CELL
  418. bool
  419. default n
  420. config PPC_CELL_NATIVE
  421. bool
  422. select PPC_CELL
  423. select PPC_DCR_MMIO
  424. select PPC_OF_PLATFORM_PCI
  425. select PPC_INDIRECT_IO
  426. select PPC_NATIVE
  427. select MPIC
  428. default n
  429. config PPC_IBM_CELL_BLADE
  430. bool "IBM Cell Blade"
  431. depends on PPC_MULTIPLATFORM && PPC64
  432. select PPC_CELL_NATIVE
  433. select PPC_RTAS
  434. select MMIO_NVRAM
  435. select PPC_UDBG_16550
  436. select UDBG_RTAS_CONSOLE
  437. config PPC_PS3
  438. bool "Sony PS3 (incomplete)"
  439. depends on PPC_MULTIPLATFORM && PPC64
  440. select PPC_CELL
  441. help
  442. This option enables support for the Sony PS3 game console
  443. and other platforms using the PS3 hypervisor.
  444. Support for this platform is not yet complete, so
  445. enabling this will not result in a bootable kernel on a
  446. PS3 system.
  447. config PPC_CELLEB
  448. bool "Toshiba's Cell Reference Set 'Celleb' Architecture"
  449. depends on PPC_MULTIPLATFORM && PPC64
  450. select PPC_CELL
  451. select PPC_OF_PLATFORM_PCI
  452. select HAS_TXX9_SERIAL
  453. select PPC_UDBG_BEAT
  454. select USB_OHCI_BIG_ENDIAN_MMIO
  455. select USB_EHCI_BIG_ENDIAN_MMIO
  456. config PPC_NATIVE
  457. bool
  458. depends on PPC_MULTIPLATFORM
  459. help
  460. Support for running natively on the hardware, i.e. without
  461. a hypervisor. This option is not user-selectable but should
  462. be selected by all platforms that need it.
  463. config UDBG_RTAS_CONSOLE
  464. bool "RTAS based debug console"
  465. depends on PPC_RTAS
  466. default n
  467. config PPC_UDBG_BEAT
  468. bool "BEAT based debug console"
  469. depends on PPC_CELLEB
  470. default n
  471. config XICS
  472. depends on PPC_PSERIES
  473. bool
  474. default y
  475. config U3_DART
  476. bool
  477. depends on PPC_MULTIPLATFORM && PPC64
  478. default n
  479. config PPC_RTAS
  480. bool
  481. default n
  482. config RTAS_ERROR_LOGGING
  483. bool
  484. depends on PPC_RTAS
  485. default n
  486. config RTAS_PROC
  487. bool "Proc interface to RTAS"
  488. depends on PPC_RTAS
  489. default y
  490. config RTAS_FLASH
  491. tristate "Firmware flash interface"
  492. depends on PPC64 && RTAS_PROC
  493. config MMIO_NVRAM
  494. bool
  495. default n
  496. config MPIC_BROKEN_U3
  497. bool
  498. depends on PPC_MAPLE
  499. default y
  500. config IBMVIO
  501. depends on PPC_PSERIES || PPC_ISERIES
  502. bool
  503. default y
  504. config IBMEBUS
  505. depends on PPC_PSERIES
  506. bool "Support for GX bus based adapters"
  507. help
  508. Bus device driver for GX bus based adapters.
  509. config PPC_MPC106
  510. bool
  511. default n
  512. config PPC_970_NAP
  513. bool
  514. default n
  515. config PPC_INDIRECT_IO
  516. bool
  517. select GENERIC_IOMAP
  518. default n
  519. config GENERIC_IOMAP
  520. bool
  521. default n
  522. source "drivers/cpufreq/Kconfig"
  523. config CPU_FREQ_PMAC
  524. bool "Support for Apple PowerBooks"
  525. depends on CPU_FREQ && ADB_PMU && PPC32
  526. select CPU_FREQ_TABLE
  527. help
  528. This adds support for frequency switching on Apple PowerBooks,
  529. this currently includes some models of iBook & Titanium
  530. PowerBook.
  531. config CPU_FREQ_PMAC64
  532. bool "Support for some Apple G5s"
  533. depends on CPU_FREQ && PPC64
  534. select CPU_FREQ_TABLE
  535. help
  536. This adds support for frequency switching on Apple iMac G5,
  537. and some of the more recent desktop G5 machines as well.
  538. config PPC601_SYNC_FIX
  539. bool "Workarounds for PPC601 bugs"
  540. depends on 6xx && (PPC_PREP || PPC_PMAC)
  541. help
  542. Some versions of the PPC601 (the first PowerPC chip) have bugs which
  543. mean that extra synchronization instructions are required near
  544. certain instructions, typically those that make major changes to the
  545. CPU state. These extra instructions reduce performance slightly.
  546. If you say N here, these extra instructions will not be included,
  547. resulting in a kernel which will run faster but may not run at all
  548. on some systems with the PPC601 chip.
  549. If in doubt, say Y here.
  550. config TAU
  551. bool "On-chip CPU temperature sensor support"
  552. depends on 6xx
  553. help
  554. G3 and G4 processors have an on-chip temperature sensor called the
  555. 'Thermal Assist Unit (TAU)', which, in theory, can measure the on-die
  556. temperature within 2-4 degrees Celsius. This option shows the current
  557. on-die temperature in /proc/cpuinfo if the cpu supports it.
  558. Unfortunately, on some chip revisions, this sensor is very inaccurate
  559. and in many cases, does not work at all, so don't assume the cpu
  560. temp is actually what /proc/cpuinfo says it is.
  561. config TAU_INT
  562. bool "Interrupt driven TAU driver (DANGEROUS)"
  563. depends on TAU
  564. ---help---
  565. The TAU supports an interrupt driven mode which causes an interrupt
  566. whenever the temperature goes out of range. This is the fastest way
  567. to get notified the temp has exceeded a range. With this option off,
  568. a timer is used to re-check the temperature periodically.
  569. However, on some cpus it appears that the TAU interrupt hardware
  570. is buggy and can cause a situation which would lead unexplained hard
  571. lockups.
  572. Unless you are extending the TAU driver, or enjoy kernel/hardware
  573. debugging, leave this option off.
  574. config TAU_AVERAGE
  575. bool "Average high and low temp"
  576. depends on TAU
  577. ---help---
  578. The TAU hardware can compare the temperature to an upper and lower
  579. bound. The default behavior is to show both the upper and lower
  580. bound in /proc/cpuinfo. If the range is large, the temperature is
  581. either changing a lot, or the TAU hardware is broken (likely on some
  582. G4's). If the range is small (around 4 degrees), the temperature is
  583. relatively stable. If you say Y here, a single temperature value,
  584. halfway between the upper and lower bounds, will be reported in
  585. /proc/cpuinfo.
  586. If in doubt, say N here.
  587. endmenu
  588. source arch/powerpc/platforms/embedded6xx/Kconfig
  589. source arch/powerpc/platforms/4xx/Kconfig
  590. source arch/powerpc/platforms/82xx/Kconfig
  591. source arch/powerpc/platforms/83xx/Kconfig
  592. source arch/powerpc/platforms/85xx/Kconfig
  593. source arch/powerpc/platforms/86xx/Kconfig
  594. source arch/powerpc/platforms/8xx/Kconfig
  595. source arch/powerpc/platforms/cell/Kconfig
  596. source arch/powerpc/platforms/ps3/Kconfig
  597. source arch/powerpc/platforms/pasemi/Kconfig
  598. menu "Kernel options"
  599. config HIGHMEM
  600. bool "High memory support"
  601. depends on PPC32
  602. source kernel/Kconfig.hz
  603. source kernel/Kconfig.preempt
  604. source "fs/Kconfig.binfmt"
  605. # We optimistically allocate largepages from the VM, so make the limit
  606. # large enough (16MB). This badly named config option is actually
  607. # max order + 1
  608. config FORCE_MAX_ZONEORDER
  609. int
  610. depends on PPC64
  611. default "9" if PPC_64K_PAGES
  612. default "13"
  613. config MATH_EMULATION
  614. bool "Math emulation"
  615. depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
  616. ---help---
  617. Some PowerPC chips designed for embedded applications do not have
  618. a floating-point unit and therefore do not implement the
  619. floating-point instructions in the PowerPC instruction set. If you
  620. say Y here, the kernel will include code to emulate a floating-point
  621. unit, which will allow programs that use floating-point
  622. instructions to run.
  623. config IOMMU_VMERGE
  624. bool "Enable IOMMU virtual merging (EXPERIMENTAL)"
  625. depends on EXPERIMENTAL && PPC64
  626. default n
  627. help
  628. Cause IO segments sent to a device for DMA to be merged virtually
  629. by the IOMMU when they happen to have been allocated contiguously.
  630. This doesn't add pressure to the IOMMU allocator. However, some
  631. drivers don't support getting large merged segments coming back
  632. from *_map_sg(). Say Y if you know the drivers you are using are
  633. properly handling this case.
  634. config HOTPLUG_CPU
  635. bool "Support for enabling/disabling CPUs"
  636. depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
  637. ---help---
  638. Say Y here to be able to disable and re-enable individual
  639. CPUs at runtime on SMP machines.
  640. Say N if you are unsure.
  641. config ARCH_ENABLE_MEMORY_HOTPLUG
  642. def_bool y
  643. config KEXEC
  644. bool "kexec system call (EXPERIMENTAL)"
  645. depends on PPC_MULTIPLATFORM && EXPERIMENTAL
  646. help
  647. kexec is a system call that implements the ability to shutdown your
  648. current kernel, and to start another kernel. It is like a reboot
  649. but it is independent of the system firmware. And like a reboot
  650. you can start any kernel with it, not just Linux.
  651. The name comes from the similarity to the exec system call.
  652. It is an ongoing process to be certain the hardware in a machine
  653. is properly shutdown, so do not be surprised if this code does not
  654. initially work for you. It may help to enable device hotplugging
  655. support. As of this writing the exact hardware interface is
  656. strongly in flux, so no good recommendation can be made.
  657. config CRASH_DUMP
  658. bool "Build a kdump crash kernel (EXPERIMENTAL)"
  659. depends on PPC_MULTIPLATFORM && PPC64 && EXPERIMENTAL
  660. help
  661. Build a kernel suitable for use as a kdump capture kernel.
  662. The kernel will be linked at a different address than normal, and
  663. so can only be used for Kdump.
  664. Don't change this unless you know what you are doing.
  665. config EMBEDDEDBOOT
  666. bool
  667. depends on 8xx || 8260
  668. default y
  669. config PC_KEYBOARD
  670. bool "PC PS/2 style Keyboard"
  671. depends on 4xx || CPM2
  672. config PPCBUG_NVRAM
  673. bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
  674. default y if PPC_PREP
  675. config IRQ_ALL_CPUS
  676. bool "Distribute interrupts on all CPUs by default"
  677. depends on SMP && !MV64360
  678. help
  679. This option gives the kernel permission to distribute IRQs across
  680. multiple CPUs. Saying N here will route all IRQs to the first
  681. CPU. Generally saying Y is safe, although some problems have been
  682. reported with SMP Power Macintoshes with this option enabled.
  683. source "arch/powerpc/platforms/pseries/Kconfig"
  684. config NUMA
  685. bool "NUMA support"
  686. depends on PPC64
  687. default y if SMP && PPC_PSERIES
  688. config NODES_SHIFT
  689. int
  690. default "4"
  691. depends on NEED_MULTIPLE_NODES
  692. config ARCH_SELECT_MEMORY_MODEL
  693. def_bool y
  694. depends on PPC64
  695. config ARCH_FLATMEM_ENABLE
  696. def_bool y
  697. depends on (PPC64 && !NUMA) || PPC32
  698. config ARCH_SPARSEMEM_ENABLE
  699. def_bool y
  700. depends on PPC64
  701. config ARCH_SPARSEMEM_DEFAULT
  702. def_bool y
  703. depends on (SMP && PPC_PSERIES) || PPC_CELL
  704. config ARCH_POPULATES_NODE_MAP
  705. def_bool y
  706. source "mm/Kconfig"
  707. config ARCH_MEMORY_PROBE
  708. def_bool y
  709. depends on MEMORY_HOTPLUG
  710. # Some NUMA nodes have memory ranges that span
  711. # other nodes. Even though a pfn is valid and
  712. # between a node's start and end pfns, it may not
  713. # reside on that node. See memmap_init_zone()
  714. # for details.
  715. config NODES_SPAN_OTHER_NODES
  716. def_bool y
  717. depends on NEED_MULTIPLE_NODES
  718. config PPC_64K_PAGES
  719. bool "64k page size"
  720. depends on PPC64
  721. help
  722. This option changes the kernel logical page size to 64k. On machines
  723. without processor support for 64k pages, the kernel will simulate
  724. them by loading each individual 4k page on demand transparently,
  725. while on hardware with such support, it will be used to map
  726. normal application pages.
  727. config SCHED_SMT
  728. bool "SMT (Hyperthreading) scheduler support"
  729. depends on PPC64 && SMP
  730. help
  731. SMT scheduler support improves the CPU scheduler's decision making
  732. when dealing with POWER5 cpus at a cost of slightly increased
  733. overhead in some places. If unsure say N here.
  734. config PROC_DEVICETREE
  735. bool "Support for device tree in /proc"
  736. depends on PROC_FS
  737. help
  738. This option adds a device-tree directory under /proc which contains
  739. an image of the device tree that the kernel copies from Open
  740. Firmware or other boot firmware. If unsure, say Y here.
  741. source "arch/powerpc/platforms/prep/Kconfig"
  742. config CMDLINE_BOOL
  743. bool "Default bootloader kernel arguments"
  744. config CMDLINE
  745. string "Initial kernel command string"
  746. depends on CMDLINE_BOOL
  747. default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
  748. help
  749. On some platforms, there is currently no way for the boot loader to
  750. pass arguments to the kernel. For these platforms, you can supply
  751. some command-line options at build time by entering them here. In
  752. most cases you will need to specify the root device here.
  753. if !44x || BROKEN
  754. source kernel/power/Kconfig
  755. endif
  756. config SECCOMP
  757. bool "Enable seccomp to safely compute untrusted bytecode"
  758. depends on PROC_FS
  759. default y
  760. help
  761. This kernel feature is useful for number crunching applications
  762. that may need to compute untrusted bytecode during their
  763. execution. By using pipes or other transports made available to
  764. the process as file descriptors supporting the read/write
  765. syscalls, it's possible to isolate those applications in
  766. their own address space using seccomp. Once seccomp is
  767. enabled via /proc/<pid>/seccomp, it cannot be disabled
  768. and the task is only allowed to execute a few safe syscalls
  769. defined by each seccomp mode.
  770. If unsure, say Y. Only embedded should say N here.
  771. endmenu
  772. config ISA_DMA_API
  773. bool
  774. default y
  775. menu "Bus options"
  776. config ISA
  777. bool "Support for ISA-bus hardware"
  778. depends on PPC_PREP || PPC_CHRP
  779. select PPC_I8259
  780. help
  781. Find out whether you have ISA slots on your motherboard. ISA is the
  782. name of a bus system, i.e. the way the CPU talks to the other stuff
  783. inside your box. If you have an Apple machine, say N here; if you
  784. have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
  785. you have an embedded board, consult your board documentation.
  786. config GENERIC_ISA_DMA
  787. bool
  788. depends on PPC64 || POWER4 || 6xx && !CPM2
  789. default y
  790. config MPIC
  791. bool
  792. default n
  793. config MPIC_WEIRD
  794. bool
  795. default n
  796. config PPC_I8259
  797. bool
  798. default n
  799. config PPC_INDIRECT_PCI
  800. bool
  801. depends on PCI
  802. default y if 40x || 44x
  803. default n
  804. config EISA
  805. bool
  806. config SBUS
  807. bool
  808. config FSL_SOC
  809. bool
  810. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  811. config MCA
  812. bool
  813. config PCI
  814. bool "PCI support" if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \
  815. || PPC_MPC52xx || (EMBEDDED && PPC_ISERIES) || MPC7448HPC2 || PPC_PS3
  816. default y if !40x && !CPM2 && !8xx && !APUS && !PPC_83xx \
  817. && !PPC_85xx && !PPC_86xx
  818. default PCI_PERMEDIA if !4xx && !CPM2 && !8xx && APUS
  819. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  820. help
  821. Find out whether your system includes a PCI bus. PCI is the name of
  822. a bus system, i.e. the way the CPU talks to the other stuff inside
  823. your box. If you say Y here, the kernel will include drivers and
  824. infrastructure code to support PCI bus devices.
  825. config PCI_DOMAINS
  826. bool
  827. default PCI
  828. config PCI_QSPAN
  829. bool "QSpan PCI"
  830. depends on !4xx && !CPM2 && 8xx
  831. select PPC_I8259
  832. help
  833. Say Y here if you have a system based on a Motorola 8xx-series
  834. embedded processor with a QSPAN PCI interface, otherwise say N.
  835. config PCI_8260
  836. bool
  837. depends on PCI && 8260
  838. select PPC_INDIRECT_PCI
  839. default y
  840. config 8260_PCI9
  841. bool "Enable workaround for MPC826x erratum PCI 9"
  842. depends on PCI_8260 && !ADS8272
  843. default y
  844. choice
  845. prompt "IDMA channel for PCI 9 workaround"
  846. depends on 8260_PCI9
  847. config 8260_PCI9_IDMA1
  848. bool "IDMA1"
  849. config 8260_PCI9_IDMA2
  850. bool "IDMA2"
  851. config 8260_PCI9_IDMA3
  852. bool "IDMA3"
  853. config 8260_PCI9_IDMA4
  854. bool "IDMA4"
  855. endchoice
  856. source "drivers/pci/pcie/Kconfig"
  857. source "drivers/pci/Kconfig"
  858. source "drivers/pcmcia/Kconfig"
  859. source "drivers/pci/hotplug/Kconfig"
  860. endmenu
  861. menu "Advanced setup"
  862. depends on PPC32
  863. config ADVANCED_OPTIONS
  864. bool "Prompt for advanced kernel configuration options"
  865. help
  866. This option will enable prompting for a variety of advanced kernel
  867. configuration options. These options can cause the kernel to not
  868. work if they are set incorrectly, but can be used to optimize certain
  869. aspects of kernel memory management.
  870. Unless you know what you are doing, say N here.
  871. comment "Default settings for advanced configuration options are used"
  872. depends on !ADVANCED_OPTIONS
  873. config HIGHMEM_START_BOOL
  874. bool "Set high memory pool address"
  875. depends on ADVANCED_OPTIONS && HIGHMEM
  876. help
  877. This option allows you to set the base address of the kernel virtual
  878. area used to map high memory pages. This can be useful in
  879. optimizing the layout of kernel virtual memory.
  880. Say N here unless you know what you are doing.
  881. config HIGHMEM_START
  882. hex "Virtual start address of high memory pool" if HIGHMEM_START_BOOL
  883. default "0xfe000000"
  884. config LOWMEM_SIZE_BOOL
  885. bool "Set maximum low memory"
  886. depends on ADVANCED_OPTIONS
  887. help
  888. This option allows you to set the maximum amount of memory which
  889. will be used as "low memory", that is, memory which the kernel can
  890. access directly, without having to set up a kernel virtual mapping.
  891. This can be useful in optimizing the layout of kernel virtual
  892. memory.
  893. Say N here unless you know what you are doing.
  894. config LOWMEM_SIZE
  895. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  896. default "0x30000000"
  897. config KERNEL_START_BOOL
  898. bool "Set custom kernel base address"
  899. depends on ADVANCED_OPTIONS
  900. help
  901. This option allows you to set the kernel virtual address at which
  902. the kernel will map low memory (the kernel image will be linked at
  903. this address). This can be useful in optimizing the virtual memory
  904. layout of the system.
  905. Say N here unless you know what you are doing.
  906. config KERNEL_START
  907. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  908. default "0xc0000000"
  909. config TASK_SIZE_BOOL
  910. bool "Set custom user task size"
  911. depends on ADVANCED_OPTIONS
  912. help
  913. This option allows you to set the amount of virtual address space
  914. allocated to user tasks. This can be useful in optimizing the
  915. virtual memory layout of the system.
  916. Say N here unless you know what you are doing.
  917. config TASK_SIZE
  918. hex "Size of user task space" if TASK_SIZE_BOOL
  919. default "0x80000000"
  920. config CONSISTENT_START_BOOL
  921. bool "Set custom consistent memory pool address"
  922. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  923. help
  924. This option allows you to set the base virtual address
  925. of the consistent memory pool. This pool of virtual
  926. memory is used to make consistent memory allocations.
  927. config CONSISTENT_START
  928. hex "Base virtual address of consistent memory pool" if CONSISTENT_START_BOOL
  929. default "0xff100000" if NOT_COHERENT_CACHE
  930. config CONSISTENT_SIZE_BOOL
  931. bool "Set custom consistent memory pool size"
  932. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  933. help
  934. This option allows you to set the size of the
  935. consistent memory pool. This pool of virtual memory
  936. is used to make consistent memory allocations.
  937. config CONSISTENT_SIZE
  938. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  939. default "0x00200000" if NOT_COHERENT_CACHE
  940. config BOOT_LOAD_BOOL
  941. bool "Set the boot link/load address"
  942. depends on ADVANCED_OPTIONS && !PPC_MULTIPLATFORM
  943. help
  944. This option allows you to set the initial load address of the zImage
  945. or zImage.initrd file. This can be useful if you are on a board
  946. which has a small amount of memory.
  947. Say N here unless you know what you are doing.
  948. config BOOT_LOAD
  949. hex "Link/load address for booting" if BOOT_LOAD_BOOL
  950. default "0x00400000" if 40x || 8xx || 8260
  951. default "0x01000000" if 44x
  952. default "0x00800000"
  953. config PIN_TLB
  954. bool "Pinned Kernel TLBs (860 ONLY)"
  955. depends on ADVANCED_OPTIONS && 8xx
  956. endmenu
  957. if PPC64
  958. config KERNEL_START
  959. hex
  960. default "0xc000000000000000"
  961. endif
  962. source "net/Kconfig"
  963. source "drivers/Kconfig"
  964. source "fs/Kconfig"
  965. # XXX source "arch/ppc/8xx_io/Kconfig"
  966. # XXX source "arch/ppc/8260_io/Kconfig"
  967. source "arch/powerpc/sysdev/qe_lib/Kconfig"
  968. source "arch/powerpc/platforms/iseries/Kconfig"
  969. source "lib/Kconfig"
  970. menu "Instrumentation Support"
  971. depends on EXPERIMENTAL
  972. source "arch/powerpc/oprofile/Kconfig"
  973. config KPROBES
  974. bool "Kprobes (EXPERIMENTAL)"
  975. depends on PPC64 && KALLSYMS && EXPERIMENTAL && MODULES
  976. help
  977. Kprobes allows you to trap at almost any kernel address and
  978. execute a callback function. register_kprobe() establishes
  979. a probepoint and specifies the callback. Kprobes is useful
  980. for kernel debugging, non-intrusive instrumentation and testing.
  981. If in doubt, say "N".
  982. endmenu
  983. source "arch/powerpc/Kconfig.debug"
  984. source "security/Kconfig"
  985. config KEYS_COMPAT
  986. bool
  987. depends on COMPAT && KEYS
  988. default y
  989. source "crypto/Kconfig"