Kconfig 26 KB

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