Kconfig 24 KB

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