Kconfig 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048
  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 PPC
  69. bool
  70. default y
  71. select BINFMT_ELF
  72. select OF
  73. select OF_EARLY_FLATTREE
  74. select HAVE_FTRACE_MCOUNT_RECORD
  75. select HAVE_DYNAMIC_FTRACE
  76. select HAVE_FUNCTION_TRACER
  77. select HAVE_FUNCTION_GRAPH_TRACER
  78. select SYSCTL_EXCEPTION_TRACE
  79. select ARCH_WANT_OPTIONAL_GPIOLIB
  80. select VIRT_TO_BUS if !PPC64
  81. select HAVE_IDE
  82. select HAVE_IOREMAP_PROT
  83. select HAVE_EFFICIENT_UNALIGNED_ACCESS
  84. select HAVE_KPROBES
  85. select HAVE_ARCH_KGDB
  86. select HAVE_KRETPROBES
  87. select HAVE_ARCH_TRACEHOOK
  88. select HAVE_MEMBLOCK
  89. select HAVE_MEMBLOCK_NODE_MAP
  90. select HAVE_DMA_ATTRS
  91. select HAVE_DMA_API_DEBUG
  92. select USE_GENERIC_SMP_HELPERS if SMP
  93. select HAVE_OPROFILE
  94. select HAVE_DEBUG_KMEMLEAK
  95. select HAVE_SYSCALL_WRAPPERS if PPC64
  96. select GENERIC_ATOMIC64 if PPC32
  97. select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
  98. select HAVE_PERF_EVENTS
  99. select HAVE_REGS_AND_STACK_ACCESS_API
  100. select HAVE_HW_BREAKPOINT if PERF_EVENTS && PPC_BOOK3S_64
  101. select HAVE_GENERIC_HARDIRQS
  102. select ARCH_WANT_IPC_PARSE_VERSION
  103. select SPARSE_IRQ
  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_IDLE_LOOP
  115. select GENERIC_CMOS_UPDATE
  116. select GENERIC_TIME_VSYSCALL_OLD
  117. select GENERIC_CLOCKEVENTS
  118. select GENERIC_STRNCPY_FROM_USER
  119. select GENERIC_STRNLEN_USER
  120. select HAVE_MOD_ARCH_SPECIFIC
  121. select MODULES_USE_ELF_RELA
  122. select CLONE_BACKWARDS
  123. select ARCH_USE_BUILTIN_BSWAP
  124. select OLD_SIGSUSPEND
  125. select OLD_SIGACTION if PPC32
  126. config EARLY_PRINTK
  127. bool
  128. default y
  129. config COMPAT
  130. bool
  131. default y if PPC64
  132. select COMPAT_BINFMT_ELF
  133. select ARCH_WANT_OLD_COMPAT_IPC
  134. select COMPAT_OLD_SIGACTION
  135. config SYSVIPC_COMPAT
  136. bool
  137. depends on COMPAT && SYSVIPC
  138. default y
  139. # All PPC32s use generic nvram driver through ppc_md
  140. config GENERIC_NVRAM
  141. bool
  142. default y if PPC32
  143. config SCHED_OMIT_FRAME_POINTER
  144. bool
  145. default y
  146. config ARCH_MAY_HAVE_PC_FDC
  147. bool
  148. default !PPC_PSERIES || PCI
  149. config PPC_OF
  150. def_bool y
  151. config PPC_UDBG_16550
  152. bool
  153. default n
  154. config GENERIC_TBSYNC
  155. bool
  156. default y if PPC32 && SMP
  157. default n
  158. config AUDIT_ARCH
  159. bool
  160. default y
  161. config GENERIC_BUG
  162. bool
  163. default y
  164. depends on BUG
  165. config SYS_SUPPORTS_APM_EMULATION
  166. default y if PMAC_APM_EMU
  167. bool
  168. config EPAPR_BOOT
  169. bool
  170. help
  171. Used to allow a board to specify it wants an ePAPR compliant wrapper.
  172. default n
  173. config DEFAULT_UIMAGE
  174. bool
  175. help
  176. Used to allow a board to specify it wants a uImage built by default
  177. default n
  178. config REDBOOT
  179. bool
  180. config ARCH_HIBERNATION_POSSIBLE
  181. bool
  182. default y
  183. config ARCH_SUSPEND_POSSIBLE
  184. def_bool y
  185. depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 || PPC_83xx || \
  186. (PPC_85xx && !PPC_E500MC) || PPC_86xx || PPC_PSERIES \
  187. || 44x || 40x
  188. config PPC_DCR_NATIVE
  189. bool
  190. default n
  191. config PPC_DCR_MMIO
  192. bool
  193. default n
  194. config PPC_DCR
  195. bool
  196. depends on PPC_DCR_NATIVE || PPC_DCR_MMIO
  197. default y
  198. config PPC_OF_PLATFORM_PCI
  199. bool
  200. depends on PCI
  201. depends on PPC64 # not supported on 32 bits yet
  202. default n
  203. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  204. def_bool y
  205. config ARCH_SUPPORTS_UPROBES
  206. def_bool y
  207. config PPC_ADV_DEBUG_REGS
  208. bool
  209. depends on 40x || BOOKE
  210. default y
  211. config PPC_ADV_DEBUG_IACS
  212. int
  213. depends on PPC_ADV_DEBUG_REGS
  214. default 4 if 44x
  215. default 2
  216. config PPC_ADV_DEBUG_DACS
  217. int
  218. depends on PPC_ADV_DEBUG_REGS
  219. default 2
  220. config PPC_ADV_DEBUG_DVCS
  221. int
  222. depends on PPC_ADV_DEBUG_REGS
  223. default 2 if 44x
  224. default 0
  225. config PPC_ADV_DEBUG_DAC_RANGE
  226. bool
  227. depends on PPC_ADV_DEBUG_REGS && 44x
  228. default y
  229. config PPC_EMULATE_SSTEP
  230. bool
  231. default y if KPROBES || UPROBES || XMON || HAVE_HW_BREAKPOINT
  232. source "init/Kconfig"
  233. source "kernel/Kconfig.freezer"
  234. source "arch/powerpc/sysdev/Kconfig"
  235. source "arch/powerpc/platforms/Kconfig"
  236. menu "Kernel options"
  237. config HIGHMEM
  238. bool "High memory support"
  239. depends on PPC32
  240. source kernel/Kconfig.hz
  241. source kernel/Kconfig.preempt
  242. source "fs/Kconfig.binfmt"
  243. config HUGETLB_PAGE_SIZE_VARIABLE
  244. bool
  245. depends on HUGETLB_PAGE
  246. default y
  247. config MATH_EMULATION
  248. bool "Math emulation"
  249. depends on 4xx || 8xx || E200 || PPC_MPC832x || E500
  250. ---help---
  251. Some PowerPC chips designed for embedded applications do not have
  252. a floating-point unit and therefore do not implement the
  253. floating-point instructions in the PowerPC instruction set. If you
  254. say Y here, the kernel will include code to emulate a floating-point
  255. unit, which will allow programs that use floating-point
  256. instructions to run.
  257. config PPC_TRANSACTIONAL_MEM
  258. bool "Transactional Memory support for POWERPC"
  259. depends on PPC_BOOK3S_64
  260. depends on SMP
  261. default n
  262. ---help---
  263. Support user-mode Transactional Memory on POWERPC.
  264. config 8XX_MINIMAL_FPEMU
  265. bool "Minimal math emulation for 8xx"
  266. depends on 8xx && !MATH_EMULATION
  267. help
  268. Older arch/ppc kernels still emulated a few floating point
  269. instructions such as load and store, even when full math
  270. emulation is disabled. Say "Y" here if you want to preserve
  271. this behavior.
  272. It is recommended that you build a soft-float userspace instead.
  273. config IOMMU_HELPER
  274. def_bool PPC64
  275. config SWIOTLB
  276. bool "SWIOTLB support"
  277. default n
  278. select IOMMU_HELPER
  279. ---help---
  280. Support for IO bounce buffering for systems without an IOMMU.
  281. This allows us to DMA to the full physical address space on
  282. platforms where the size of a physical address is larger
  283. than the bus address. Not all platforms support this.
  284. config HOTPLUG_CPU
  285. bool "Support for enabling/disabling CPUs"
  286. depends on SMP && HOTPLUG && (PPC_PSERIES || \
  287. PPC_PMAC || PPC_POWERNV || (PPC_85xx && !PPC_E500MC))
  288. ---help---
  289. Say Y here to be able to disable and re-enable individual
  290. CPUs at runtime on SMP machines.
  291. Say N if you are unsure.
  292. config ARCH_CPU_PROBE_RELEASE
  293. def_bool y
  294. depends on HOTPLUG_CPU
  295. config ARCH_ENABLE_MEMORY_HOTPLUG
  296. def_bool y
  297. config ARCH_HAS_WALK_MEMORY
  298. def_bool y
  299. config ARCH_ENABLE_MEMORY_HOTREMOVE
  300. def_bool y
  301. config KEXEC
  302. bool "kexec system call"
  303. depends on (PPC_BOOK3S || FSL_BOOKE || (44x && !SMP))
  304. help
  305. kexec is a system call that implements the ability to shutdown your
  306. current kernel, and to start another kernel. It is like a reboot
  307. but it is independent of the system firmware. And like a reboot
  308. you can start any kernel with it, not just Linux.
  309. The name comes from the similarity to the exec system call.
  310. It is an ongoing process to be certain the hardware in a machine
  311. is properly shutdown, so do not be surprised if this code does not
  312. initially work for you. It may help to enable device hotplugging
  313. support. As of this writing the exact hardware interface is
  314. strongly in flux, so no good recommendation can be made.
  315. config CRASH_DUMP
  316. bool "Build a kdump crash kernel"
  317. depends on PPC64 || 6xx || FSL_BOOKE || (44x && !SMP)
  318. select RELOCATABLE if PPC64 || 44x
  319. select DYNAMIC_MEMSTART if FSL_BOOKE
  320. help
  321. Build a kernel suitable for use as a kdump capture kernel.
  322. The same kernel binary can be used as production kernel and dump
  323. capture kernel.
  324. config FA_DUMP
  325. bool "Firmware-assisted dump"
  326. depends on PPC64 && PPC_RTAS && CRASH_DUMP
  327. help
  328. A robust mechanism to get reliable kernel crash dump with
  329. assistance from firmware. This approach does not use kexec,
  330. instead firmware assists in booting the kdump kernel
  331. while preserving memory contents. Firmware-assisted dump
  332. is meant to be a kdump replacement offering robustness and
  333. speed not possible without system firmware assistance.
  334. If unsure, say "N"
  335. config IRQ_ALL_CPUS
  336. bool "Distribute interrupts on all CPUs by default"
  337. depends on SMP && !MV64360
  338. help
  339. This option gives the kernel permission to distribute IRQs across
  340. multiple CPUs. Saying N here will route all IRQs to the first
  341. CPU. Generally saying Y is safe, although some problems have been
  342. reported with SMP Power Macintoshes with this option enabled.
  343. config NUMA
  344. bool "NUMA support"
  345. depends on PPC64
  346. default y if SMP && PPC_PSERIES
  347. config NODES_SHIFT
  348. int
  349. default "8" if PPC64
  350. default "4"
  351. depends on NEED_MULTIPLE_NODES
  352. config MAX_ACTIVE_REGIONS
  353. int
  354. default "256" if PPC64
  355. default "32"
  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 "n"
  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_PREP || 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 or a PReP machine, say Y. If
  538. you have an 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. select HAVE_CAN_FLEXCAN if NET && CAN
  562. select PPC_CLOCK
  563. config FSL_PCI
  564. bool
  565. select PPC_INDIRECT_PCI
  566. select PCI_QUIRKS
  567. config FSL_PMC
  568. bool
  569. default y
  570. depends on SUSPEND && (PPC_85xx || PPC_86xx)
  571. help
  572. Freescale MPC85xx/MPC86xx power management controller support
  573. (suspend/resume). For MPC83xx see platforms/83xx/suspend.c
  574. config PPC4xx_CPM
  575. bool
  576. default y
  577. depends on SUSPEND && (44x || 40x)
  578. help
  579. PPC4xx Clock Power Management (CPM) support (suspend/resume).
  580. It also enables support for two different idle states (idle-wait
  581. and idle-doze).
  582. config 4xx_SOC
  583. bool
  584. config FSL_LBC
  585. bool "Freescale Local Bus support"
  586. depends on FSL_SOC
  587. help
  588. Enables reporting of errors from the Freescale local bus
  589. controller. Also contains some common code used by
  590. drivers for specific local bus peripherals.
  591. config FSL_IFC
  592. bool
  593. depends on FSL_SOC
  594. config FSL_GTM
  595. bool
  596. depends on PPC_83xx || QUICC_ENGINE || CPM2
  597. help
  598. Freescale General-purpose Timers support
  599. # Yes MCA RS/6000s exist but Linux-PPC does not currently support any
  600. config MCA
  601. bool
  602. # Platforms that what PCI turned unconditionally just do select PCI
  603. # in their config node. Platforms that want to choose at config
  604. # time should select PPC_PCI_CHOICE
  605. config PPC_PCI_CHOICE
  606. bool
  607. config PCI
  608. bool "PCI support" if PPC_PCI_CHOICE
  609. default y if !40x && !CPM2 && !8xx && !PPC_83xx \
  610. && !PPC_85xx && !PPC_86xx && !GAMECUBE_COMMON
  611. default PCI_PERMEDIA if !4xx && !CPM2 && !8xx
  612. default PCI_QSPAN if !4xx && !CPM2 && 8xx
  613. select ARCH_SUPPORTS_MSI
  614. select GENERIC_PCI_IOMAP
  615. help
  616. Find out whether your system includes a PCI bus. PCI is the name of
  617. a bus system, i.e. the way the CPU talks to the other stuff inside
  618. your box. If you say Y here, the kernel will include drivers and
  619. infrastructure code to support PCI bus devices.
  620. config PCI_DOMAINS
  621. def_bool PCI
  622. config PCI_SYSCALL
  623. def_bool PCI
  624. config PCI_QSPAN
  625. bool "QSpan PCI"
  626. depends on !4xx && !CPM2 && 8xx
  627. select PPC_I8259
  628. help
  629. Say Y here if you have a system based on a Motorola 8xx-series
  630. embedded processor with a QSPAN PCI interface, otherwise say N.
  631. config PCI_8260
  632. bool
  633. depends on PCI && 8260
  634. select PPC_INDIRECT_PCI
  635. default y
  636. config 8260_PCI9
  637. bool "Enable workaround for MPC826x erratum PCI 9"
  638. depends on PCI_8260 && !8272
  639. default y
  640. source "drivers/pci/pcie/Kconfig"
  641. source "drivers/pci/Kconfig"
  642. source "drivers/pcmcia/Kconfig"
  643. source "drivers/pci/hotplug/Kconfig"
  644. config HAS_RAPIDIO
  645. bool
  646. default n
  647. config RAPIDIO
  648. bool "RapidIO support"
  649. depends on HAS_RAPIDIO || PCI
  650. help
  651. If you say Y here, the kernel will include drivers and
  652. infrastructure code to support RapidIO interconnect devices.
  653. config FSL_RIO
  654. bool "Freescale Embedded SRIO Controller support"
  655. depends on RAPIDIO && HAS_RAPIDIO
  656. default "n"
  657. ---help---
  658. Include support for RapidIO controller on Freescale embedded
  659. processors (MPC8548, MPC8641, etc).
  660. source "drivers/rapidio/Kconfig"
  661. endmenu
  662. config NONSTATIC_KERNEL
  663. bool
  664. default n
  665. menu "Advanced setup"
  666. depends on PPC32
  667. config ADVANCED_OPTIONS
  668. bool "Prompt for advanced kernel configuration options"
  669. help
  670. This option will enable prompting for a variety of advanced kernel
  671. configuration options. These options can cause the kernel to not
  672. work if they are set incorrectly, but can be used to optimize certain
  673. aspects of kernel memory management.
  674. Unless you know what you are doing, say N here.
  675. comment "Default settings for advanced configuration options are used"
  676. depends on !ADVANCED_OPTIONS
  677. config LOWMEM_SIZE_BOOL
  678. bool "Set maximum low memory"
  679. depends on ADVANCED_OPTIONS
  680. help
  681. This option allows you to set the maximum amount of memory which
  682. will be used as "low memory", that is, memory which the kernel can
  683. access directly, without having to set up a kernel virtual mapping.
  684. This can be useful in optimizing the layout of kernel virtual
  685. memory.
  686. Say N here unless you know what you are doing.
  687. config LOWMEM_SIZE
  688. hex "Maximum low memory size (in bytes)" if LOWMEM_SIZE_BOOL
  689. default "0x30000000"
  690. config LOWMEM_CAM_NUM_BOOL
  691. bool "Set number of CAMs to use to map low memory"
  692. depends on ADVANCED_OPTIONS && FSL_BOOKE
  693. help
  694. This option allows you to set the maximum number of CAM slots that
  695. will be used to map low memory. There are a limited number of slots
  696. available and even more limited number that will fit in the L1 MMU.
  697. However, using more entries will allow mapping more low memory. This
  698. can be useful in optimizing the layout of kernel virtual memory.
  699. Say N here unless you know what you are doing.
  700. config LOWMEM_CAM_NUM
  701. depends on FSL_BOOKE
  702. int "Number of CAMs to use to map low memory" if LOWMEM_CAM_NUM_BOOL
  703. default 3
  704. config DYNAMIC_MEMSTART
  705. bool "Enable page aligned dynamic load address for kernel"
  706. depends on ADVANCED_OPTIONS && FLATMEM && (FSL_BOOKE || 44x)
  707. select NONSTATIC_KERNEL
  708. help
  709. This option enables the kernel to be loaded at any page aligned
  710. physical address. The kernel creates a mapping from KERNELBASE to
  711. the address where the kernel is loaded. The page size here implies
  712. the TLB page size of the mapping for kernel on the particular platform.
  713. Please refer to the init code for finding the TLB page size.
  714. DYNAMIC_MEMSTART is an easy way of implementing pseudo-RELOCATABLE
  715. kernel image, where the only restriction is the page aligned kernel
  716. load address. When this option is enabled, the compile time physical
  717. address CONFIG_PHYSICAL_START is ignored.
  718. This option is overridden by CONFIG_RELOCATABLE
  719. config RELOCATABLE
  720. bool "Build a relocatable kernel"
  721. depends on ADVANCED_OPTIONS && FLATMEM && 44x
  722. select NONSTATIC_KERNEL
  723. help
  724. This builds a kernel image that is capable of running at the
  725. location the kernel is loaded at, without any alignment restrictions.
  726. This feature is a superset of DYNAMIC_MEMSTART and hence overrides it.
  727. One use is for the kexec on panic case where the recovery kernel
  728. must live at a different physical address than the primary
  729. kernel.
  730. Note: If CONFIG_RELOCATABLE=y, then the kernel runs from the address
  731. it has been loaded at and the compile time physical addresses
  732. CONFIG_PHYSICAL_START is ignored. However CONFIG_PHYSICAL_START
  733. setting can still be useful to bootwrappers that need to know the
  734. load address of the kernel (eg. u-boot/mkimage).
  735. config RELOCATABLE_PPC32
  736. def_bool y
  737. depends on PPC32 && RELOCATABLE
  738. config PAGE_OFFSET_BOOL
  739. bool "Set custom page offset address"
  740. depends on ADVANCED_OPTIONS
  741. help
  742. This option allows you to set the kernel virtual address at which
  743. the kernel will map low memory. This can be useful in optimizing
  744. the virtual memory layout of the system.
  745. Say N here unless you know what you are doing.
  746. config PAGE_OFFSET
  747. hex "Virtual address of memory base" if PAGE_OFFSET_BOOL
  748. default "0xc0000000"
  749. config KERNEL_START_BOOL
  750. bool "Set custom kernel base address"
  751. depends on ADVANCED_OPTIONS
  752. help
  753. This option allows you to set the kernel virtual address at which
  754. the kernel will be loaded. Normally this should match PAGE_OFFSET
  755. however there are times (like kdump) that one might not want them
  756. to be the same.
  757. Say N here unless you know what you are doing.
  758. config KERNEL_START
  759. hex "Virtual address of kernel base" if KERNEL_START_BOOL
  760. default PAGE_OFFSET if PAGE_OFFSET_BOOL
  761. default "0xc2000000" if CRASH_DUMP && !NONSTATIC_KERNEL
  762. default "0xc0000000"
  763. config PHYSICAL_START_BOOL
  764. bool "Set physical address where the kernel is loaded"
  765. depends on ADVANCED_OPTIONS && FLATMEM && FSL_BOOKE
  766. help
  767. This gives the physical address where the kernel is loaded.
  768. Say N here unless you know what you are doing.
  769. config PHYSICAL_START
  770. hex "Physical address where the kernel is loaded" if PHYSICAL_START_BOOL
  771. default "0x02000000" if PPC_STD_MMU && CRASH_DUMP && !NONSTATIC_KERNEL
  772. default "0x00000000"
  773. config PHYSICAL_ALIGN
  774. hex
  775. default "0x04000000" if FSL_BOOKE
  776. help
  777. This value puts the alignment restrictions on physical address
  778. where kernel is loaded and run from. Kernel is compiled for an
  779. address which meets above alignment restriction.
  780. config TASK_SIZE_BOOL
  781. bool "Set custom user task size"
  782. depends on ADVANCED_OPTIONS
  783. help
  784. This option allows you to set the amount of virtual address space
  785. allocated to user tasks. This can be useful in optimizing the
  786. virtual memory layout of the system.
  787. Say N here unless you know what you are doing.
  788. config TASK_SIZE
  789. hex "Size of user task space" if TASK_SIZE_BOOL
  790. default "0x80000000" if PPC_PREP || PPC_8xx
  791. default "0xc0000000"
  792. config CONSISTENT_SIZE_BOOL
  793. bool "Set custom consistent memory pool size"
  794. depends on ADVANCED_OPTIONS && NOT_COHERENT_CACHE
  795. help
  796. This option allows you to set the size of the
  797. consistent memory pool. This pool of virtual memory
  798. is used to make consistent memory allocations.
  799. config CONSISTENT_SIZE
  800. hex "Size of consistent memory pool" if CONSISTENT_SIZE_BOOL
  801. default "0x00200000" if NOT_COHERENT_CACHE
  802. config PIN_TLB
  803. bool "Pinned Kernel TLBs (860 ONLY)"
  804. depends on ADVANCED_OPTIONS && 8xx
  805. endmenu
  806. if PPC64
  807. config RELOCATABLE
  808. bool "Build a relocatable kernel"
  809. select NONSTATIC_KERNEL
  810. help
  811. This builds a kernel image that is capable of running anywhere
  812. in the RMA (real memory area) at any 16k-aligned base address.
  813. The kernel is linked as a position-independent executable (PIE)
  814. and contains dynamic relocations which are processed early
  815. in the bootup process.
  816. One use is for the kexec on panic case where the recovery kernel
  817. must live at a different physical address than the primary
  818. kernel.
  819. config PAGE_OFFSET
  820. hex
  821. default "0xc000000000000000"
  822. config KERNEL_START
  823. hex
  824. default "0xc000000000000000"
  825. config PHYSICAL_START
  826. hex
  827. default "0x00000000"
  828. endif
  829. source "net/Kconfig"
  830. source "drivers/Kconfig"
  831. source "fs/Kconfig"
  832. source "arch/powerpc/sysdev/qe_lib/Kconfig"
  833. source "lib/Kconfig"
  834. source "arch/powerpc/Kconfig.debug"
  835. source "security/Kconfig"
  836. config KEYS_COMPAT
  837. bool
  838. depends on COMPAT && KEYS
  839. default y
  840. source "crypto/Kconfig"
  841. config PPC_CLOCK
  842. bool
  843. default n
  844. select HAVE_CLK
  845. config PPC_LIB_RHEAP
  846. bool
  847. source "arch/powerpc/kvm/Kconfig"