Kconfig 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  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. source "arch/powerpc/platforms/Kconfig.cputype"
  6. config PPC32
  7. bool
  8. default y if !PPC64
  9. config 64BIT
  10. bool
  11. default y if PPC64
  12. config WORD_SIZE
  13. int
  14. default 64 if PPC64
  15. default 32 if !PPC64
  16. config ARCH_PHYS_ADDR_T_64BIT
  17. def_bool PPC64 || PHYS_64BIT
  18. config MMU
  19. bool
  20. default y
  21. config GENERIC_CMOS_UPDATE
  22. def_bool y
  23. config GENERIC_TIME
  24. def_bool y
  25. config GENERIC_TIME_VSYSCALL
  26. def_bool y
  27. config GENERIC_CLOCKEVENTS
  28. def_bool y
  29. config GENERIC_HARDIRQS
  30. bool
  31. default y
  32. config GENERIC_HARDIRQS_NO__DO_IRQ
  33. bool
  34. default y
  35. config HAVE_SETUP_PER_CPU_AREA
  36. def_bool PPC64
  37. config NEED_PER_CPU_EMBED_FIRST_CHUNK
  38. def_bool PPC64
  39. config IRQ_PER_CPU
  40. bool
  41. default y
  42. config STACKTRACE_SUPPORT
  43. bool
  44. default y
  45. config HAVE_LATENCYTOP_SUPPORT
  46. def_bool y
  47. config TRACE_IRQFLAGS_SUPPORT
  48. bool
  49. default y
  50. config LOCKDEP_SUPPORT
  51. bool
  52. default y
  53. config RWSEM_GENERIC_SPINLOCK
  54. bool
  55. config RWSEM_XCHGADD_ALGORITHM
  56. bool
  57. default y
  58. config GENERIC_LOCKBREAK
  59. bool
  60. default y
  61. depends on SMP && PREEMPT
  62. config ARCH_HAS_ILOG2_U32
  63. bool
  64. default y
  65. config ARCH_HAS_ILOG2_U64
  66. bool
  67. default y if 64BIT
  68. config GENERIC_HWEIGHT
  69. bool
  70. default y
  71. config GENERIC_FIND_NEXT_BIT
  72. bool
  73. default y
  74. config GENERIC_GPIO
  75. bool
  76. help
  77. Generic GPIO API support
  78. config ARCH_NO_VIRT_TO_BUS
  79. def_bool PPC64
  80. config PPC
  81. bool
  82. default y
  83. select HAVE_FTRACE_MCOUNT_RECORD
  84. select HAVE_DYNAMIC_FTRACE
  85. select HAVE_FUNCTION_TRACER
  86. select HAVE_FUNCTION_GRAPH_TRACER
  87. select ARCH_WANT_OPTIONAL_GPIOLIB
  88. select HAVE_IDE
  89. select HAVE_IOREMAP_PROT
  90. select HAVE_EFFICIENT_UNALIGNED_ACCESS
  91. select HAVE_KPROBES
  92. select HAVE_ARCH_KGDB
  93. select HAVE_KRETPROBES
  94. select HAVE_ARCH_TRACEHOOK
  95. select HAVE_LMB
  96. select HAVE_DMA_ATTRS
  97. select HAVE_DMA_API_DEBUG
  98. select USE_GENERIC_SMP_HELPERS if SMP
  99. select HAVE_OPROFILE
  100. select HAVE_SYSCALL_WRAPPERS if PPC64
  101. select GENERIC_ATOMIC64 if PPC32
  102. select HAVE_PERF_EVENTS
  103. config EARLY_PRINTK
  104. bool
  105. default y
  106. config COMPAT
  107. bool
  108. default y if PPC64
  109. select COMPAT_BINFMT_ELF
  110. config SYSVIPC_COMPAT
  111. bool
  112. depends on COMPAT && SYSVIPC
  113. default y
  114. # All PPC32s use generic nvram driver through ppc_md
  115. config GENERIC_NVRAM
  116. bool
  117. default y if PPC32
  118. config SCHED_OMIT_FRAME_POINTER
  119. bool
  120. default y
  121. config ARCH_MAY_HAVE_PC_FDC
  122. bool
  123. default !PPC_PSERIES || PCI
  124. config PPC_OF
  125. def_bool y
  126. config OF
  127. def_bool y
  128. select OF_FLATTREE
  129. config PPC_UDBG_16550
  130. bool
  131. default n
  132. config GENERIC_TBSYNC
  133. bool
  134. default y if PPC32 && SMP
  135. default n
  136. config AUDIT_ARCH
  137. bool
  138. default y
  139. config GENERIC_BUG
  140. bool
  141. default y
  142. depends on BUG
  143. config SYS_SUPPORTS_APM_EMULATION
  144. default y if PMAC_APM_EMU
  145. bool
  146. config DTC
  147. bool
  148. default y
  149. config DEFAULT_UIMAGE
  150. bool
  151. help
  152. Used to allow a board to specify it wants a uImage built by default
  153. default n
  154. config REDBOOT
  155. bool
  156. config HIBERNATE_32
  157. bool
  158. depends on (PPC_PMAC && !SMP) || BROKEN
  159. default y
  160. config HIBERNATE_64
  161. bool
  162. depends on BROKEN || (PPC_PMAC64 && EXPERIMENTAL)
  163. default y
  164. config ARCH_HIBERNATION_POSSIBLE
  165. bool
  166. depends on (PPC64 && HIBERNATE_64) || (PPC32 && HIBERNATE_32)
  167. default y
  168. config ARCH_SUSPEND_POSSIBLE
  169. def_bool y
  170. depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx
  171. config PPC_DCR_NATIVE
  172. bool
  173. default n
  174. config PPC_DCR_MMIO
  175. bool
  176. default n
  177. config PPC_DCR
  178. bool
  179. depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
  180. default y
  181. config PPC_OF_PLATFORM_PCI
  182. bool
  183. depends on PCI
  184. depends on PPC64 # not supported on 32 bits yet
  185. default n
  186. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  187. def_bool y
  188. source "init/Kconfig"
  189. source "kernel/Kconfig.freezer"
  190. source "arch/powerpc/sysdev/Kconfig"
  191. source "arch/powerpc/platforms/Kconfig"
  192. menu "Kernel options"
  193. config HIGHMEM
  194. bool "High memory support"
  195. depends on PPC32
  196. source kernel/time/Kconfig
  197. source kernel/Kconfig.hz
  198. source kernel/Kconfig.preempt
  199. source "fs/Kconfig.binfmt"
  200. config HUGETLB_PAGE_SIZE_VARIABLE
  201. bool
  202. depends on HUGETLB_PAGE
  203. default y
  204. config MATH_EMULATION
  205. bool "Math emulation"
  206. depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
  207. ---help---
  208. Some PowerPC chips designed for embedded applications do not have
  209. a floating-point unit and therefore do not implement the
  210. floating-point instructions in the PowerPC instruction set. If you
  211. say Y here, the kernel will include code to emulate a floating-point
  212. unit, which will allow programs that use floating-point
  213. instructions to run.
  214. config 8XX_MINIMAL_FPEMU
  215. bool "Minimal math emulation for 8xx"
  216. depends on 8xx && !MATH_EMULATION
  217. help
  218. Older arch/ppc kernels still emulated a few floating point
  219. instructions such as load and store, even when full math
  220. emulation is disabled. Say "Y" here if you want to preserve
  221. this behavior.
  222. It is recommended that you build a soft-float userspace instead.
  223. config IOMMU_VMERGE
  224. bool "Enable IOMMU virtual merging"
  225. depends on PPC64
  226. default y
  227. help
  228. Cause IO segments sent to a device for DMA to be merged virtually
  229. by the IOMMU when they happen to have been allocated contiguously.
  230. This doesn't add pressure to the IOMMU allocator. However, some
  231. drivers don't support getting large merged segments coming back
  232. from *_map_sg().
  233. Most drivers don't have this problem; it is safe to say Y here.
  234. config IOMMU_HELPER
  235. def_bool PPC64
  236. config SWIOTLB
  237. bool "SWIOTLB support"
  238. default n
  239. select IOMMU_HELPER
  240. ---help---
  241. Support for IO bounce buffering for systems without an IOMMU.
  242. This allows us to DMA to the full physical address space on
  243. platforms where the size of a physical address is larger
  244. than the bus address. Not all platforms support this.
  245. config HOTPLUG_CPU
  246. bool "Support for enabling/disabling CPUs"
  247. depends on SMP && HOTPLUG && EXPERIMENTAL && (PPC_PSERIES || PPC_PMAC)
  248. ---help---
  249. Say Y here to be able to disable and re-enable individual
  250. CPUs at runtime on SMP machines.
  251. Say N if you are unsure.
  252. config ARCH_ENABLE_MEMORY_HOTPLUG
  253. def_bool y
  254. config ARCH_HAS_WALK_MEMORY
  255. def_bool y
  256. config ARCH_ENABLE_MEMORY_HOTREMOVE
  257. def_bool y
  258. config KEXEC
  259. bool "kexec system call (EXPERIMENTAL)"
  260. depends on PPC_BOOK3S && EXPERIMENTAL
  261. help
  262. kexec is a system call that implements the ability to shutdown your
  263. current kernel, and to start another kernel. It is like a reboot
  264. but it is independent of the system firmware. And like a reboot
  265. you can start any kernel with it, not just Linux.
  266. The name comes from the similarity to the exec system call.
  267. It is an ongoing process to be certain the hardware in a machine
  268. is properly shutdown, so do not be surprised if this code does not
  269. initially work for you. It may help to enable device hotplugging
  270. support. As of this writing the exact hardware interface is
  271. strongly in flux, so no good recommendation can be made.
  272. config CRASH_DUMP
  273. bool "Build a kdump crash kernel"
  274. depends on PPC64 || 6xx
  275. select RELOCATABLE if PPC64
  276. help
  277. Build a kernel suitable for use as a kdump capture kernel.
  278. The same kernel binary can be used as production kernel and dump
  279. capture kernel.
  280. config PHYP_DUMP
  281. bool "Hypervisor-assisted dump (EXPERIMENTAL)"
  282. depends on PPC_PSERIES && EXPERIMENTAL
  283. help
  284. Hypervisor-assisted dump is meant to be a kdump replacement
  285. offering robustness and speed not possible without system
  286. hypervisor assistance.
  287. If unsure, say "N"
  288. config PPCBUG_NVRAM
  289. bool "Enable reading PPCBUG NVRAM during boot" if PPLUS || LOPEC
  290. default y if PPC_PREP
  291. config IRQ_ALL_CPUS
  292. bool "Distribute interrupts on all CPUs by default"
  293. depends on SMP && !MV64360
  294. help
  295. This option gives the kernel permission to distribute IRQs across
  296. multiple CPUs. Saying N here will route all IRQs to the first
  297. CPU. Generally saying Y is safe, although some problems have been
  298. reported with SMP Power Macintoshes with this option enabled.
  299. config NUMA
  300. bool "NUMA support"
  301. depends on PPC64
  302. default y if SMP && PPC_PSERIES
  303. config NODES_SHIFT
  304. int
  305. default "8" if PPC64
  306. default "4"
  307. depends on NEED_MULTIPLE_NODES
  308. config MAX_ACTIVE_REGIONS
  309. int
  310. default "256" if PPC64
  311. default "32"
  312. config ARCH_SELECT_MEMORY_MODEL
  313. def_bool y
  314. depends on PPC64
  315. config ARCH_FLATMEM_ENABLE
  316. def_bool y
  317. depends on (PPC64 && !NUMA) || PPC32
  318. config ARCH_SPARSEMEM_ENABLE
  319. def_bool y
  320. depends on PPC64
  321. select SPARSEMEM_VMEMMAP_ENABLE
  322. config ARCH_SPARSEMEM_DEFAULT
  323. def_bool y
  324. depends on (SMP && PPC_PSERIES) || PPC_PS3
  325. config ARCH_POPULATES_NODE_MAP
  326. def_bool y
  327. config SYS_SUPPORTS_HUGETLBFS
  328. def_bool y
  329. depends on PPC_BOOK3S_64
  330. source "mm/Kconfig"
  331. config ARCH_MEMORY_PROBE
  332. def_bool y
  333. depends on MEMORY_HOTPLUG
  334. # Some NUMA nodes have memory ranges that span
  335. # other nodes. Even though a pfn is valid and
  336. # between a node's start and end pfns, it may not
  337. # reside on that node. See memmap_init_zone()
  338. # for details.
  339. config NODES_SPAN_OTHER_NODES
  340. def_bool y
  341. depends on NEED_MULTIPLE_NODES
  342. config PPC_HAS_HASH_64K
  343. bool
  344. depends on PPC64
  345. default n
  346. config STDBINUTILS
  347. bool "Using standard binutils settings"
  348. depends on 44x
  349. default y
  350. help
  351. Turning this option off allows you to select 256KB PAGE_SIZE on 44x.
  352. Note, that kernel will be able to run only those applications,
  353. which had been compiled using binutils later than 2.17.50.0.3 with
  354. '-zmax-page-size' set to 256K (the default is 64K). Or, if using
  355. the older binutils, you can patch them with a trivial patch, which
  356. changes the ELF_MAXPAGESIZE definition from 0x10000 to 0x40000.
  357. choice
  358. prompt "Page size"
  359. default PPC_4K_PAGES
  360. help
  361. Select the kernel logical page size. Increasing the page size
  362. will reduce software overhead at each page boundary, allow
  363. hardware prefetch mechanisms to be more effective, and allow
  364. larger dma transfers increasing IO efficiency and reducing
  365. overhead. However the utilization of memory will increase.
  366. For example, each cached file will using a multiple of the
  367. page size to hold its contents and the difference between the
  368. end of file and the end of page is wasted.
  369. Some dedicated systems, such as software raid serving with
  370. accelerated calculations, have shown significant increases.
  371. If you configure a 64 bit kernel for 64k pages but the
  372. processor does not support them, then the kernel will simulate
  373. them with 4k pages, loading them on demand, but with the
  374. reduced software overhead and larger internal fragmentation.
  375. For the 32 bit kernel, a large page option will not be offered
  376. unless it is supported by the configured processor.
  377. If unsure, choose 4K_PAGES.
  378. config PPC_4K_PAGES
  379. bool "4k page size"
  380. config PPC_16K_PAGES
  381. bool "16k page size" if 44x
  382. config PPC_64K_PAGES
  383. bool "64k page size" if 44x || PPC_STD_MMU_64 || PPC_BOOK3E_64
  384. select PPC_HAS_HASH_64K if PPC_STD_MMU_64
  385. config PPC_256K_PAGES
  386. bool "256k page size" if 44x
  387. depends on !STDBINUTILS
  388. help
  389. Make the page size 256k.
  390. As the ELF standard only requires alignment to support page
  391. sizes up to 64k, you will need to compile all of your user
  392. space applications with a non-standard binutils settings
  393. (see the STDBINUTILS description for details).
  394. Say N unless you know what you are doing.
  395. endchoice
  396. config FORCE_MAX_ZONEORDER
  397. int "Maximum zone order"
  398. range 9 64 if PPC64 && PPC_64K_PAGES
  399. default "9" if PPC64 && PPC_64K_PAGES
  400. range 13 64 if PPC64 && !PPC_64K_PAGES
  401. default "13" if PPC64 && !PPC_64K_PAGES
  402. range 9 64 if PPC32 && PPC_16K_PAGES
  403. default "9" if PPC32 && PPC_16K_PAGES
  404. range 7 64 if PPC32 && PPC_64K_PAGES
  405. default "7" if PPC32 && PPC_64K_PAGES
  406. range 5 64 if PPC32 && PPC_256K_PAGES
  407. default "5" if PPC32 && PPC_256K_PAGES
  408. range 11 64
  409. default "11"
  410. help
  411. The kernel memory allocator divides physically contiguous memory
  412. blocks into "zones", where each zone is a power of two number of
  413. pages. This option selects the largest power of two that the kernel
  414. keeps in the memory allocator. If you need to allocate very large
  415. blocks of physically contiguous memory, then you may need to
  416. increase this value.
  417. This config option is actually maximum order plus one. For example,
  418. a value of 11 means that the largest free memory block is 2^10 pages.
  419. The page size is not necessarily 4KB. For example, on 64-bit
  420. systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep
  421. this in mind when choosing a value for this option.
  422. config PPC_SUBPAGE_PROT
  423. bool "Support setting protections for 4k subpages"
  424. depends on PPC_STD_MMU_64 && PPC_64K_PAGES
  425. help
  426. This option adds support for a system call to allow user programs
  427. to set access permissions (read/write, readonly, or no access)
  428. on the 4k subpages of each 64k page.
  429. config SCHED_SMT
  430. bool "SMT (Hyperthreading) scheduler support"
  431. depends on PPC64 && SMP
  432. help
  433. SMT scheduler support improves the CPU scheduler's decision making
  434. when dealing with POWER5 cpus at a cost of slightly increased
  435. overhead in some places. If unsure say N here.
  436. config PROC_DEVICETREE
  437. bool "Support for device tree in /proc"
  438. depends on PROC_FS
  439. help
  440. This option adds a device-tree directory under /proc which contains
  441. an image of the device tree that the kernel copies from Open
  442. Firmware or other boot firmware. If unsure, say Y here.
  443. config CMDLINE_BOOL
  444. bool "Default bootloader kernel arguments"
  445. config CMDLINE
  446. string "Initial kernel command string"
  447. depends on CMDLINE_BOOL
  448. default "console=ttyS0,9600 console=tty0 root=/dev/sda2"
  449. help
  450. On some platforms, there is currently no way for the boot loader to
  451. pass arguments to the kernel. For these platforms, you can supply
  452. some command-line options at build time by entering them here. In
  453. most cases you will need to specify the root device here.
  454. config EXTRA_TARGETS
  455. string "Additional default image types"
  456. help
  457. List additional targets to be built by the bootwrapper here (separated
  458. by spaces). This is useful for targets that depend of device tree
  459. files in the .dts directory.
  460. Targets in this list will be build as part of the default build
  461. target, or when the user does a 'make zImage' or a
  462. 'make zImage.initrd'.
  463. If unsure, leave blank
  464. if !44x || BROKEN
  465. config ARCH_WANTS_FREEZER_CONTROL
  466. def_bool y
  467. depends on ADB_PMU
  468. source kernel/power/Kconfig
  469. endif
  470. config SECCOMP
  471. bool "Enable seccomp to safely compute untrusted bytecode"
  472. depends on PROC_FS
  473. default y
  474. help
  475. This kernel feature is useful for number crunching applications
  476. that may need to compute untrusted bytecode during their
  477. execution. By using pipes or other transports made available to
  478. the process as file descriptors supporting the read/write
  479. syscalls, it's possible to isolate those applications in
  480. their own address space using seccomp. Once seccomp is
  481. enabled via /proc/<pid>/seccomp, it cannot be disabled
  482. and the task is only allowed to execute a few safe syscalls
  483. defined by each seccomp mode.
  484. If unsure, say Y. Only embedded should say N here.
  485. endmenu
  486. config ISA_DMA_API
  487. bool
  488. default !PPC_ISERIES || PCI
  489. menu "Bus options"
  490. config ISA
  491. bool "Support for ISA-bus hardware"
  492. depends on PPC_PREP || PPC_CHRP
  493. select PPC_I8259
  494. help
  495. Find out whether you have ISA slots on your motherboard. ISA is the
  496. name of a bus system, i.e. the way the CPU talks to the other stuff
  497. inside your box. If you have an Apple machine, say N here; if you
  498. have an IBM RS/6000 or pSeries machine or a PReP machine, say Y. If
  499. you have an embedded board, consult your board documentation.
  500. config ZONE_DMA
  501. bool
  502. default y
  503. config GENERIC_ISA_DMA
  504. bool
  505. depends on PPC64 || POWER4 || 6xx && !CPM2
  506. default y
  507. config PPC_INDIRECT_PCI
  508. bool
  509. depends on PCI
  510. default y if 40x || 44x
  511. default n
  512. config EISA
  513. bool
  514. config SBUS
  515. bool
  516. config FSL_SOC
  517. bool
  518. config FSL_PCI
  519. bool
  520. select PPC_INDIRECT_PCI
  521. select PCI_QUIRKS
  522. config 4xx_SOC
  523. bool
  524. config FSL_LBC
  525. bool
  526. help
  527. Freescale Localbus support
  528. config FSL_GTM
  529. bool
  530. depends on PPC_83xx || QUICC_ENGINE || CPM2
  531. help
  532. Freescale General-purpose Timers support
  533. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  534. config MCA
  535. bool
  536. # Platforms that what PCI turned unconditionally just do select PCI
  537. # in their config node. Platforms that want to choose at config
  538. # time should select PPC_PCI_CHOICE
  539. config PPC_PCI_CHOICE
  540. bool
  541. config PCI
  542. bool "PCI support" if PPC_PCI_CHOICE
  543. default y if !40x && !CPM2 && !8xx && !PPC_83xx \
  544. && !PPC_85xx && !PPC_86xx
  545. default PCI_PERMEDIA if !4xx && !CPM2 && !8xx
  546. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  547. select ARCH_SUPPORTS_MSI
  548. help
  549. Find out whether your system includes a PCI bus. PCI is the name of
  550. a bus system, i.e. the way the CPU talks to the other stuff inside
  551. your box. If you say Y here, the kernel will include drivers and
  552. infrastructure code to support PCI bus devices.
  553. config PCI_DOMAINS
  554. def_bool PCI
  555. config PCI_SYSCALL
  556. def_bool PCI
  557. config PCI_QSPAN
  558. bool "QSpan PCI"
  559. depends on !4xx && !CPM2 && 8xx
  560. select PPC_I8259
  561. help
  562. Say Y here if you have a system based on a Motorola 8xx-series
  563. embedded processor with a QSPAN PCI interface, otherwise say N.
  564. config PCI_8260
  565. bool
  566. depends on PCI && 8260
  567. select PPC_INDIRECT_PCI
  568. default y
  569. config 8260_PCI9
  570. bool "Enable workaround for MPC826x erratum PCI 9"
  571. depends on PCI_8260 && !8272
  572. default y
  573. choice
  574. prompt "IDMA channel for PCI 9 workaround"
  575. depends on 8260_PCI9
  576. config 8260_PCI9_IDMA1
  577. bool "IDMA1"
  578. config 8260_PCI9_IDMA2
  579. bool "IDMA2"
  580. config 8260_PCI9_IDMA3
  581. bool "IDMA3"
  582. config 8260_PCI9_IDMA4
  583. bool "IDMA4"
  584. endchoice
  585. source "drivers/pci/pcie/Kconfig"
  586. source "drivers/pci/Kconfig"
  587. source "drivers/pcmcia/Kconfig"
  588. source "drivers/pci/hotplug/Kconfig"
  589. config HAS_RAPIDIO
  590. bool
  591. default n
  592. config RAPIDIO
  593. bool "RapidIO support"
  594. depends on HAS_RAPIDIO
  595. help
  596. If you say Y here, the kernel will include drivers and
  597. infrastructure code to support RapidIO interconnect devices.
  598. source "drivers/rapidio/Kconfig"
  599. endmenu
  600. menu "Advanced setup"
  601. depends on PPC32
  602. config ADVANCED_OPTIONS
  603. bool "Prompt for advanced kernel configuration options"
  604. help
  605. This option will enable prompting for a variety of advanced kernel
  606. configuration options. These options can cause the kernel to not
  607. work if they are set incorrectly, but can be used to optimize certain
  608. aspects of kernel memory management.
  609. Unless you know what you are doing, say N here.
  610. comment "Default settings for advanced configuration options are used"
  611. depends on !ADVANCED_OPTIONS
  612. config LOWMEM_SIZE_BOOL
  613. bool "Set maximum low memory"
  614. depends on ADVANCED_OPTIONS
  615. help
  616. This option allows you to set the maximum amount of memory which
  617. will be used as "low memory", that is, memory which the kernel can
  618. access directly, without having to set up a kernel virtual mapping.
  619. This can be useful in optimizing the layout of kernel virtual
  620. memory.
  621. Say N here unless you know what you are doing.
  622. config LOWMEM_SIZE
  623. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  624. default "0x30000000"
  625. config LOWMEM_CAM_NUM_BOOL
  626. bool "Set number of CAMs to use to map low memory"
  627. depends on ADVANCED_OPTIONS && FSL_BOOKE
  628. help
  629. This option allows you to set the maximum number of CAM slots that
  630. will be used to map low memory. There are a limited number of slots
  631. available and even more limited number that will fit in the L1 MMU.
  632. However, using more entries will allow mapping more low memory. This
  633. can be useful in optimizing the layout of kernel virtual memory.
  634. Say N here unless you know what you are doing.
  635. config LOWMEM_CAM_NUM
  636. depends on FSL_BOOKE
  637. int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
  638. default 3
  639. config RELOCATABLE
  640. bool "Build a relocatable kernel (EXPERIMENTAL)"
  641. depends on EXPERIMENTAL && ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE
  642. help
  643. This builds a kernel image that is capable of running at the
  644. location the kernel is loaded at (some alignment restrictions may
  645. exist).
  646. One use is for the kexec on panic case where the recovery kernel
  647. must live at a different physical address than the primary
  648. kernel.
  649. Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
  650. it has been loaded at and the compile time physical addresses
  651. CONFIG_PHYSICAL_START is ignored. However CONFIG_PHYSICAL_START
  652. setting can still be useful to bootwrappers that need to know the
  653. load location of the kernel (eg. u-boot/mkimage).
  654. config PAGE_OFFSET_BOOL
  655. bool "Set custom page offset address"
  656. depends on ADVANCED_OPTIONS
  657. help
  658. This option allows you to set the kernel virtual address at which
  659. the kernel will map low memory. This can be useful in optimizing
  660. the virtual memory layout of the system.
  661. Say N here unless you know what you are doing.
  662. config PAGE_OFFSET
  663. hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
  664. default "0xc0000000"
  665. config KERNEL_START_BOOL
  666. bool "Set custom kernel base address"
  667. depends on ADVANCED_OPTIONS
  668. help
  669. This option allows you to set the kernel virtual address at which
  670. the kernel will be loaded. Normally this should match PAGE_OFFSET
  671. however there are times (like kdump) that one might not want them
  672. to be the same.
  673. Say N here unless you know what you are doing.
  674. config KERNEL_START
  675. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  676. default PAGE_OFFSET if PAGE_OFFSET_BOOL
  677. default "0xc2000000" if CRASH_DUMP
  678. default "0xc0000000"
  679. config PHYSICAL_START_BOOL
  680. bool "Set physical address where the kernel is loaded"
  681. depends on ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE
  682. help
  683. This gives the physical address where the kernel is loaded.
  684. Say N here unless you know what you are doing.
  685. config PHYSICAL_START
  686. hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
  687. default "0x02000000" if PPC_STD_MMU && CRASH_DUMP
  688. default "0x00000000"
  689. config PHYSICAL_ALIGN
  690. hex
  691. default "0x04000000" if FSL_BOOKE
  692. help
  693. This value puts the alignment restrictions on physical address
  694. where kernel is loaded and run from. Kernel is compiled for an
  695. address which meets above alignment restriction.
  696. config TASK_SIZE_BOOL
  697. bool "Set custom user task size"
  698. depends on ADVANCED_OPTIONS
  699. help
  700. This option allows you to set the amount of virtual address space
  701. allocated to user tasks. This can be useful in optimizing the
  702. virtual memory layout of the system.
  703. Say N here unless you know what you are doing.
  704. config TASK_SIZE
  705. hex "Size of user task space" if TASK_SIZE_BOOL
  706. default "0x80000000" if PPC_PREP || PPC_8xx
  707. default "0xc0000000"
  708. config CONSISTENT_SIZE_BOOL
  709. bool "Set custom consistent memory pool size"
  710. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  711. help
  712. This option allows you to set the size of the
  713. consistent memory pool. This pool of virtual memory
  714. is used to make consistent memory allocations.
  715. config CONSISTENT_SIZE
  716. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  717. default "0x00200000" if NOT_COHERENT_CACHE
  718. config PIN_TLB
  719. bool "Pinned Kernel TLBs (860 ONLY)"
  720. depends on ADVANCED_OPTIONS && 8xx
  721. endmenu
  722. if PPC64
  723. config RELOCATABLE
  724. bool "Build a relocatable kernel"
  725. help
  726. This builds a kernel image that is capable of running anywhere
  727. in the RMA (real memory area) at any 16k-aligned base address.
  728. The kernel is linked as a position-independent executable (PIE)
  729. and contains dynamic relocations which are processed early
  730. in the bootup process.
  731. One use is for the kexec on panic case where the recovery kernel
  732. must live at a different physical address than the primary
  733. kernel.
  734. config PAGE_OFFSET
  735. hex
  736. default "0xc000000000000000"
  737. config KERNEL_START
  738. hex
  739. default "0xc000000000000000"
  740. config PHYSICAL_START
  741. hex
  742. default "0x00000000"
  743. endif
  744. source "net/Kconfig"
  745. source "drivers/Kconfig"
  746. source "fs/Kconfig"
  747. source "arch/powerpc/sysdev/qe_lib/Kconfig"
  748. source "lib/Kconfig"
  749. source "arch/powerpc/Kconfig.debug"
  750. source "security/Kconfig"
  751. config KEYS_COMPAT
  752. bool
  753. depends on COMPAT && KEYS
  754. default y
  755. source "crypto/Kconfig"
  756. config PPC_CLOCK
  757. bool
  758. default n
  759. select HAVE_CLK
  760. config PPC_LIB_RHEAP
  761. bool
  762. source "arch/powerpc/kvm/Kconfig"