Kconfig 27 KB

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