Kconfig 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199
  1. # SPDX-License-Identifier: GPL-2.0
  2. config ARM
  3. bool
  4. default y
  5. select ARCH_CLOCKSOURCE_DATA
  6. select ARCH_DISCARD_MEMBLOCK if !HAVE_ARCH_PFN_VALID && !KEXEC
  7. select ARCH_HAS_DEBUG_VIRTUAL if MMU
  8. select ARCH_HAS_DEVMEM_IS_ALLOWED
  9. select ARCH_HAS_ELF_RANDOMIZE
  10. select ARCH_HAS_FORTIFY_SOURCE
  11. select ARCH_HAS_KCOV
  12. select ARCH_HAS_MEMBARRIER_SYNC_CORE
  13. select ARCH_HAS_PTE_SPECIAL if ARM_LPAE
  14. select ARCH_HAS_PHYS_TO_DMA
  15. select ARCH_HAS_SET_MEMORY
  16. select ARCH_HAS_STRICT_KERNEL_RWX if MMU && !XIP_KERNEL
  17. select ARCH_HAS_STRICT_MODULE_RWX if MMU
  18. select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
  19. select ARCH_HAVE_CUSTOM_GPIO_H
  20. select ARCH_HAS_GCOV_PROFILE_ALL
  21. select ARCH_MIGHT_HAVE_PC_PARPORT
  22. select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
  23. select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT if CPU_V7
  24. select ARCH_SUPPORTS_ATOMIC_RMW
  25. select ARCH_USE_BUILTIN_BSWAP
  26. select ARCH_USE_CMPXCHG_LOCKREF
  27. select ARCH_WANT_IPC_PARSE_VERSION
  28. select BUILDTIME_EXTABLE_SORT if MMU
  29. select CLONE_BACKWARDS
  30. select CPU_PM if (SUSPEND || CPU_IDLE)
  31. select DCACHE_WORD_ACCESS if HAVE_EFFICIENT_UNALIGNED_ACCESS
  32. select DMA_DIRECT_OPS if !MMU
  33. select EDAC_SUPPORT
  34. select EDAC_ATOMIC_SCRUB
  35. select GENERIC_ALLOCATOR
  36. select GENERIC_ARCH_TOPOLOGY if ARM_CPU_TOPOLOGY
  37. select GENERIC_ATOMIC64 if (CPU_V7M || CPU_V6 || !CPU_32v6K || !AEABI)
  38. select GENERIC_CLOCKEVENTS_BROADCAST if SMP
  39. select GENERIC_CPU_AUTOPROBE
  40. select GENERIC_EARLY_IOREMAP
  41. select GENERIC_IDLE_POLL_SETUP
  42. select GENERIC_IRQ_PROBE
  43. select GENERIC_IRQ_SHOW
  44. select GENERIC_IRQ_SHOW_LEVEL
  45. select GENERIC_PCI_IOMAP
  46. select GENERIC_SCHED_CLOCK
  47. select GENERIC_SMP_IDLE_THREAD
  48. select GENERIC_STRNCPY_FROM_USER
  49. select GENERIC_STRNLEN_USER
  50. select HANDLE_DOMAIN_IRQ
  51. select HARDIRQS_SW_RESEND
  52. select HAVE_ARCH_AUDITSYSCALL if (AEABI && !OABI_COMPAT)
  53. select HAVE_ARCH_BITREVERSE if (CPU_32v7M || CPU_32v7) && !CPU_32v6
  54. select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU
  55. select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU
  56. select HAVE_ARCH_MMAP_RND_BITS if MMU
  57. select HAVE_ARCH_SECCOMP_FILTER if (AEABI && !OABI_COMPAT)
  58. select HAVE_ARCH_THREAD_STRUCT_WHITELIST
  59. select HAVE_ARCH_TRACEHOOK
  60. select HAVE_ARM_SMCCC if CPU_V7
  61. select HAVE_EBPF_JIT if !CPU_ENDIAN_BE32
  62. select HAVE_CONTEXT_TRACKING
  63. select HAVE_C_RECORDMCOUNT
  64. select HAVE_DEBUG_KMEMLEAK if !XIP_KERNEL
  65. select HAVE_DMA_CONTIGUOUS if MMU
  66. select HAVE_DYNAMIC_FTRACE if (!XIP_KERNEL) && !CPU_ENDIAN_BE32 && MMU
  67. select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE
  68. select HAVE_EFFICIENT_UNALIGNED_ACCESS if (CPU_V6 || CPU_V6K || CPU_V7) && MMU
  69. select HAVE_EXIT_THREAD
  70. select HAVE_FTRACE_MCOUNT_RECORD if (!XIP_KERNEL)
  71. select HAVE_FUNCTION_GRAPH_TRACER if (!THUMB2_KERNEL)
  72. select HAVE_FUNCTION_TRACER if (!XIP_KERNEL)
  73. select HAVE_GCC_PLUGINS
  74. select HAVE_GENERIC_DMA_COHERENT
  75. select HAVE_HW_BREAKPOINT if (PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7))
  76. select HAVE_IDE if PCI || ISA || PCMCIA
  77. select HAVE_IRQ_TIME_ACCOUNTING
  78. select HAVE_KERNEL_GZIP
  79. select HAVE_KERNEL_LZ4
  80. select HAVE_KERNEL_LZMA
  81. select HAVE_KERNEL_LZO
  82. select HAVE_KERNEL_XZ
  83. select HAVE_KPROBES if !XIP_KERNEL && !CPU_ENDIAN_BE32 && !CPU_V7M
  84. select HAVE_KRETPROBES if (HAVE_KPROBES)
  85. select HAVE_MEMBLOCK
  86. select HAVE_MOD_ARCH_SPECIFIC
  87. select HAVE_NMI
  88. select HAVE_OPROFILE if (HAVE_PERF_EVENTS)
  89. select HAVE_OPTPROBES if !THUMB2_KERNEL
  90. select HAVE_PERF_EVENTS
  91. select HAVE_PERF_REGS
  92. select HAVE_PERF_USER_STACK_DUMP
  93. select HAVE_RCU_TABLE_FREE if (SMP && ARM_LPAE)
  94. select HAVE_REGS_AND_STACK_ACCESS_API
  95. select HAVE_RSEQ
  96. select HAVE_STACKPROTECTOR
  97. select HAVE_SYSCALL_TRACEPOINTS
  98. select HAVE_UID16
  99. select HAVE_VIRT_CPU_ACCOUNTING_GEN
  100. select IRQ_FORCED_THREADING
  101. select MODULES_USE_ELF_REL
  102. select NEED_DMA_MAP_STATE
  103. select NO_BOOTMEM
  104. select OF_EARLY_FLATTREE if OF
  105. select OF_RESERVED_MEM if OF
  106. select OLD_SIGACTION
  107. select OLD_SIGSUSPEND3
  108. select PERF_USE_VMALLOC
  109. select REFCOUNT_FULL
  110. select RTC_LIB
  111. select SYS_SUPPORTS_APM_EMULATION
  112. # Above selects are sorted alphabetically; please add new ones
  113. # according to that. Thanks.
  114. help
  115. The ARM series is a line of low-power-consumption RISC chip designs
  116. licensed by ARM Ltd and targeted at embedded applications and
  117. handhelds such as the Compaq IPAQ. ARM-based PCs are no longer
  118. manufactured, but legacy ARM-based PC hardware remains popular in
  119. Europe. There is an ARM Linux project with a web page at
  120. <http://www.arm.linux.org.uk/>.
  121. config ARM_HAS_SG_CHAIN
  122. select ARCH_HAS_SG_CHAIN
  123. bool
  124. config ARM_DMA_USE_IOMMU
  125. bool
  126. select ARM_HAS_SG_CHAIN
  127. select NEED_SG_DMA_LENGTH
  128. if ARM_DMA_USE_IOMMU
  129. config ARM_DMA_IOMMU_ALIGNMENT
  130. int "Maximum PAGE_SIZE order of alignment for DMA IOMMU buffers"
  131. range 4 9
  132. default 8
  133. help
  134. DMA mapping framework by default aligns all buffers to the smallest
  135. PAGE_SIZE order which is greater than or equal to the requested buffer
  136. size. This works well for buffers up to a few hundreds kilobytes, but
  137. for larger buffers it just a waste of address space. Drivers which has
  138. relatively small addressing window (like 64Mib) might run out of
  139. virtual space with just a few allocations.
  140. With this parameter you can specify the maximum PAGE_SIZE order for
  141. DMA IOMMU buffers. Larger buffers will be aligned only to this
  142. specified order. The order is expressed as a power of two multiplied
  143. by the PAGE_SIZE.
  144. endif
  145. config MIGHT_HAVE_PCI
  146. bool
  147. config SYS_SUPPORTS_APM_EMULATION
  148. bool
  149. config HAVE_TCM
  150. bool
  151. select GENERIC_ALLOCATOR
  152. config HAVE_PROC_CPU
  153. bool
  154. config NO_IOPORT_MAP
  155. bool
  156. config EISA
  157. bool
  158. ---help---
  159. The Extended Industry Standard Architecture (EISA) bus was
  160. developed as an open alternative to the IBM MicroChannel bus.
  161. The EISA bus provided some of the features of the IBM MicroChannel
  162. bus while maintaining backward compatibility with cards made for
  163. the older ISA bus. The EISA bus saw limited use between 1988 and
  164. 1995 when it was made obsolete by the PCI bus.
  165. Say Y here if you are building a kernel for an EISA-based machine.
  166. Otherwise, say N.
  167. config SBUS
  168. bool
  169. config STACKTRACE_SUPPORT
  170. bool
  171. default y
  172. config LOCKDEP_SUPPORT
  173. bool
  174. default y
  175. config TRACE_IRQFLAGS_SUPPORT
  176. bool
  177. default !CPU_V7M
  178. config RWSEM_XCHGADD_ALGORITHM
  179. bool
  180. default y
  181. config ARCH_HAS_ILOG2_U32
  182. bool
  183. config ARCH_HAS_ILOG2_U64
  184. bool
  185. config ARCH_HAS_BANDGAP
  186. bool
  187. config FIX_EARLYCON_MEM
  188. def_bool y if MMU
  189. config GENERIC_HWEIGHT
  190. bool
  191. default y
  192. config GENERIC_CALIBRATE_DELAY
  193. bool
  194. default y
  195. config ARCH_MAY_HAVE_PC_FDC
  196. bool
  197. config ZONE_DMA
  198. bool
  199. config ARCH_SUPPORTS_UPROBES
  200. def_bool y
  201. config ARCH_HAS_DMA_SET_COHERENT_MASK
  202. bool
  203. config GENERIC_ISA_DMA
  204. bool
  205. config FIQ
  206. bool
  207. config NEED_RET_TO_USER
  208. bool
  209. config ARCH_MTD_XIP
  210. bool
  211. config ARM_PATCH_PHYS_VIRT
  212. bool "Patch physical to virtual translations at runtime" if EMBEDDED
  213. default y
  214. depends on !XIP_KERNEL && MMU
  215. help
  216. Patch phys-to-virt and virt-to-phys translation functions at
  217. boot and module load time according to the position of the
  218. kernel in system memory.
  219. This can only be used with non-XIP MMU kernels where the base
  220. of physical memory is at a 16MB boundary.
  221. Only disable this option if you know that you do not require
  222. this feature (eg, building a kernel for a single machine) and
  223. you need to shrink the kernel to the minimal size.
  224. config NEED_MACH_IO_H
  225. bool
  226. help
  227. Select this when mach/io.h is required to provide special
  228. definitions for this platform. The need for mach/io.h should
  229. be avoided when possible.
  230. config NEED_MACH_MEMORY_H
  231. bool
  232. help
  233. Select this when mach/memory.h is required to provide special
  234. definitions for this platform. The need for mach/memory.h should
  235. be avoided when possible.
  236. config PHYS_OFFSET
  237. hex "Physical address of main memory" if MMU
  238. depends on !ARM_PATCH_PHYS_VIRT
  239. default DRAM_BASE if !MMU
  240. default 0x00000000 if ARCH_EBSA110 || \
  241. ARCH_FOOTBRIDGE || \
  242. ARCH_INTEGRATOR || \
  243. ARCH_IOP13XX || \
  244. ARCH_KS8695 || \
  245. ARCH_REALVIEW
  246. default 0x10000000 if ARCH_OMAP1 || ARCH_RPC
  247. default 0x20000000 if ARCH_S5PV210
  248. default 0xc0000000 if ARCH_SA1100
  249. help
  250. Please provide the physical address corresponding to the
  251. location of main memory in your system.
  252. config GENERIC_BUG
  253. def_bool y
  254. depends on BUG
  255. config PGTABLE_LEVELS
  256. int
  257. default 3 if ARM_LPAE
  258. default 2
  259. menu "System Type"
  260. config MMU
  261. bool "MMU-based Paged Memory Management Support"
  262. default y
  263. help
  264. Select if you want MMU-based virtualised addressing space
  265. support by paged memory management. If unsure, say 'Y'.
  266. config ARCH_MMAP_RND_BITS_MIN
  267. default 8
  268. config ARCH_MMAP_RND_BITS_MAX
  269. default 14 if PAGE_OFFSET=0x40000000
  270. default 15 if PAGE_OFFSET=0x80000000
  271. default 16
  272. #
  273. # The "ARM system type" choice list is ordered alphabetically by option
  274. # text. Please add new entries in the option alphabetic order.
  275. #
  276. choice
  277. prompt "ARM system type"
  278. default ARM_SINGLE_ARMV7M if !MMU
  279. default ARCH_MULTIPLATFORM if MMU
  280. config ARCH_MULTIPLATFORM
  281. bool "Allow multiple platforms to be selected"
  282. depends on MMU
  283. select ARM_HAS_SG_CHAIN
  284. select ARM_PATCH_PHYS_VIRT
  285. select AUTO_ZRELADDR
  286. select TIMER_OF
  287. select COMMON_CLK
  288. select GENERIC_CLOCKEVENTS
  289. select GENERIC_IRQ_MULTI_HANDLER
  290. select MIGHT_HAVE_PCI
  291. select PCI_DOMAINS if PCI
  292. select SPARSE_IRQ
  293. select USE_OF
  294. config ARM_SINGLE_ARMV7M
  295. bool "ARMv7-M based platforms (Cortex-M0/M3/M4)"
  296. depends on !MMU
  297. select ARM_NVIC
  298. select AUTO_ZRELADDR
  299. select TIMER_OF
  300. select COMMON_CLK
  301. select CPU_V7M
  302. select GENERIC_CLOCKEVENTS
  303. select NO_IOPORT_MAP
  304. select SPARSE_IRQ
  305. select USE_OF
  306. config ARCH_EBSA110
  307. bool "EBSA-110"
  308. select ARCH_USES_GETTIMEOFFSET
  309. select CPU_SA110
  310. select ISA
  311. select NEED_MACH_IO_H
  312. select NEED_MACH_MEMORY_H
  313. select NO_IOPORT_MAP
  314. help
  315. This is an evaluation board for the StrongARM processor available
  316. from Digital. It has limited hardware on-board, including an
  317. Ethernet interface, two PCMCIA sockets, two serial ports and a
  318. parallel port.
  319. config ARCH_EP93XX
  320. bool "EP93xx-based"
  321. select ARCH_SPARSEMEM_ENABLE
  322. select ARM_AMBA
  323. imply ARM_PATCH_PHYS_VIRT
  324. select ARM_VIC
  325. select AUTO_ZRELADDR
  326. select CLKDEV_LOOKUP
  327. select CLKSRC_MMIO
  328. select CPU_ARM920T
  329. select GENERIC_CLOCKEVENTS
  330. select GPIOLIB
  331. help
  332. This enables support for the Cirrus EP93xx series of CPUs.
  333. config ARCH_FOOTBRIDGE
  334. bool "FootBridge"
  335. select CPU_SA110
  336. select FOOTBRIDGE
  337. select GENERIC_CLOCKEVENTS
  338. select HAVE_IDE
  339. select NEED_MACH_IO_H if !MMU
  340. select NEED_MACH_MEMORY_H
  341. help
  342. Support for systems based on the DC21285 companion chip
  343. ("FootBridge"), such as the Simtec CATS and the Rebel NetWinder.
  344. config ARCH_NETX
  345. bool "Hilscher NetX based"
  346. select ARM_VIC
  347. select CLKSRC_MMIO
  348. select CPU_ARM926T
  349. select GENERIC_CLOCKEVENTS
  350. help
  351. This enables support for systems based on the Hilscher NetX Soc
  352. config ARCH_IOP13XX
  353. bool "IOP13xx-based"
  354. depends on MMU
  355. select CPU_XSC3
  356. select NEED_MACH_MEMORY_H
  357. select NEED_RET_TO_USER
  358. select PCI
  359. select PLAT_IOP
  360. select VMSPLIT_1G
  361. select SPARSE_IRQ
  362. help
  363. Support for Intel's IOP13XX (XScale) family of processors.
  364. config ARCH_IOP32X
  365. bool "IOP32x-based"
  366. depends on MMU
  367. select CPU_XSCALE
  368. select GPIO_IOP
  369. select GPIOLIB
  370. select NEED_RET_TO_USER
  371. select PCI
  372. select PLAT_IOP
  373. help
  374. Support for Intel's 80219 and IOP32X (XScale) family of
  375. processors.
  376. config ARCH_IOP33X
  377. bool "IOP33x-based"
  378. depends on MMU
  379. select CPU_XSCALE
  380. select GPIO_IOP
  381. select GPIOLIB
  382. select NEED_RET_TO_USER
  383. select PCI
  384. select PLAT_IOP
  385. help
  386. Support for Intel's IOP33X (XScale) family of processors.
  387. config ARCH_IXP4XX
  388. bool "IXP4xx-based"
  389. depends on MMU
  390. select ARCH_HAS_DMA_SET_COHERENT_MASK
  391. select ARCH_SUPPORTS_BIG_ENDIAN
  392. select CLKSRC_MMIO
  393. select CPU_XSCALE
  394. select DMABOUNCE if PCI
  395. select GENERIC_CLOCKEVENTS
  396. select GPIOLIB
  397. select MIGHT_HAVE_PCI
  398. select NEED_MACH_IO_H
  399. select USB_EHCI_BIG_ENDIAN_DESC
  400. select USB_EHCI_BIG_ENDIAN_MMIO
  401. help
  402. Support for Intel's IXP4XX (XScale) family of processors.
  403. config ARCH_DOVE
  404. bool "Marvell Dove"
  405. select CPU_PJ4
  406. select GENERIC_CLOCKEVENTS
  407. select GENERIC_IRQ_MULTI_HANDLER
  408. select GPIOLIB
  409. select MIGHT_HAVE_PCI
  410. select MVEBU_MBUS
  411. select PINCTRL
  412. select PINCTRL_DOVE
  413. select PLAT_ORION_LEGACY
  414. select SPARSE_IRQ
  415. select PM_GENERIC_DOMAINS if PM
  416. help
  417. Support for the Marvell Dove SoC 88AP510
  418. config ARCH_KS8695
  419. bool "Micrel/Kendin KS8695"
  420. select CLKSRC_MMIO
  421. select CPU_ARM922T
  422. select GENERIC_CLOCKEVENTS
  423. select GPIOLIB
  424. select NEED_MACH_MEMORY_H
  425. help
  426. Support for Micrel/Kendin KS8695 "Centaur" (ARM922T) based
  427. System-on-Chip devices.
  428. config ARCH_W90X900
  429. bool "Nuvoton W90X900 CPU"
  430. select CLKDEV_LOOKUP
  431. select CLKSRC_MMIO
  432. select CPU_ARM926T
  433. select GENERIC_CLOCKEVENTS
  434. select GPIOLIB
  435. help
  436. Support for Nuvoton (Winbond logic dept.) ARM9 processor,
  437. At present, the w90x900 has been renamed nuc900, regarding
  438. the ARM series product line, you can login the following
  439. link address to know more.
  440. <http://www.nuvoton.com/hq/enu/ProductAndSales/ProductLines/
  441. ConsumerElectronicsIC/ARMMicrocontroller/ARMMicrocontroller>
  442. config ARCH_LPC32XX
  443. bool "NXP LPC32XX"
  444. select ARM_AMBA
  445. select CLKDEV_LOOKUP
  446. select CLKSRC_LPC32XX
  447. select COMMON_CLK
  448. select CPU_ARM926T
  449. select GENERIC_CLOCKEVENTS
  450. select GENERIC_IRQ_MULTI_HANDLER
  451. select GPIOLIB
  452. select SPARSE_IRQ
  453. select USE_OF
  454. help
  455. Support for the NXP LPC32XX family of processors
  456. config ARCH_PXA
  457. bool "PXA2xx/PXA3xx-based"
  458. depends on MMU
  459. select ARCH_MTD_XIP
  460. select ARM_CPU_SUSPEND if PM
  461. select AUTO_ZRELADDR
  462. select COMMON_CLK
  463. select CLKDEV_LOOKUP
  464. select CLKSRC_PXA
  465. select CLKSRC_MMIO
  466. select TIMER_OF
  467. select CPU_XSCALE if !CPU_XSC3
  468. select GENERIC_CLOCKEVENTS
  469. select GENERIC_IRQ_MULTI_HANDLER
  470. select GPIO_PXA
  471. select GPIOLIB
  472. select HAVE_IDE
  473. select IRQ_DOMAIN
  474. select PLAT_PXA
  475. select SPARSE_IRQ
  476. help
  477. Support for Intel/Marvell's PXA2xx/PXA3xx processor line.
  478. config ARCH_RPC
  479. bool "RiscPC"
  480. depends on MMU
  481. select ARCH_ACORN
  482. select ARCH_MAY_HAVE_PC_FDC
  483. select ARCH_SPARSEMEM_ENABLE
  484. select ARCH_USES_GETTIMEOFFSET
  485. select CPU_SA110
  486. select FIQ
  487. select HAVE_IDE
  488. select HAVE_PATA_PLATFORM
  489. select ISA_DMA_API
  490. select NEED_MACH_IO_H
  491. select NEED_MACH_MEMORY_H
  492. select NO_IOPORT_MAP
  493. help
  494. On the Acorn Risc-PC, Linux can support the internal IDE disk and
  495. CD-ROM interface, serial and parallel port, and the floppy drive.
  496. config ARCH_SA1100
  497. bool "SA1100-based"
  498. select ARCH_MTD_XIP
  499. select ARCH_SPARSEMEM_ENABLE
  500. select CLKDEV_LOOKUP
  501. select CLKSRC_MMIO
  502. select CLKSRC_PXA
  503. select TIMER_OF if OF
  504. select CPU_FREQ
  505. select CPU_SA1100
  506. select GENERIC_CLOCKEVENTS
  507. select GENERIC_IRQ_MULTI_HANDLER
  508. select GPIOLIB
  509. select HAVE_IDE
  510. select IRQ_DOMAIN
  511. select ISA
  512. select NEED_MACH_MEMORY_H
  513. select SPARSE_IRQ
  514. help
  515. Support for StrongARM 11x0 based boards.
  516. config ARCH_S3C24XX
  517. bool "Samsung S3C24XX SoCs"
  518. select ATAGS
  519. select CLKDEV_LOOKUP
  520. select CLKSRC_SAMSUNG_PWM
  521. select GENERIC_CLOCKEVENTS
  522. select GPIO_SAMSUNG
  523. select GPIOLIB
  524. select GENERIC_IRQ_MULTI_HANDLER
  525. select HAVE_S3C2410_I2C if I2C
  526. select HAVE_S3C2410_WATCHDOG if WATCHDOG
  527. select HAVE_S3C_RTC if RTC_CLASS
  528. select NEED_MACH_IO_H
  529. select SAMSUNG_ATAGS
  530. select USE_OF
  531. help
  532. Samsung S3C2410, S3C2412, S3C2413, S3C2416, S3C2440, S3C2442, S3C2443
  533. and S3C2450 SoCs based systems, such as the Simtec Electronics BAST
  534. (<http://www.simtec.co.uk/products/EB110ITX/>), the IPAQ 1940 or the
  535. Samsung SMDK2410 development board (and derivatives).
  536. config ARCH_DAVINCI
  537. bool "TI DaVinci"
  538. select ARCH_HAS_HOLES_MEMORYMODEL
  539. select COMMON_CLK
  540. select CPU_ARM926T
  541. select GENERIC_ALLOCATOR
  542. select GENERIC_CLOCKEVENTS
  543. select GENERIC_IRQ_CHIP
  544. select GPIOLIB
  545. select HAVE_IDE
  546. select PM_GENERIC_DOMAINS if PM
  547. select PM_GENERIC_DOMAINS_OF if PM && OF
  548. select REGMAP_MMIO
  549. select RESET_CONTROLLER
  550. select USE_OF
  551. select ZONE_DMA
  552. help
  553. Support for TI's DaVinci platform.
  554. config ARCH_OMAP1
  555. bool "TI OMAP1"
  556. depends on MMU
  557. select ARCH_HAS_HOLES_MEMORYMODEL
  558. select ARCH_OMAP
  559. select CLKDEV_LOOKUP
  560. select CLKSRC_MMIO
  561. select GENERIC_CLOCKEVENTS
  562. select GENERIC_IRQ_CHIP
  563. select GENERIC_IRQ_MULTI_HANDLER
  564. select GPIOLIB
  565. select HAVE_IDE
  566. select IRQ_DOMAIN
  567. select NEED_MACH_IO_H if PCCARD
  568. select NEED_MACH_MEMORY_H
  569. select SPARSE_IRQ
  570. help
  571. Support for older TI OMAP1 (omap7xx, omap15xx or omap16xx)
  572. endchoice
  573. menu "Multiple platform selection"
  574. depends on ARCH_MULTIPLATFORM
  575. comment "CPU Core family selection"
  576. config ARCH_MULTI_V4
  577. bool "ARMv4 based platforms (FA526)"
  578. depends on !ARCH_MULTI_V6_V7
  579. select ARCH_MULTI_V4_V5
  580. select CPU_FA526
  581. config ARCH_MULTI_V4T
  582. bool "ARMv4T based platforms (ARM720T, ARM920T, ...)"
  583. depends on !ARCH_MULTI_V6_V7
  584. select ARCH_MULTI_V4_V5
  585. select CPU_ARM920T if !(CPU_ARM7TDMI || CPU_ARM720T || \
  586. CPU_ARM740T || CPU_ARM9TDMI || CPU_ARM922T || \
  587. CPU_ARM925T || CPU_ARM940T)
  588. config ARCH_MULTI_V5
  589. bool "ARMv5 based platforms (ARM926T, XSCALE, PJ1, ...)"
  590. depends on !ARCH_MULTI_V6_V7
  591. select ARCH_MULTI_V4_V5
  592. select CPU_ARM926T if !(CPU_ARM946E || CPU_ARM1020 || \
  593. CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \
  594. CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_FEROCEON)
  595. config ARCH_MULTI_V4_V5
  596. bool
  597. config ARCH_MULTI_V6
  598. bool "ARMv6 based platforms (ARM11)"
  599. select ARCH_MULTI_V6_V7
  600. select CPU_V6K
  601. config ARCH_MULTI_V7
  602. bool "ARMv7 based platforms (Cortex-A, PJ4, Scorpion, Krait)"
  603. default y
  604. select ARCH_MULTI_V6_V7
  605. select CPU_V7
  606. select HAVE_SMP
  607. config ARCH_MULTI_V6_V7
  608. bool
  609. select MIGHT_HAVE_CACHE_L2X0
  610. config ARCH_MULTI_CPU_AUTO
  611. def_bool !(ARCH_MULTI_V4 || ARCH_MULTI_V4T || ARCH_MULTI_V6_V7)
  612. select ARCH_MULTI_V5
  613. endmenu
  614. config ARCH_VIRT
  615. bool "Dummy Virtual Machine"
  616. depends on ARCH_MULTI_V7
  617. select ARM_AMBA
  618. select ARM_GIC
  619. select ARM_GIC_V2M if PCI
  620. select ARM_GIC_V3
  621. select ARM_GIC_V3_ITS if PCI
  622. select ARM_PSCI
  623. select HAVE_ARM_ARCH_TIMER
  624. #
  625. # This is sorted alphabetically by mach-* pathname. However, plat-*
  626. # Kconfigs may be included either alphabetically (according to the
  627. # plat- suffix) or along side the corresponding mach-* source.
  628. #
  629. source "arch/arm/mach-actions/Kconfig"
  630. source "arch/arm/mach-alpine/Kconfig"
  631. source "arch/arm/mach-artpec/Kconfig"
  632. source "arch/arm/mach-asm9260/Kconfig"
  633. source "arch/arm/mach-aspeed/Kconfig"
  634. source "arch/arm/mach-at91/Kconfig"
  635. source "arch/arm/mach-axxia/Kconfig"
  636. source "arch/arm/mach-bcm/Kconfig"
  637. source "arch/arm/mach-berlin/Kconfig"
  638. source "arch/arm/mach-clps711x/Kconfig"
  639. source "arch/arm/mach-cns3xxx/Kconfig"
  640. source "arch/arm/mach-davinci/Kconfig"
  641. source "arch/arm/mach-digicolor/Kconfig"
  642. source "arch/arm/mach-dove/Kconfig"
  643. source "arch/arm/mach-ep93xx/Kconfig"
  644. source "arch/arm/mach-exynos/Kconfig"
  645. source "arch/arm/plat-samsung/Kconfig"
  646. source "arch/arm/mach-footbridge/Kconfig"
  647. source "arch/arm/mach-gemini/Kconfig"
  648. source "arch/arm/mach-highbank/Kconfig"
  649. source "arch/arm/mach-hisi/Kconfig"
  650. source "arch/arm/mach-imx/Kconfig"
  651. source "arch/arm/mach-integrator/Kconfig"
  652. source "arch/arm/mach-iop13xx/Kconfig"
  653. source "arch/arm/mach-iop32x/Kconfig"
  654. source "arch/arm/mach-iop33x/Kconfig"
  655. source "arch/arm/mach-ixp4xx/Kconfig"
  656. source "arch/arm/mach-keystone/Kconfig"
  657. source "arch/arm/mach-ks8695/Kconfig"
  658. source "arch/arm/mach-mediatek/Kconfig"
  659. source "arch/arm/mach-meson/Kconfig"
  660. source "arch/arm/mach-mmp/Kconfig"
  661. source "arch/arm/mach-moxart/Kconfig"
  662. source "arch/arm/mach-mv78xx0/Kconfig"
  663. source "arch/arm/mach-mvebu/Kconfig"
  664. source "arch/arm/mach-mxs/Kconfig"
  665. source "arch/arm/mach-netx/Kconfig"
  666. source "arch/arm/mach-nomadik/Kconfig"
  667. source "arch/arm/mach-npcm/Kconfig"
  668. source "arch/arm/mach-nspire/Kconfig"
  669. source "arch/arm/plat-omap/Kconfig"
  670. source "arch/arm/mach-omap1/Kconfig"
  671. source "arch/arm/mach-omap2/Kconfig"
  672. source "arch/arm/mach-orion5x/Kconfig"
  673. source "arch/arm/mach-oxnas/Kconfig"
  674. source "arch/arm/mach-picoxcell/Kconfig"
  675. source "arch/arm/mach-prima2/Kconfig"
  676. source "arch/arm/mach-pxa/Kconfig"
  677. source "arch/arm/plat-pxa/Kconfig"
  678. source "arch/arm/mach-qcom/Kconfig"
  679. source "arch/arm/mach-realview/Kconfig"
  680. source "arch/arm/mach-rockchip/Kconfig"
  681. source "arch/arm/mach-s3c24xx/Kconfig"
  682. source "arch/arm/mach-s3c64xx/Kconfig"
  683. source "arch/arm/mach-s5pv210/Kconfig"
  684. source "arch/arm/mach-sa1100/Kconfig"
  685. source "arch/arm/mach-shmobile/Kconfig"
  686. source "arch/arm/mach-socfpga/Kconfig"
  687. source "arch/arm/mach-spear/Kconfig"
  688. source "arch/arm/mach-sti/Kconfig"
  689. source "arch/arm/mach-stm32/Kconfig"
  690. source "arch/arm/mach-sunxi/Kconfig"
  691. source "arch/arm/mach-tango/Kconfig"
  692. source "arch/arm/mach-tegra/Kconfig"
  693. source "arch/arm/mach-u300/Kconfig"
  694. source "arch/arm/mach-uniphier/Kconfig"
  695. source "arch/arm/mach-ux500/Kconfig"
  696. source "arch/arm/mach-versatile/Kconfig"
  697. source "arch/arm/mach-vexpress/Kconfig"
  698. source "arch/arm/plat-versatile/Kconfig"
  699. source "arch/arm/mach-vt8500/Kconfig"
  700. source "arch/arm/mach-w90x900/Kconfig"
  701. source "arch/arm/mach-zx/Kconfig"
  702. source "arch/arm/mach-zynq/Kconfig"
  703. # ARMv7-M architecture
  704. config ARCH_EFM32
  705. bool "Energy Micro efm32"
  706. depends on ARM_SINGLE_ARMV7M
  707. select GPIOLIB
  708. help
  709. Support for Energy Micro's (now Silicon Labs) efm32 Giant Gecko
  710. processors.
  711. config ARCH_LPC18XX
  712. bool "NXP LPC18xx/LPC43xx"
  713. depends on ARM_SINGLE_ARMV7M
  714. select ARCH_HAS_RESET_CONTROLLER
  715. select ARM_AMBA
  716. select CLKSRC_LPC32XX
  717. select PINCTRL
  718. help
  719. Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4
  720. high performance microcontrollers.
  721. config ARCH_MPS2
  722. bool "ARM MPS2 platform"
  723. depends on ARM_SINGLE_ARMV7M
  724. select ARM_AMBA
  725. select CLKSRC_MPS2
  726. help
  727. Support for Cortex-M Prototyping System (or V2M-MPS2) which comes
  728. with a range of available cores like Cortex-M3/M4/M7.
  729. Please, note that depends which Application Note is used memory map
  730. for the platform may vary, so adjustment of RAM base might be needed.
  731. # Definitions to make life easier
  732. config ARCH_ACORN
  733. bool
  734. config PLAT_IOP
  735. bool
  736. select GENERIC_CLOCKEVENTS
  737. config PLAT_ORION
  738. bool
  739. select CLKSRC_MMIO
  740. select COMMON_CLK
  741. select GENERIC_IRQ_CHIP
  742. select IRQ_DOMAIN
  743. config PLAT_ORION_LEGACY
  744. bool
  745. select PLAT_ORION
  746. config PLAT_PXA
  747. bool
  748. config PLAT_VERSATILE
  749. bool
  750. source "arch/arm/firmware/Kconfig"
  751. source arch/arm/mm/Kconfig
  752. config IWMMXT
  753. bool "Enable iWMMXt support"
  754. depends on CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_PJ4 || CPU_PJ4B
  755. default y if PXA27x || PXA3xx || ARCH_MMP || CPU_PJ4 || CPU_PJ4B
  756. help
  757. Enable support for iWMMXt context switching at run time if
  758. running on a CPU that supports it.
  759. if !MMU
  760. source "arch/arm/Kconfig-nommu"
  761. endif
  762. config PJ4B_ERRATA_4742
  763. bool "PJ4B Errata 4742: IDLE Wake Up Commands can Cause the CPU Core to Cease Operation"
  764. depends on CPU_PJ4B && MACH_ARMADA_370
  765. default y
  766. help
  767. When coming out of either a Wait for Interrupt (WFI) or a Wait for
  768. Event (WFE) IDLE states, a specific timing sensitivity exists between
  769. the retiring WFI/WFE instructions and the newly issued subsequent
  770. instructions. This sensitivity can result in a CPU hang scenario.
  771. Workaround:
  772. The software must insert either a Data Synchronization Barrier (DSB)
  773. or Data Memory Barrier (DMB) command immediately after the WFI/WFE
  774. instruction
  775. config ARM_ERRATA_326103
  776. bool "ARM errata: FSR write bit incorrect on a SWP to read-only memory"
  777. depends on CPU_V6
  778. help
  779. Executing a SWP instruction to read-only memory does not set bit 11
  780. of the FSR on the ARM 1136 prior to r1p0. This causes the kernel to
  781. treat the access as a read, preventing a COW from occurring and
  782. causing the faulting task to livelock.
  783. config ARM_ERRATA_411920
  784. bool "ARM errata: Invalidation of the Instruction Cache operation can fail"
  785. depends on CPU_V6 || CPU_V6K
  786. help
  787. Invalidation of the Instruction Cache operation can
  788. fail. This erratum is present in 1136 (before r1p4), 1156 and 1176.
  789. It does not affect the MPCore. This option enables the ARM Ltd.
  790. recommended workaround.
  791. config ARM_ERRATA_430973
  792. bool "ARM errata: Stale prediction on replaced interworking branch"
  793. depends on CPU_V7
  794. help
  795. This option enables the workaround for the 430973 Cortex-A8
  796. r1p* erratum. If a code sequence containing an ARM/Thumb
  797. interworking branch is replaced with another code sequence at the
  798. same virtual address, whether due to self-modifying code or virtual
  799. to physical address re-mapping, Cortex-A8 does not recover from the
  800. stale interworking branch prediction. This results in Cortex-A8
  801. executing the new code sequence in the incorrect ARM or Thumb state.
  802. The workaround enables the BTB/BTAC operations by setting ACTLR.IBE
  803. and also flushes the branch target cache at every context switch.
  804. Note that setting specific bits in the ACTLR register may not be
  805. available in non-secure mode.
  806. config ARM_ERRATA_458693
  807. bool "ARM errata: Processor deadlock when a false hazard is created"
  808. depends on CPU_V7
  809. depends on !ARCH_MULTIPLATFORM
  810. help
  811. This option enables the workaround for the 458693 Cortex-A8 (r2p0)
  812. erratum. For very specific sequences of memory operations, it is
  813. possible for a hazard condition intended for a cache line to instead
  814. be incorrectly associated with a different cache line. This false
  815. hazard might then cause a processor deadlock. The workaround enables
  816. the L1 caching of the NEON accesses and disables the PLD instruction
  817. in the ACTLR register. Note that setting specific bits in the ACTLR
  818. register may not be available in non-secure mode.
  819. config ARM_ERRATA_460075
  820. bool "ARM errata: Data written to the L2 cache can be overwritten with stale data"
  821. depends on CPU_V7
  822. depends on !ARCH_MULTIPLATFORM
  823. help
  824. This option enables the workaround for the 460075 Cortex-A8 (r2p0)
  825. erratum. Any asynchronous access to the L2 cache may encounter a
  826. situation in which recent store transactions to the L2 cache are lost
  827. and overwritten with stale memory contents from external memory. The
  828. workaround disables the write-allocate mode for the L2 cache via the
  829. ACTLR register. Note that setting specific bits in the ACTLR register
  830. may not be available in non-secure mode.
  831. config ARM_ERRATA_742230
  832. bool "ARM errata: DMB operation may be faulty"
  833. depends on CPU_V7 && SMP
  834. depends on !ARCH_MULTIPLATFORM
  835. help
  836. This option enables the workaround for the 742230 Cortex-A9
  837. (r1p0..r2p2) erratum. Under rare circumstances, a DMB instruction
  838. between two write operations may not ensure the correct visibility
  839. ordering of the two writes. This workaround sets a specific bit in
  840. the diagnostic register of the Cortex-A9 which causes the DMB
  841. instruction to behave as a DSB, ensuring the correct behaviour of
  842. the two writes.
  843. config ARM_ERRATA_742231
  844. bool "ARM errata: Incorrect hazard handling in the SCU may lead to data corruption"
  845. depends on CPU_V7 && SMP
  846. depends on !ARCH_MULTIPLATFORM
  847. help
  848. This option enables the workaround for the 742231 Cortex-A9
  849. (r2p0..r2p2) erratum. Under certain conditions, specific to the
  850. Cortex-A9 MPCore micro-architecture, two CPUs working in SMP mode,
  851. accessing some data located in the same cache line, may get corrupted
  852. data due to bad handling of the address hazard when the line gets
  853. replaced from one of the CPUs at the same time as another CPU is
  854. accessing it. This workaround sets specific bits in the diagnostic
  855. register of the Cortex-A9 which reduces the linefill issuing
  856. capabilities of the processor.
  857. config ARM_ERRATA_643719
  858. bool "ARM errata: LoUIS bit field in CLIDR register is incorrect"
  859. depends on CPU_V7 && SMP
  860. default y
  861. help
  862. This option enables the workaround for the 643719 Cortex-A9 (prior to
  863. r1p0) erratum. On affected cores the LoUIS bit field of the CLIDR
  864. register returns zero when it should return one. The workaround
  865. corrects this value, ensuring cache maintenance operations which use
  866. it behave as intended and avoiding data corruption.
  867. config ARM_ERRATA_720789
  868. bool "ARM errata: TLBIASIDIS and TLBIMVAIS operations can broadcast a faulty ASID"
  869. depends on CPU_V7
  870. help
  871. This option enables the workaround for the 720789 Cortex-A9 (prior to
  872. r2p0) erratum. A faulty ASID can be sent to the other CPUs for the
  873. broadcasted CP15 TLB maintenance operations TLBIASIDIS and TLBIMVAIS.
  874. As a consequence of this erratum, some TLB entries which should be
  875. invalidated are not, resulting in an incoherency in the system page
  876. tables. The workaround changes the TLB flushing routines to invalidate
  877. entries regardless of the ASID.
  878. config ARM_ERRATA_743622
  879. bool "ARM errata: Faulty hazard checking in the Store Buffer may lead to data corruption"
  880. depends on CPU_V7
  881. depends on !ARCH_MULTIPLATFORM
  882. help
  883. This option enables the workaround for the 743622 Cortex-A9
  884. (r2p*) erratum. Under very rare conditions, a faulty
  885. optimisation in the Cortex-A9 Store Buffer may lead to data
  886. corruption. This workaround sets a specific bit in the diagnostic
  887. register of the Cortex-A9 which disables the Store Buffer
  888. optimisation, preventing the defect from occurring. This has no
  889. visible impact on the overall performance or power consumption of the
  890. processor.
  891. config ARM_ERRATA_751472
  892. bool "ARM errata: Interrupted ICIALLUIS may prevent completion of broadcasted operation"
  893. depends on CPU_V7
  894. depends on !ARCH_MULTIPLATFORM
  895. help
  896. This option enables the workaround for the 751472 Cortex-A9 (prior
  897. to r3p0) erratum. An interrupted ICIALLUIS operation may prevent the
  898. completion of a following broadcasted operation if the second
  899. operation is received by a CPU before the ICIALLUIS has completed,
  900. potentially leading to corrupted entries in the cache or TLB.
  901. config ARM_ERRATA_754322
  902. bool "ARM errata: possible faulty MMU translations following an ASID switch"
  903. depends on CPU_V7
  904. help
  905. This option enables the workaround for the 754322 Cortex-A9 (r2p*,
  906. r3p*) erratum. A speculative memory access may cause a page table walk
  907. which starts prior to an ASID switch but completes afterwards. This
  908. can populate the micro-TLB with a stale entry which may be hit with
  909. the new ASID. This workaround places two dsb instructions in the mm
  910. switching code so that no page table walks can cross the ASID switch.
  911. config ARM_ERRATA_754327
  912. bool "ARM errata: no automatic Store Buffer drain"
  913. depends on CPU_V7 && SMP
  914. help
  915. This option enables the workaround for the 754327 Cortex-A9 (prior to
  916. r2p0) erratum. The Store Buffer does not have any automatic draining
  917. mechanism and therefore a livelock may occur if an external agent
  918. continuously polls a memory location waiting to observe an update.
  919. This workaround defines cpu_relax() as smp_mb(), preventing correctly
  920. written polling loops from denying visibility of updates to memory.
  921. config ARM_ERRATA_364296
  922. bool "ARM errata: Possible cache data corruption with hit-under-miss enabled"
  923. depends on CPU_V6
  924. help
  925. This options enables the workaround for the 364296 ARM1136
  926. r0p2 erratum (possible cache data corruption with
  927. hit-under-miss enabled). It sets the undocumented bit 31 in
  928. the auxiliary control register and the FI bit in the control
  929. register, thus disabling hit-under-miss without putting the
  930. processor into full low interrupt latency mode. ARM11MPCore
  931. is not affected.
  932. config ARM_ERRATA_764369
  933. bool "ARM errata: Data cache line maintenance operation by MVA may not succeed"
  934. depends on CPU_V7 && SMP
  935. help
  936. This option enables the workaround for erratum 764369
  937. affecting Cortex-A9 MPCore with two or more processors (all
  938. current revisions). Under certain timing circumstances, a data
  939. cache line maintenance operation by MVA targeting an Inner
  940. Shareable memory region may fail to proceed up to either the
  941. Point of Coherency or to the Point of Unification of the
  942. system. This workaround adds a DSB instruction before the
  943. relevant cache maintenance functions and sets a specific bit
  944. in the diagnostic control register of the SCU.
  945. config ARM_ERRATA_775420
  946. bool "ARM errata: A data cache maintenance operation which aborts, might lead to deadlock"
  947. depends on CPU_V7
  948. help
  949. This option enables the workaround for the 775420 Cortex-A9 (r2p2,
  950. r2p6,r2p8,r2p10,r3p0) erratum. In case a date cache maintenance
  951. operation aborts with MMU exception, it might cause the processor
  952. to deadlock. This workaround puts DSB before executing ISB if
  953. an abort may occur on cache maintenance.
  954. config ARM_ERRATA_798181
  955. bool "ARM errata: TLBI/DSB failure on Cortex-A15"
  956. depends on CPU_V7 && SMP
  957. help
  958. On Cortex-A15 (r0p0..r3p2) the TLBI*IS/DSB operations are not
  959. adequately shooting down all use of the old entries. This
  960. option enables the Linux kernel workaround for this erratum
  961. which sends an IPI to the CPUs that are running the same ASID
  962. as the one being invalidated.
  963. config ARM_ERRATA_773022
  964. bool "ARM errata: incorrect instructions may be executed from loop buffer"
  965. depends on CPU_V7
  966. help
  967. This option enables the workaround for the 773022 Cortex-A15
  968. (up to r0p4) erratum. In certain rare sequences of code, the
  969. loop buffer may deliver incorrect instructions. This
  970. workaround disables the loop buffer to avoid the erratum.
  971. config ARM_ERRATA_818325_852422
  972. bool "ARM errata: A12: some seqs of opposed cond code instrs => deadlock or corruption"
  973. depends on CPU_V7
  974. help
  975. This option enables the workaround for:
  976. - Cortex-A12 818325: Execution of an UNPREDICTABLE STR or STM
  977. instruction might deadlock. Fixed in r0p1.
  978. - Cortex-A12 852422: Execution of a sequence of instructions might
  979. lead to either a data corruption or a CPU deadlock. Not fixed in
  980. any Cortex-A12 cores yet.
  981. This workaround for all both errata involves setting bit[12] of the
  982. Feature Register. This bit disables an optimisation applied to a
  983. sequence of 2 instructions that use opposing condition codes.
  984. config ARM_ERRATA_821420
  985. bool "ARM errata: A12: sequence of VMOV to core registers might lead to a dead lock"
  986. depends on CPU_V7
  987. help
  988. This option enables the workaround for the 821420 Cortex-A12
  989. (all revs) erratum. In very rare timing conditions, a sequence
  990. of VMOV to Core registers instructions, for which the second
  991. one is in the shadow of a branch or abort, can lead to a
  992. deadlock when the VMOV instructions are issued out-of-order.
  993. config ARM_ERRATA_825619
  994. bool "ARM errata: A12: DMB NSHST/ISHST mixed ... might cause deadlock"
  995. depends on CPU_V7
  996. help
  997. This option enables the workaround for the 825619 Cortex-A12
  998. (all revs) erratum. Within rare timing constraints, executing a
  999. DMB NSHST or DMB ISHST instruction followed by a mix of Cacheable
  1000. and Device/Strongly-Ordered loads and stores might cause deadlock
  1001. config ARM_ERRATA_852421
  1002. bool "ARM errata: A17: DMB ST might fail to create order between stores"
  1003. depends on CPU_V7
  1004. help
  1005. This option enables the workaround for the 852421 Cortex-A17
  1006. (r1p0, r1p1, r1p2) erratum. Under very rare timing conditions,
  1007. execution of a DMB ST instruction might fail to properly order
  1008. stores from GroupA and stores from GroupB.
  1009. config ARM_ERRATA_852423
  1010. bool "ARM errata: A17: some seqs of opposed cond code instrs => deadlock or corruption"
  1011. depends on CPU_V7
  1012. help
  1013. This option enables the workaround for:
  1014. - Cortex-A17 852423: Execution of a sequence of instructions might
  1015. lead to either a data corruption or a CPU deadlock. Not fixed in
  1016. any Cortex-A17 cores yet.
  1017. This is identical to Cortex-A12 erratum 852422. It is a separate
  1018. config option from the A12 erratum due to the way errata are checked
  1019. for and handled.
  1020. endmenu
  1021. source "arch/arm/common/Kconfig"
  1022. menu "Bus support"
  1023. config ISA
  1024. bool
  1025. help
  1026. Find out whether you have ISA slots on your motherboard. ISA is the
  1027. name of a bus system, i.e. the way the CPU talks to the other stuff
  1028. inside your box. Other bus systems are PCI, EISA, MicroChannel
  1029. (MCA) or VESA. ISA is an older system, now being displaced by PCI;
  1030. newer boards don't support it. If you have ISA, say Y, otherwise N.
  1031. # Select ISA DMA controller support
  1032. config ISA_DMA
  1033. bool
  1034. select ISA_DMA_API
  1035. # Select ISA DMA interface
  1036. config ISA_DMA_API
  1037. bool
  1038. config PCI
  1039. bool "PCI support" if MIGHT_HAVE_PCI
  1040. help
  1041. Find out whether you have a PCI motherboard. PCI is the name of a
  1042. bus system, i.e. the way the CPU talks to the other stuff inside
  1043. your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
  1044. VESA. If you have PCI, say Y, otherwise N.
  1045. config PCI_DOMAINS
  1046. bool "Support for multiple PCI domains"
  1047. depends on PCI
  1048. help
  1049. Enable PCI domains kernel management. Say Y if your machine
  1050. has a PCI bus hierarchy that requires more than one PCI
  1051. domain (aka segment) to be correctly managed. Say N otherwise.
  1052. If you don't know what to do here, say N.
  1053. config PCI_DOMAINS_GENERIC
  1054. def_bool PCI_DOMAINS
  1055. config PCI_NANOENGINE
  1056. bool "BSE nanoEngine PCI support"
  1057. depends on SA1100_NANOENGINE
  1058. help
  1059. Enable PCI on the BSE nanoEngine board.
  1060. config PCI_SYSCALL
  1061. def_bool PCI
  1062. config PCI_HOST_ITE8152
  1063. bool
  1064. depends on PCI && MACH_ARMCORE
  1065. default y
  1066. select DMABOUNCE
  1067. source "drivers/pci/Kconfig"
  1068. source "drivers/pcmcia/Kconfig"
  1069. endmenu
  1070. menu "Kernel Features"
  1071. config HAVE_SMP
  1072. bool
  1073. help
  1074. This option should be selected by machines which have an SMP-
  1075. capable CPU.
  1076. The only effect of this option is to make the SMP-related
  1077. options available to the user for configuration.
  1078. config SMP
  1079. bool "Symmetric Multi-Processing"
  1080. depends on CPU_V6K || CPU_V7
  1081. depends on GENERIC_CLOCKEVENTS
  1082. depends on HAVE_SMP
  1083. depends on MMU || ARM_MPU
  1084. select IRQ_WORK
  1085. help
  1086. This enables support for systems with more than one CPU. If you have
  1087. a system with only one CPU, say N. If you have a system with more
  1088. than one CPU, say Y.
  1089. If you say N here, the kernel will run on uni- and multiprocessor
  1090. machines, but will use only one CPU of a multiprocessor machine. If
  1091. you say Y here, the kernel will run on many, but not all,
  1092. uniprocessor machines. On a uniprocessor machine, the kernel
  1093. will run faster if you say N here.
  1094. See also <file:Documentation/x86/i386/IO-APIC.txt>,
  1095. <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
  1096. <http://tldp.org/HOWTO/SMP-HOWTO.html>.
  1097. If you don't know what to do here, say N.
  1098. config SMP_ON_UP
  1099. bool "Allow booting SMP kernel on uniprocessor systems"
  1100. depends on SMP && !XIP_KERNEL && MMU
  1101. default y
  1102. help
  1103. SMP kernels contain instructions which fail on non-SMP processors.
  1104. Enabling this option allows the kernel to modify itself to make
  1105. these instructions safe. Disabling it allows about 1K of space
  1106. savings.
  1107. If you don't know what to do here, say Y.
  1108. config ARM_CPU_TOPOLOGY
  1109. bool "Support cpu topology definition"
  1110. depends on SMP && CPU_V7
  1111. default y
  1112. help
  1113. Support ARM cpu topology definition. The MPIDR register defines
  1114. affinity between processors which is then used to describe the cpu
  1115. topology of an ARM System.
  1116. config SCHED_MC
  1117. bool "Multi-core scheduler support"
  1118. depends on ARM_CPU_TOPOLOGY
  1119. help
  1120. Multi-core scheduler support improves the CPU scheduler's decision
  1121. making when dealing with multi-core CPU chips at a cost of slightly
  1122. increased overhead in some places. If unsure say N here.
  1123. config SCHED_SMT
  1124. bool "SMT scheduler support"
  1125. depends on ARM_CPU_TOPOLOGY
  1126. help
  1127. Improves the CPU scheduler's decision making when dealing with
  1128. MultiThreading at a cost of slightly increased overhead in some
  1129. places. If unsure say N here.
  1130. config HAVE_ARM_SCU
  1131. bool
  1132. help
  1133. This option enables support for the ARM system coherency unit
  1134. config HAVE_ARM_ARCH_TIMER
  1135. bool "Architected timer support"
  1136. depends on CPU_V7
  1137. select ARM_ARCH_TIMER
  1138. select GENERIC_CLOCKEVENTS
  1139. help
  1140. This option enables support for the ARM architected timer
  1141. config HAVE_ARM_TWD
  1142. bool
  1143. select TIMER_OF if OF
  1144. help
  1145. This options enables support for the ARM timer and watchdog unit
  1146. config MCPM
  1147. bool "Multi-Cluster Power Management"
  1148. depends on CPU_V7 && SMP
  1149. help
  1150. This option provides the common power management infrastructure
  1151. for (multi-)cluster based systems, such as big.LITTLE based
  1152. systems.
  1153. config MCPM_QUAD_CLUSTER
  1154. bool
  1155. depends on MCPM
  1156. help
  1157. To avoid wasting resources unnecessarily, MCPM only supports up
  1158. to 2 clusters by default.
  1159. Platforms with 3 or 4 clusters that use MCPM must select this
  1160. option to allow the additional clusters to be managed.
  1161. config BIG_LITTLE
  1162. bool "big.LITTLE support (Experimental)"
  1163. depends on CPU_V7 && SMP
  1164. select MCPM
  1165. help
  1166. This option enables support selections for the big.LITTLE
  1167. system architecture.
  1168. config BL_SWITCHER
  1169. bool "big.LITTLE switcher support"
  1170. depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC
  1171. select CPU_PM
  1172. help
  1173. The big.LITTLE "switcher" provides the core functionality to
  1174. transparently handle transition between a cluster of A15's
  1175. and a cluster of A7's in a big.LITTLE system.
  1176. config BL_SWITCHER_DUMMY_IF
  1177. tristate "Simple big.LITTLE switcher user interface"
  1178. depends on BL_SWITCHER && DEBUG_KERNEL
  1179. help
  1180. This is a simple and dummy char dev interface to control
  1181. the big.LITTLE switcher core code. It is meant for
  1182. debugging purposes only.
  1183. choice
  1184. prompt "Memory split"
  1185. depends on MMU
  1186. default VMSPLIT_3G
  1187. help
  1188. Select the desired split between kernel and user memory.
  1189. If you are not absolutely sure what you are doing, leave this
  1190. option alone!
  1191. config VMSPLIT_3G
  1192. bool "3G/1G user/kernel split"
  1193. config VMSPLIT_3G_OPT
  1194. depends on !ARM_LPAE
  1195. bool "3G/1G user/kernel split (for full 1G low memory)"
  1196. config VMSPLIT_2G
  1197. bool "2G/2G user/kernel split"
  1198. config VMSPLIT_1G
  1199. bool "1G/3G user/kernel split"
  1200. endchoice
  1201. config PAGE_OFFSET
  1202. hex
  1203. default PHYS_OFFSET if !MMU
  1204. default 0x40000000 if VMSPLIT_1G
  1205. default 0x80000000 if VMSPLIT_2G
  1206. default 0xB0000000 if VMSPLIT_3G_OPT
  1207. default 0xC0000000
  1208. config NR_CPUS
  1209. int "Maximum number of CPUs (2-32)"
  1210. range 2 32
  1211. depends on SMP
  1212. default "4"
  1213. config HOTPLUG_CPU
  1214. bool "Support for hot-pluggable CPUs"
  1215. depends on SMP
  1216. select GENERIC_IRQ_MIGRATION
  1217. help
  1218. Say Y here to experiment with turning CPUs off and on. CPUs
  1219. can be controlled through /sys/devices/system/cpu.
  1220. config ARM_PSCI
  1221. bool "Support for the ARM Power State Coordination Interface (PSCI)"
  1222. depends on HAVE_ARM_SMCCC
  1223. select ARM_PSCI_FW
  1224. help
  1225. Say Y here if you want Linux to communicate with system firmware
  1226. implementing the PSCI specification for CPU-centric power
  1227. management operations described in ARM document number ARM DEN
  1228. 0022A ("Power State Coordination Interface System Software on
  1229. ARM processors").
  1230. # The GPIO number here must be sorted by descending number. In case of
  1231. # a multiplatform kernel, we just want the highest value required by the
  1232. # selected platforms.
  1233. config ARCH_NR_GPIO
  1234. int
  1235. default 2048 if ARCH_SOCFPGA
  1236. default 1024 if ARCH_BRCMSTB || ARCH_RENESAS || ARCH_TEGRA || \
  1237. ARCH_ZYNQ
  1238. default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5 || \
  1239. SOC_DRA7XX || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
  1240. default 416 if ARCH_SUNXI
  1241. default 392 if ARCH_U8500
  1242. default 352 if ARCH_VT8500
  1243. default 288 if ARCH_ROCKCHIP
  1244. default 264 if MACH_H4700
  1245. default 0
  1246. help
  1247. Maximum number of GPIOs in the system.
  1248. If unsure, leave the default value.
  1249. config HZ_FIXED
  1250. int
  1251. default 200 if ARCH_EBSA110
  1252. default 128 if SOC_AT91RM9200
  1253. default 0
  1254. choice
  1255. depends on HZ_FIXED = 0
  1256. prompt "Timer frequency"
  1257. config HZ_100
  1258. bool "100 Hz"
  1259. config HZ_200
  1260. bool "200 Hz"
  1261. config HZ_250
  1262. bool "250 Hz"
  1263. config HZ_300
  1264. bool "300 Hz"
  1265. config HZ_500
  1266. bool "500 Hz"
  1267. config HZ_1000
  1268. bool "1000 Hz"
  1269. endchoice
  1270. config HZ
  1271. int
  1272. default HZ_FIXED if HZ_FIXED != 0
  1273. default 100 if HZ_100
  1274. default 200 if HZ_200
  1275. default 250 if HZ_250
  1276. default 300 if HZ_300
  1277. default 500 if HZ_500
  1278. default 1000
  1279. config SCHED_HRTICK
  1280. def_bool HIGH_RES_TIMERS
  1281. config THUMB2_KERNEL
  1282. bool "Compile the kernel in Thumb-2 mode" if !CPU_THUMBONLY
  1283. depends on (CPU_V7 || CPU_V7M) && !CPU_V6 && !CPU_V6K
  1284. default y if CPU_THUMBONLY
  1285. select ARM_UNWIND
  1286. help
  1287. By enabling this option, the kernel will be compiled in
  1288. Thumb-2 mode.
  1289. If unsure, say N.
  1290. config THUMB2_AVOID_R_ARM_THM_JUMP11
  1291. bool "Work around buggy Thumb-2 short branch relocations in gas"
  1292. depends on THUMB2_KERNEL && MODULES
  1293. default y
  1294. help
  1295. Various binutils versions can resolve Thumb-2 branches to
  1296. locally-defined, preemptible global symbols as short-range "b.n"
  1297. branch instructions.
  1298. This is a problem, because there's no guarantee the final
  1299. destination of the symbol, or any candidate locations for a
  1300. trampoline, are within range of the branch. For this reason, the
  1301. kernel does not support fixing up the R_ARM_THM_JUMP11 (102)
  1302. relocation in modules at all, and it makes little sense to add
  1303. support.
  1304. The symptom is that the kernel fails with an "unsupported
  1305. relocation" error when loading some modules.
  1306. Until fixed tools are available, passing
  1307. -fno-optimize-sibling-calls to gcc should prevent gcc generating
  1308. code which hits this problem, at the cost of a bit of extra runtime
  1309. stack usage in some cases.
  1310. The problem is described in more detail at:
  1311. https://bugs.launchpad.net/binutils-linaro/+bug/725126
  1312. Only Thumb-2 kernels are affected.
  1313. Unless you are sure your tools don't have this problem, say Y.
  1314. config ARM_PATCH_IDIV
  1315. bool "Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv()"
  1316. depends on CPU_32v7 && !XIP_KERNEL
  1317. default y
  1318. help
  1319. The ARM compiler inserts calls to __aeabi_idiv() and
  1320. __aeabi_uidiv() when it needs to perform division on signed
  1321. and unsigned integers. Some v7 CPUs have support for the sdiv
  1322. and udiv instructions that can be used to implement those
  1323. functions.
  1324. Enabling this option allows the kernel to modify itself to
  1325. replace the first two instructions of these library functions
  1326. with the sdiv or udiv plus "bx lr" instructions when the CPU
  1327. it is running on supports them. Typically this will be faster
  1328. and less power intensive than running the original library
  1329. code to do integer division.
  1330. config AEABI
  1331. bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && \
  1332. !CPU_V7M && !CPU_V6 && !CPU_V6K && !CC_IS_CLANG
  1333. default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K || CC_IS_CLANG
  1334. help
  1335. This option allows for the kernel to be compiled using the latest
  1336. ARM ABI (aka EABI). This is only useful if you are using a user
  1337. space environment that is also compiled with EABI.
  1338. Since there are major incompatibilities between the legacy ABI and
  1339. EABI, especially with regard to structure member alignment, this
  1340. option also changes the kernel syscall calling convention to
  1341. disambiguate both ABIs and allow for backward compatibility support
  1342. (selected with CONFIG_OABI_COMPAT).
  1343. To use this you need GCC version 4.0.0 or later.
  1344. config OABI_COMPAT
  1345. bool "Allow old ABI binaries to run with this kernel (EXPERIMENTAL)"
  1346. depends on AEABI && !THUMB2_KERNEL
  1347. help
  1348. This option preserves the old syscall interface along with the
  1349. new (ARM EABI) one. It also provides a compatibility layer to
  1350. intercept syscalls that have structure arguments which layout
  1351. in memory differs between the legacy ABI and the new ARM EABI
  1352. (only for non "thumb" binaries). This option adds a tiny
  1353. overhead to all syscalls and produces a slightly larger kernel.
  1354. The seccomp filter system will not be available when this is
  1355. selected, since there is no way yet to sensibly distinguish
  1356. between calling conventions during filtering.
  1357. If you know you'll be using only pure EABI user space then you
  1358. can say N here. If this option is not selected and you attempt
  1359. to execute a legacy ABI binary then the result will be
  1360. UNPREDICTABLE (in fact it can be predicted that it won't work
  1361. at all). If in doubt say N.
  1362. config ARCH_HAS_HOLES_MEMORYMODEL
  1363. bool
  1364. config ARCH_SPARSEMEM_ENABLE
  1365. bool
  1366. config ARCH_SPARSEMEM_DEFAULT
  1367. def_bool ARCH_SPARSEMEM_ENABLE
  1368. config ARCH_SELECT_MEMORY_MODEL
  1369. def_bool ARCH_SPARSEMEM_ENABLE
  1370. config HAVE_ARCH_PFN_VALID
  1371. def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
  1372. config HAVE_GENERIC_GUP
  1373. def_bool y
  1374. depends on ARM_LPAE
  1375. config HIGHMEM
  1376. bool "High Memory Support"
  1377. depends on MMU
  1378. help
  1379. The address space of ARM processors is only 4 Gigabytes large
  1380. and it has to accommodate user address space, kernel address
  1381. space as well as some memory mapped IO. That means that, if you
  1382. have a large amount of physical memory and/or IO, not all of the
  1383. memory can be "permanently mapped" by the kernel. The physical
  1384. memory that is not permanently mapped is called "high memory".
  1385. Depending on the selected kernel/user memory split, minimum
  1386. vmalloc space and actual amount of RAM, you may not need this
  1387. option which should result in a slightly faster kernel.
  1388. If unsure, say n.
  1389. config HIGHPTE
  1390. bool "Allocate 2nd-level pagetables from highmem" if EXPERT
  1391. depends on HIGHMEM
  1392. default y
  1393. help
  1394. The VM uses one page of physical memory for each page table.
  1395. For systems with a lot of processes, this can use a lot of
  1396. precious low memory, eventually leading to low memory being
  1397. consumed by page tables. Setting this option will allow
  1398. user-space 2nd level page tables to reside in high memory.
  1399. config CPU_SW_DOMAIN_PAN
  1400. bool "Enable use of CPU domains to implement privileged no-access"
  1401. depends on MMU && !ARM_LPAE
  1402. default y
  1403. help
  1404. Increase kernel security by ensuring that normal kernel accesses
  1405. are unable to access userspace addresses. This can help prevent
  1406. use-after-free bugs becoming an exploitable privilege escalation
  1407. by ensuring that magic values (such as LIST_POISON) will always
  1408. fault when dereferenced.
  1409. CPUs with low-vector mappings use a best-efforts implementation.
  1410. Their lower 1MB needs to remain accessible for the vectors, but
  1411. the remainder of userspace will become appropriately inaccessible.
  1412. config HW_PERF_EVENTS
  1413. def_bool y
  1414. depends on ARM_PMU
  1415. config SYS_SUPPORTS_HUGETLBFS
  1416. def_bool y
  1417. depends on ARM_LPAE
  1418. config HAVE_ARCH_TRANSPARENT_HUGEPAGE
  1419. def_bool y
  1420. depends on ARM_LPAE
  1421. config ARCH_WANT_GENERAL_HUGETLB
  1422. def_bool y
  1423. config ARM_MODULE_PLTS
  1424. bool "Use PLTs to allow module memory to spill over into vmalloc area"
  1425. depends on MODULES
  1426. default y
  1427. help
  1428. Allocate PLTs when loading modules so that jumps and calls whose
  1429. targets are too far away for their relative offsets to be encoded
  1430. in the instructions themselves can be bounced via veneers in the
  1431. module's PLT. This allows modules to be allocated in the generic
  1432. vmalloc area after the dedicated module memory area has been
  1433. exhausted. The modules will use slightly more memory, but after
  1434. rounding up to page size, the actual memory footprint is usually
  1435. the same.
  1436. Disabling this is usually safe for small single-platform
  1437. configurations. If unsure, say y.
  1438. config FORCE_MAX_ZONEORDER
  1439. int "Maximum zone order"
  1440. default "12" if SOC_AM33XX
  1441. default "9" if SA1111 || ARCH_EFM32
  1442. default "11"
  1443. help
  1444. The kernel memory allocator divides physically contiguous memory
  1445. blocks into "zones", where each zone is a power of two number of
  1446. pages. This option selects the largest power of two that the kernel
  1447. keeps in the memory allocator. If you need to allocate very large
  1448. blocks of physically contiguous memory, then you may need to
  1449. increase this value.
  1450. This config option is actually maximum order plus one. For example,
  1451. a value of 11 means that the largest free memory block is 2^10 pages.
  1452. config ALIGNMENT_TRAP
  1453. bool
  1454. depends on CPU_CP15_MMU
  1455. default y if !ARCH_EBSA110
  1456. select HAVE_PROC_CPU if PROC_FS
  1457. help
  1458. ARM processors cannot fetch/store information which is not
  1459. naturally aligned on the bus, i.e., a 4 byte fetch must start at an
  1460. address divisible by 4. On 32-bit ARM processors, these non-aligned
  1461. fetch/store instructions will be emulated in software if you say
  1462. here, which has a severe performance impact. This is necessary for
  1463. correct operation of some network protocols. With an IP-only
  1464. configuration it is safe to say N, otherwise say Y.
  1465. config UACCESS_WITH_MEMCPY
  1466. bool "Use kernel mem{cpy,set}() for {copy_to,clear}_user()"
  1467. depends on MMU
  1468. default y if CPU_FEROCEON
  1469. help
  1470. Implement faster copy_to_user and clear_user methods for CPU
  1471. cores where a 8-word STM instruction give significantly higher
  1472. memory write throughput than a sequence of individual 32bit stores.
  1473. A possible side effect is a slight increase in scheduling latency
  1474. between threads sharing the same address space if they invoke
  1475. such copy operations with large buffers.
  1476. However, if the CPU data cache is using a write-allocate mode,
  1477. this option is unlikely to provide any performance gain.
  1478. config SECCOMP
  1479. bool
  1480. prompt "Enable seccomp to safely compute untrusted bytecode"
  1481. ---help---
  1482. This kernel feature is useful for number crunching applications
  1483. that may need to compute untrusted bytecode during their
  1484. execution. By using pipes or other transports made available to
  1485. the process as file descriptors supporting the read/write
  1486. syscalls, it's possible to isolate those applications in
  1487. their own address space using seccomp. Once seccomp is
  1488. enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
  1489. and the task is only allowed to execute a few safe syscalls
  1490. defined by each seccomp mode.
  1491. config PARAVIRT
  1492. bool "Enable paravirtualization code"
  1493. help
  1494. This changes the kernel so it can modify itself when it is run
  1495. under a hypervisor, potentially improving performance significantly
  1496. over full virtualization.
  1497. config PARAVIRT_TIME_ACCOUNTING
  1498. bool "Paravirtual steal time accounting"
  1499. select PARAVIRT
  1500. default n
  1501. help
  1502. Select this option to enable fine granularity task steal time
  1503. accounting. Time spent executing other tasks in parallel with
  1504. the current vCPU is discounted from the vCPU power. To account for
  1505. that, there can be a small performance impact.
  1506. If in doubt, say N here.
  1507. config XEN_DOM0
  1508. def_bool y
  1509. depends on XEN
  1510. config XEN
  1511. bool "Xen guest support on ARM"
  1512. depends on ARM && AEABI && OF
  1513. depends on CPU_V7 && !CPU_V6
  1514. depends on !GENERIC_ATOMIC64
  1515. depends on MMU
  1516. select ARCH_DMA_ADDR_T_64BIT
  1517. select ARM_PSCI
  1518. select SWIOTLB
  1519. select SWIOTLB_XEN
  1520. select PARAVIRT
  1521. help
  1522. Say Y if you want to run Linux in a Virtual Machine on Xen on ARM.
  1523. endmenu
  1524. menu "Boot options"
  1525. config USE_OF
  1526. bool "Flattened Device Tree support"
  1527. select IRQ_DOMAIN
  1528. select OF
  1529. help
  1530. Include support for flattened device tree machine descriptions.
  1531. config ATAGS
  1532. bool "Support for the traditional ATAGS boot data passing" if USE_OF
  1533. default y
  1534. help
  1535. This is the traditional way of passing data to the kernel at boot
  1536. time. If you are solely relying on the flattened device tree (or
  1537. the ARM_ATAG_DTB_COMPAT option) then you may unselect this option
  1538. to remove ATAGS support from your kernel binary. If unsure,
  1539. leave this to y.
  1540. config DEPRECATED_PARAM_STRUCT
  1541. bool "Provide old way to pass kernel parameters"
  1542. depends on ATAGS
  1543. help
  1544. This was deprecated in 2001 and announced to live on for 5 years.
  1545. Some old boot loaders still use this way.
  1546. # Compressed boot loader in ROM. Yes, we really want to ask about
  1547. # TEXT and BSS so we preserve their values in the config files.
  1548. config ZBOOT_ROM_TEXT
  1549. hex "Compressed ROM boot loader base address"
  1550. default "0"
  1551. help
  1552. The physical address at which the ROM-able zImage is to be
  1553. placed in the target. Platforms which normally make use of
  1554. ROM-able zImage formats normally set this to a suitable
  1555. value in their defconfig file.
  1556. If ZBOOT_ROM is not enabled, this has no effect.
  1557. config ZBOOT_ROM_BSS
  1558. hex "Compressed ROM boot loader BSS address"
  1559. default "0"
  1560. help
  1561. The base address of an area of read/write memory in the target
  1562. for the ROM-able zImage which must be available while the
  1563. decompressor is running. It must be large enough to hold the
  1564. entire decompressed kernel plus an additional 128 KiB.
  1565. Platforms which normally make use of ROM-able zImage formats
  1566. normally set this to a suitable value in their defconfig file.
  1567. If ZBOOT_ROM is not enabled, this has no effect.
  1568. config ZBOOT_ROM
  1569. bool "Compressed boot loader in ROM/flash"
  1570. depends on ZBOOT_ROM_TEXT != ZBOOT_ROM_BSS
  1571. depends on !ARM_APPENDED_DTB && !XIP_KERNEL && !AUTO_ZRELADDR
  1572. help
  1573. Say Y here if you intend to execute your compressed kernel image
  1574. (zImage) directly from ROM or flash. If unsure, say N.
  1575. config ARM_APPENDED_DTB
  1576. bool "Use appended device tree blob to zImage (EXPERIMENTAL)"
  1577. depends on OF
  1578. help
  1579. With this option, the boot code will look for a device tree binary
  1580. (DTB) appended to zImage
  1581. (e.g. cat zImage <filename>.dtb > zImage_w_dtb).
  1582. This is meant as a backward compatibility convenience for those
  1583. systems with a bootloader that can't be upgraded to accommodate
  1584. the documented boot protocol using a device tree.
  1585. Beware that there is very little in terms of protection against
  1586. this option being confused by leftover garbage in memory that might
  1587. look like a DTB header after a reboot if no actual DTB is appended
  1588. to zImage. Do not leave this option active in a production kernel
  1589. if you don't intend to always append a DTB. Proper passing of the
  1590. location into r2 of a bootloader provided DTB is always preferable
  1591. to this option.
  1592. config ARM_ATAG_DTB_COMPAT
  1593. bool "Supplement the appended DTB with traditional ATAG information"
  1594. depends on ARM_APPENDED_DTB
  1595. help
  1596. Some old bootloaders can't be updated to a DTB capable one, yet
  1597. they provide ATAGs with memory configuration, the ramdisk address,
  1598. the kernel cmdline string, etc. Such information is dynamically
  1599. provided by the bootloader and can't always be stored in a static
  1600. DTB. To allow a device tree enabled kernel to be used with such
  1601. bootloaders, this option allows zImage to extract the information
  1602. from the ATAG list and store it at run time into the appended DTB.
  1603. choice
  1604. prompt "Kernel command line type" if ARM_ATAG_DTB_COMPAT
  1605. default ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
  1606. config ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
  1607. bool "Use bootloader kernel arguments if available"
  1608. help
  1609. Uses the command-line options passed by the boot loader instead of
  1610. the device tree bootargs property. If the boot loader doesn't provide
  1611. any, the device tree bootargs property will be used.
  1612. config ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND
  1613. bool "Extend with bootloader kernel arguments"
  1614. help
  1615. The command-line arguments provided by the boot loader will be
  1616. appended to the the device tree bootargs property.
  1617. endchoice
  1618. config CMDLINE
  1619. string "Default kernel command string"
  1620. default ""
  1621. help
  1622. On some architectures (EBSA110 and CATS), there is currently no way
  1623. for the boot loader to pass arguments to the kernel. For these
  1624. architectures, you should supply some command-line options at build
  1625. time by entering them here. As a minimum, you should specify the
  1626. memory size and the root device (e.g., mem=64M root=/dev/nfs).
  1627. choice
  1628. prompt "Kernel command line type" if CMDLINE != ""
  1629. default CMDLINE_FROM_BOOTLOADER
  1630. depends on ATAGS
  1631. config CMDLINE_FROM_BOOTLOADER
  1632. bool "Use bootloader kernel arguments if available"
  1633. help
  1634. Uses the command-line options passed by the boot loader. If
  1635. the boot loader doesn't provide any, the default kernel command
  1636. string provided in CMDLINE will be used.
  1637. config CMDLINE_EXTEND
  1638. bool "Extend bootloader kernel arguments"
  1639. help
  1640. The command-line arguments provided by the boot loader will be
  1641. appended to the default kernel command string.
  1642. config CMDLINE_FORCE
  1643. bool "Always use the default kernel command string"
  1644. help
  1645. Always use the default kernel command string, even if the boot
  1646. loader passes other arguments to the kernel.
  1647. This is useful if you cannot or don't want to change the
  1648. command-line options your boot loader passes to the kernel.
  1649. endchoice
  1650. config XIP_KERNEL
  1651. bool "Kernel Execute-In-Place from ROM"
  1652. depends on !ARM_LPAE && !ARCH_MULTIPLATFORM
  1653. help
  1654. Execute-In-Place allows the kernel to run from non-volatile storage
  1655. directly addressable by the CPU, such as NOR flash. This saves RAM
  1656. space since the text section of the kernel is not loaded from flash
  1657. to RAM. Read-write sections, such as the data section and stack,
  1658. are still copied to RAM. The XIP kernel is not compressed since
  1659. it has to run directly from flash, so it will take more space to
  1660. store it. The flash address used to link the kernel object files,
  1661. and for storing it, is configuration dependent. Therefore, if you
  1662. say Y here, you must know the proper physical address where to
  1663. store the kernel image depending on your own flash memory usage.
  1664. Also note that the make target becomes "make xipImage" rather than
  1665. "make zImage" or "make Image". The final kernel binary to put in
  1666. ROM memory will be arch/arm/boot/xipImage.
  1667. If unsure, say N.
  1668. config XIP_PHYS_ADDR
  1669. hex "XIP Kernel Physical Location"
  1670. depends on XIP_KERNEL
  1671. default "0x00080000"
  1672. help
  1673. This is the physical address in your flash memory the kernel will
  1674. be linked for and stored to. This address is dependent on your
  1675. own flash usage.
  1676. config XIP_DEFLATED_DATA
  1677. bool "Store kernel .data section compressed in ROM"
  1678. depends on XIP_KERNEL
  1679. select ZLIB_INFLATE
  1680. help
  1681. Before the kernel is actually executed, its .data section has to be
  1682. copied to RAM from ROM. This option allows for storing that data
  1683. in compressed form and decompressed to RAM rather than merely being
  1684. copied, saving some precious ROM space. A possible drawback is a
  1685. slightly longer boot delay.
  1686. config KEXEC
  1687. bool "Kexec system call (EXPERIMENTAL)"
  1688. depends on (!SMP || PM_SLEEP_SMP)
  1689. depends on MMU
  1690. select KEXEC_CORE
  1691. help
  1692. kexec is a system call that implements the ability to shutdown your
  1693. current kernel, and to start another kernel. It is like a reboot
  1694. but it is independent of the system firmware. And like a reboot
  1695. you can start any kernel with it, not just Linux.
  1696. It is an ongoing process to be certain the hardware in a machine
  1697. is properly shutdown, so do not be surprised if this code does not
  1698. initially work for you.
  1699. config ATAGS_PROC
  1700. bool "Export atags in procfs"
  1701. depends on ATAGS && KEXEC
  1702. default y
  1703. help
  1704. Should the atags used to boot the kernel be exported in an "atags"
  1705. file in procfs. Useful with kexec.
  1706. config CRASH_DUMP
  1707. bool "Build kdump crash kernel (EXPERIMENTAL)"
  1708. help
  1709. Generate crash dump after being started by kexec. This should
  1710. be normally only set in special crash dump kernels which are
  1711. loaded in the main kernel with kexec-tools into a specially
  1712. reserved region and then later executed after a crash by
  1713. kdump/kexec. The crash dump kernel must be compiled to a
  1714. memory address not used by the main kernel
  1715. For more details see Documentation/kdump/kdump.txt
  1716. config AUTO_ZRELADDR
  1717. bool "Auto calculation of the decompressed kernel image address"
  1718. help
  1719. ZRELADDR is the physical address where the decompressed kernel
  1720. image will be placed. If AUTO_ZRELADDR is selected, the address
  1721. will be determined at run-time by masking the current IP with
  1722. 0xf8000000. This assumes the zImage being placed in the first 128MB
  1723. from start of memory.
  1724. config EFI_STUB
  1725. bool
  1726. config EFI
  1727. bool "UEFI runtime support"
  1728. depends on OF && !CPU_BIG_ENDIAN && MMU && AUTO_ZRELADDR && !XIP_KERNEL
  1729. select UCS2_STRING
  1730. select EFI_PARAMS_FROM_FDT
  1731. select EFI_STUB
  1732. select EFI_ARMSTUB
  1733. select EFI_RUNTIME_WRAPPERS
  1734. ---help---
  1735. This option provides support for runtime services provided
  1736. by UEFI firmware (such as non-volatile variables, realtime
  1737. clock, and platform reset). A UEFI stub is also provided to
  1738. allow the kernel to be booted as an EFI application. This
  1739. is only useful for kernels that may run on systems that have
  1740. UEFI firmware.
  1741. config DMI
  1742. bool "Enable support for SMBIOS (DMI) tables"
  1743. depends on EFI
  1744. default y
  1745. help
  1746. This enables SMBIOS/DMI feature for systems.
  1747. This option is only useful on systems that have UEFI firmware.
  1748. However, even with this option, the resultant kernel should
  1749. continue to boot on existing non-UEFI platforms.
  1750. NOTE: This does *NOT* enable or encourage the use of DMI quirks,
  1751. i.e., the the practice of identifying the platform via DMI to
  1752. decide whether certain workarounds for buggy hardware and/or
  1753. firmware need to be enabled. This would require the DMI subsystem
  1754. to be enabled much earlier than we do on ARM, which is non-trivial.
  1755. endmenu
  1756. menu "CPU Power Management"
  1757. source "drivers/cpufreq/Kconfig"
  1758. source "drivers/cpuidle/Kconfig"
  1759. endmenu
  1760. menu "Floating point emulation"
  1761. comment "At least one emulation must be selected"
  1762. config FPE_NWFPE
  1763. bool "NWFPE math emulation"
  1764. depends on (!AEABI || OABI_COMPAT) && !THUMB2_KERNEL
  1765. ---help---
  1766. Say Y to include the NWFPE floating point emulator in the kernel.
  1767. This is necessary to run most binaries. Linux does not currently
  1768. support floating point hardware so you need to say Y here even if
  1769. your machine has an FPA or floating point co-processor podule.
  1770. You may say N here if you are going to load the Acorn FPEmulator
  1771. early in the bootup.
  1772. config FPE_NWFPE_XP
  1773. bool "Support extended precision"
  1774. depends on FPE_NWFPE
  1775. help
  1776. Say Y to include 80-bit support in the kernel floating-point
  1777. emulator. Otherwise, only 32 and 64-bit support is compiled in.
  1778. Note that gcc does not generate 80-bit operations by default,
  1779. so in most cases this option only enlarges the size of the
  1780. floating point emulator without any good reason.
  1781. You almost surely want to say N here.
  1782. config FPE_FASTFPE
  1783. bool "FastFPE math emulation (EXPERIMENTAL)"
  1784. depends on (!AEABI || OABI_COMPAT) && !CPU_32v3
  1785. ---help---
  1786. Say Y here to include the FAST floating point emulator in the kernel.
  1787. This is an experimental much faster emulator which now also has full
  1788. precision for the mantissa. It does not support any exceptions.
  1789. It is very simple, and approximately 3-6 times faster than NWFPE.
  1790. It should be sufficient for most programs. It may be not suitable
  1791. for scientific calculations, but you have to check this for yourself.
  1792. If you do not feel you need a faster FP emulation you should better
  1793. choose NWFPE.
  1794. config VFP
  1795. bool "VFP-format floating point maths"
  1796. depends on CPU_V6 || CPU_V6K || CPU_ARM926T || CPU_V7 || CPU_FEROCEON
  1797. help
  1798. Say Y to include VFP support code in the kernel. This is needed
  1799. if your hardware includes a VFP unit.
  1800. Please see <file:Documentation/arm/VFP/release-notes.txt> for
  1801. release notes and additional status information.
  1802. Say N if your target does not have VFP hardware.
  1803. config VFPv3
  1804. bool
  1805. depends on VFP
  1806. default y if CPU_V7
  1807. config NEON
  1808. bool "Advanced SIMD (NEON) Extension support"
  1809. depends on VFPv3 && CPU_V7
  1810. help
  1811. Say Y to include support code for NEON, the ARMv7 Advanced SIMD
  1812. Extension.
  1813. config KERNEL_MODE_NEON
  1814. bool "Support for NEON in kernel mode"
  1815. depends on NEON && AEABI
  1816. help
  1817. Say Y to include support for NEON in kernel mode.
  1818. endmenu
  1819. menu "Power management options"
  1820. source "kernel/power/Kconfig"
  1821. config ARCH_SUSPEND_POSSIBLE
  1822. depends on CPU_ARM920T || CPU_ARM926T || CPU_FEROCEON || CPU_SA1100 || \
  1823. CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M || CPU_XSC3 || CPU_XSCALE || CPU_MOHAWK
  1824. def_bool y
  1825. config ARM_CPU_SUSPEND
  1826. def_bool PM_SLEEP || BL_SWITCHER || ARM_PSCI_FW
  1827. depends on ARCH_SUSPEND_POSSIBLE
  1828. config ARCH_HIBERNATION_POSSIBLE
  1829. bool
  1830. depends on MMU
  1831. default y if ARCH_SUSPEND_POSSIBLE
  1832. endmenu
  1833. source "drivers/firmware/Kconfig"
  1834. if CRYPTO
  1835. source "arch/arm/crypto/Kconfig"
  1836. endif
  1837. source "arch/arm/kvm/Kconfig"