Kconfig 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202
  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 S3C2410_WATCHDOG
  530. select SAMSUNG_ATAGS
  531. select USE_OF
  532. select WATCHDOG
  533. help
  534. Samsung S3C2410, S3C2412, S3C2413, S3C2416, S3C2440, S3C2442, S3C2443
  535. and S3C2450 SoCs based systems, such as the Simtec Electronics BAST
  536. (<http://www.simtec.co.uk/products/EB110ITX/>), the IPAQ 1940 or the
  537. Samsung SMDK2410 development board (and derivatives).
  538. config ARCH_DAVINCI
  539. bool "TI DaVinci"
  540. select ARCH_HAS_HOLES_MEMORYMODEL
  541. select COMMON_CLK
  542. select CPU_ARM926T
  543. select GENERIC_ALLOCATOR
  544. select GENERIC_CLOCKEVENTS
  545. select GENERIC_IRQ_CHIP
  546. select GPIOLIB
  547. select HAVE_IDE
  548. select PM_GENERIC_DOMAINS if PM
  549. select PM_GENERIC_DOMAINS_OF if PM && OF
  550. select REGMAP_MMIO
  551. select RESET_CONTROLLER
  552. select USE_OF
  553. select ZONE_DMA
  554. help
  555. Support for TI's DaVinci platform.
  556. config ARCH_OMAP1
  557. bool "TI OMAP1"
  558. depends on MMU
  559. select ARCH_HAS_HOLES_MEMORYMODEL
  560. select ARCH_OMAP
  561. select CLKDEV_LOOKUP
  562. select CLKSRC_MMIO
  563. select GENERIC_CLOCKEVENTS
  564. select GENERIC_IRQ_CHIP
  565. select GENERIC_IRQ_MULTI_HANDLER
  566. select GPIOLIB
  567. select HAVE_IDE
  568. select IRQ_DOMAIN
  569. select NEED_MACH_IO_H if PCCARD
  570. select NEED_MACH_MEMORY_H
  571. select SPARSE_IRQ
  572. help
  573. Support for older TI OMAP1 (omap7xx, omap15xx or omap16xx)
  574. endchoice
  575. menu "Multiple platform selection"
  576. depends on ARCH_MULTIPLATFORM
  577. comment "CPU Core family selection"
  578. config ARCH_MULTI_V4
  579. bool "ARMv4 based platforms (FA526)"
  580. depends on !ARCH_MULTI_V6_V7
  581. select ARCH_MULTI_V4_V5
  582. select CPU_FA526
  583. config ARCH_MULTI_V4T
  584. bool "ARMv4T based platforms (ARM720T, ARM920T, ...)"
  585. depends on !ARCH_MULTI_V6_V7
  586. select ARCH_MULTI_V4_V5
  587. select CPU_ARM920T if !(CPU_ARM7TDMI || CPU_ARM720T || \
  588. CPU_ARM740T || CPU_ARM9TDMI || CPU_ARM922T || \
  589. CPU_ARM925T || CPU_ARM940T)
  590. config ARCH_MULTI_V5
  591. bool "ARMv5 based platforms (ARM926T, XSCALE, PJ1, ...)"
  592. depends on !ARCH_MULTI_V6_V7
  593. select ARCH_MULTI_V4_V5
  594. select CPU_ARM926T if !(CPU_ARM946E || CPU_ARM1020 || \
  595. CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \
  596. CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_FEROCEON)
  597. config ARCH_MULTI_V4_V5
  598. bool
  599. config ARCH_MULTI_V6
  600. bool "ARMv6 based platforms (ARM11)"
  601. select ARCH_MULTI_V6_V7
  602. select CPU_V6K
  603. config ARCH_MULTI_V7
  604. bool "ARMv7 based platforms (Cortex-A, PJ4, Scorpion, Krait)"
  605. default y
  606. select ARCH_MULTI_V6_V7
  607. select CPU_V7
  608. select HAVE_SMP
  609. config ARCH_MULTI_V6_V7
  610. bool
  611. select MIGHT_HAVE_CACHE_L2X0
  612. config ARCH_MULTI_CPU_AUTO
  613. def_bool !(ARCH_MULTI_V4 || ARCH_MULTI_V4T || ARCH_MULTI_V6_V7)
  614. select ARCH_MULTI_V5
  615. endmenu
  616. config ARCH_VIRT
  617. bool "Dummy Virtual Machine"
  618. depends on ARCH_MULTI_V7
  619. select ARM_AMBA
  620. select ARM_GIC
  621. select ARM_GIC_V2M if PCI
  622. select ARM_GIC_V3
  623. select ARM_GIC_V3_ITS if PCI
  624. select ARM_PSCI
  625. select HAVE_ARM_ARCH_TIMER
  626. #
  627. # This is sorted alphabetically by mach-* pathname. However, plat-*
  628. # Kconfigs may be included either alphabetically (according to the
  629. # plat- suffix) or along side the corresponding mach-* source.
  630. #
  631. source "arch/arm/mach-actions/Kconfig"
  632. source "arch/arm/mach-alpine/Kconfig"
  633. source "arch/arm/mach-artpec/Kconfig"
  634. source "arch/arm/mach-asm9260/Kconfig"
  635. source "arch/arm/mach-aspeed/Kconfig"
  636. source "arch/arm/mach-at91/Kconfig"
  637. source "arch/arm/mach-axxia/Kconfig"
  638. source "arch/arm/mach-bcm/Kconfig"
  639. source "arch/arm/mach-berlin/Kconfig"
  640. source "arch/arm/mach-clps711x/Kconfig"
  641. source "arch/arm/mach-cns3xxx/Kconfig"
  642. source "arch/arm/mach-davinci/Kconfig"
  643. source "arch/arm/mach-digicolor/Kconfig"
  644. source "arch/arm/mach-dove/Kconfig"
  645. source "arch/arm/mach-ep93xx/Kconfig"
  646. source "arch/arm/mach-exynos/Kconfig"
  647. source "arch/arm/plat-samsung/Kconfig"
  648. source "arch/arm/mach-footbridge/Kconfig"
  649. source "arch/arm/mach-gemini/Kconfig"
  650. source "arch/arm/mach-highbank/Kconfig"
  651. source "arch/arm/mach-hisi/Kconfig"
  652. source "arch/arm/mach-imx/Kconfig"
  653. source "arch/arm/mach-integrator/Kconfig"
  654. source "arch/arm/mach-iop13xx/Kconfig"
  655. source "arch/arm/mach-iop32x/Kconfig"
  656. source "arch/arm/mach-iop33x/Kconfig"
  657. source "arch/arm/mach-ixp4xx/Kconfig"
  658. source "arch/arm/mach-keystone/Kconfig"
  659. source "arch/arm/mach-ks8695/Kconfig"
  660. source "arch/arm/mach-mediatek/Kconfig"
  661. source "arch/arm/mach-meson/Kconfig"
  662. source "arch/arm/mach-mmp/Kconfig"
  663. source "arch/arm/mach-moxart/Kconfig"
  664. source "arch/arm/mach-mv78xx0/Kconfig"
  665. source "arch/arm/mach-mvebu/Kconfig"
  666. source "arch/arm/mach-mxs/Kconfig"
  667. source "arch/arm/mach-netx/Kconfig"
  668. source "arch/arm/mach-nomadik/Kconfig"
  669. source "arch/arm/mach-npcm/Kconfig"
  670. source "arch/arm/mach-nspire/Kconfig"
  671. source "arch/arm/plat-omap/Kconfig"
  672. source "arch/arm/mach-omap1/Kconfig"
  673. source "arch/arm/mach-omap2/Kconfig"
  674. source "arch/arm/mach-orion5x/Kconfig"
  675. source "arch/arm/mach-oxnas/Kconfig"
  676. source "arch/arm/mach-picoxcell/Kconfig"
  677. source "arch/arm/mach-prima2/Kconfig"
  678. source "arch/arm/mach-pxa/Kconfig"
  679. source "arch/arm/plat-pxa/Kconfig"
  680. source "arch/arm/mach-qcom/Kconfig"
  681. source "arch/arm/mach-realview/Kconfig"
  682. source "arch/arm/mach-rockchip/Kconfig"
  683. source "arch/arm/mach-s3c24xx/Kconfig"
  684. source "arch/arm/mach-s3c64xx/Kconfig"
  685. source "arch/arm/mach-s5pv210/Kconfig"
  686. source "arch/arm/mach-sa1100/Kconfig"
  687. source "arch/arm/mach-shmobile/Kconfig"
  688. source "arch/arm/mach-socfpga/Kconfig"
  689. source "arch/arm/mach-spear/Kconfig"
  690. source "arch/arm/mach-sti/Kconfig"
  691. source "arch/arm/mach-stm32/Kconfig"
  692. source "arch/arm/mach-sunxi/Kconfig"
  693. source "arch/arm/mach-tango/Kconfig"
  694. source "arch/arm/mach-tegra/Kconfig"
  695. source "arch/arm/mach-u300/Kconfig"
  696. source "arch/arm/mach-uniphier/Kconfig"
  697. source "arch/arm/mach-ux500/Kconfig"
  698. source "arch/arm/mach-versatile/Kconfig"
  699. source "arch/arm/mach-vexpress/Kconfig"
  700. source "arch/arm/plat-versatile/Kconfig"
  701. source "arch/arm/mach-vt8500/Kconfig"
  702. source "arch/arm/mach-w90x900/Kconfig"
  703. source "arch/arm/mach-zx/Kconfig"
  704. source "arch/arm/mach-zynq/Kconfig"
  705. source "arch/arm/mach-arkmicro/Kconfig"
  706. # ARMv7-M architecture
  707. config ARCH_EFM32
  708. bool "Energy Micro efm32"
  709. depends on ARM_SINGLE_ARMV7M
  710. select GPIOLIB
  711. help
  712. Support for Energy Micro's (now Silicon Labs) efm32 Giant Gecko
  713. processors.
  714. config ARCH_LPC18XX
  715. bool "NXP LPC18xx/LPC43xx"
  716. depends on ARM_SINGLE_ARMV7M
  717. select ARCH_HAS_RESET_CONTROLLER
  718. select ARM_AMBA
  719. select CLKSRC_LPC32XX
  720. select PINCTRL
  721. help
  722. Support for NXP's LPC18xx Cortex-M3 and LPC43xx Cortex-M4
  723. high performance microcontrollers.
  724. config ARCH_MPS2
  725. bool "ARM MPS2 platform"
  726. depends on ARM_SINGLE_ARMV7M
  727. select ARM_AMBA
  728. select CLKSRC_MPS2
  729. help
  730. Support for Cortex-M Prototyping System (or V2M-MPS2) which comes
  731. with a range of available cores like Cortex-M3/M4/M7.
  732. Please, note that depends which Application Note is used memory map
  733. for the platform may vary, so adjustment of RAM base might be needed.
  734. # Definitions to make life easier
  735. config ARCH_ACORN
  736. bool
  737. config PLAT_IOP
  738. bool
  739. select GENERIC_CLOCKEVENTS
  740. config PLAT_ORION
  741. bool
  742. select CLKSRC_MMIO
  743. select COMMON_CLK
  744. select GENERIC_IRQ_CHIP
  745. select IRQ_DOMAIN
  746. config PLAT_ORION_LEGACY
  747. bool
  748. select PLAT_ORION
  749. config PLAT_PXA
  750. bool
  751. config PLAT_VERSATILE
  752. bool
  753. source "arch/arm/firmware/Kconfig"
  754. source arch/arm/mm/Kconfig
  755. config IWMMXT
  756. bool "Enable iWMMXt support"
  757. depends on CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_PJ4 || CPU_PJ4B
  758. default y if PXA27x || PXA3xx || ARCH_MMP || CPU_PJ4 || CPU_PJ4B
  759. help
  760. Enable support for iWMMXt context switching at run time if
  761. running on a CPU that supports it.
  762. if !MMU
  763. source "arch/arm/Kconfig-nommu"
  764. endif
  765. config PJ4B_ERRATA_4742
  766. bool "PJ4B Errata 4742: IDLE Wake Up Commands can Cause the CPU Core to Cease Operation"
  767. depends on CPU_PJ4B && MACH_ARMADA_370
  768. default y
  769. help
  770. When coming out of either a Wait for Interrupt (WFI) or a Wait for
  771. Event (WFE) IDLE states, a specific timing sensitivity exists between
  772. the retiring WFI/WFE instructions and the newly issued subsequent
  773. instructions. This sensitivity can result in a CPU hang scenario.
  774. Workaround:
  775. The software must insert either a Data Synchronization Barrier (DSB)
  776. or Data Memory Barrier (DMB) command immediately after the WFI/WFE
  777. instruction
  778. config ARM_ERRATA_326103
  779. bool "ARM errata: FSR write bit incorrect on a SWP to read-only memory"
  780. depends on CPU_V6
  781. help
  782. Executing a SWP instruction to read-only memory does not set bit 11
  783. of the FSR on the ARM 1136 prior to r1p0. This causes the kernel to
  784. treat the access as a read, preventing a COW from occurring and
  785. causing the faulting task to livelock.
  786. config ARM_ERRATA_411920
  787. bool "ARM errata: Invalidation of the Instruction Cache operation can fail"
  788. depends on CPU_V6 || CPU_V6K
  789. help
  790. Invalidation of the Instruction Cache operation can
  791. fail. This erratum is present in 1136 (before r1p4), 1156 and 1176.
  792. It does not affect the MPCore. This option enables the ARM Ltd.
  793. recommended workaround.
  794. config ARM_ERRATA_430973
  795. bool "ARM errata: Stale prediction on replaced interworking branch"
  796. depends on CPU_V7
  797. help
  798. This option enables the workaround for the 430973 Cortex-A8
  799. r1p* erratum. If a code sequence containing an ARM/Thumb
  800. interworking branch is replaced with another code sequence at the
  801. same virtual address, whether due to self-modifying code or virtual
  802. to physical address re-mapping, Cortex-A8 does not recover from the
  803. stale interworking branch prediction. This results in Cortex-A8
  804. executing the new code sequence in the incorrect ARM or Thumb state.
  805. The workaround enables the BTB/BTAC operations by setting ACTLR.IBE
  806. and also flushes the branch target cache at every context switch.
  807. Note that setting specific bits in the ACTLR register may not be
  808. available in non-secure mode.
  809. config ARM_ERRATA_458693
  810. bool "ARM errata: Processor deadlock when a false hazard is created"
  811. depends on CPU_V7
  812. depends on !ARCH_MULTIPLATFORM
  813. help
  814. This option enables the workaround for the 458693 Cortex-A8 (r2p0)
  815. erratum. For very specific sequences of memory operations, it is
  816. possible for a hazard condition intended for a cache line to instead
  817. be incorrectly associated with a different cache line. This false
  818. hazard might then cause a processor deadlock. The workaround enables
  819. the L1 caching of the NEON accesses and disables the PLD instruction
  820. in the ACTLR register. Note that setting specific bits in the ACTLR
  821. register may not be available in non-secure mode.
  822. config ARM_ERRATA_460075
  823. bool "ARM errata: Data written to the L2 cache can be overwritten with stale data"
  824. depends on CPU_V7
  825. depends on !ARCH_MULTIPLATFORM
  826. help
  827. This option enables the workaround for the 460075 Cortex-A8 (r2p0)
  828. erratum. Any asynchronous access to the L2 cache may encounter a
  829. situation in which recent store transactions to the L2 cache are lost
  830. and overwritten with stale memory contents from external memory. The
  831. workaround disables the write-allocate mode for the L2 cache via the
  832. ACTLR register. Note that setting specific bits in the ACTLR register
  833. may not be available in non-secure mode.
  834. config ARM_ERRATA_742230
  835. bool "ARM errata: DMB operation may be faulty"
  836. depends on CPU_V7 && SMP
  837. depends on !ARCH_MULTIPLATFORM
  838. help
  839. This option enables the workaround for the 742230 Cortex-A9
  840. (r1p0..r2p2) erratum. Under rare circumstances, a DMB instruction
  841. between two write operations may not ensure the correct visibility
  842. ordering of the two writes. This workaround sets a specific bit in
  843. the diagnostic register of the Cortex-A9 which causes the DMB
  844. instruction to behave as a DSB, ensuring the correct behaviour of
  845. the two writes.
  846. config ARM_ERRATA_742231
  847. bool "ARM errata: Incorrect hazard handling in the SCU may lead to data corruption"
  848. depends on CPU_V7 && SMP
  849. depends on !ARCH_MULTIPLATFORM
  850. help
  851. This option enables the workaround for the 742231 Cortex-A9
  852. (r2p0..r2p2) erratum. Under certain conditions, specific to the
  853. Cortex-A9 MPCore micro-architecture, two CPUs working in SMP mode,
  854. accessing some data located in the same cache line, may get corrupted
  855. data due to bad handling of the address hazard when the line gets
  856. replaced from one of the CPUs at the same time as another CPU is
  857. accessing it. This workaround sets specific bits in the diagnostic
  858. register of the Cortex-A9 which reduces the linefill issuing
  859. capabilities of the processor.
  860. config ARM_ERRATA_643719
  861. bool "ARM errata: LoUIS bit field in CLIDR register is incorrect"
  862. depends on CPU_V7 && SMP
  863. default y
  864. help
  865. This option enables the workaround for the 643719 Cortex-A9 (prior to
  866. r1p0) erratum. On affected cores the LoUIS bit field of the CLIDR
  867. register returns zero when it should return one. The workaround
  868. corrects this value, ensuring cache maintenance operations which use
  869. it behave as intended and avoiding data corruption.
  870. config ARM_ERRATA_720789
  871. bool "ARM errata: TLBIASIDIS and TLBIMVAIS operations can broadcast a faulty ASID"
  872. depends on CPU_V7
  873. help
  874. This option enables the workaround for the 720789 Cortex-A9 (prior to
  875. r2p0) erratum. A faulty ASID can be sent to the other CPUs for the
  876. broadcasted CP15 TLB maintenance operations TLBIASIDIS and TLBIMVAIS.
  877. As a consequence of this erratum, some TLB entries which should be
  878. invalidated are not, resulting in an incoherency in the system page
  879. tables. The workaround changes the TLB flushing routines to invalidate
  880. entries regardless of the ASID.
  881. config ARM_ERRATA_743622
  882. bool "ARM errata: Faulty hazard checking in the Store Buffer may lead to data corruption"
  883. depends on CPU_V7
  884. depends on !ARCH_MULTIPLATFORM
  885. help
  886. This option enables the workaround for the 743622 Cortex-A9
  887. (r2p*) erratum. Under very rare conditions, a faulty
  888. optimisation in the Cortex-A9 Store Buffer may lead to data
  889. corruption. This workaround sets a specific bit in the diagnostic
  890. register of the Cortex-A9 which disables the Store Buffer
  891. optimisation, preventing the defect from occurring. This has no
  892. visible impact on the overall performance or power consumption of the
  893. processor.
  894. config ARM_ERRATA_751472
  895. bool "ARM errata: Interrupted ICIALLUIS may prevent completion of broadcasted operation"
  896. depends on CPU_V7
  897. depends on !ARCH_MULTIPLATFORM
  898. help
  899. This option enables the workaround for the 751472 Cortex-A9 (prior
  900. to r3p0) erratum. An interrupted ICIALLUIS operation may prevent the
  901. completion of a following broadcasted operation if the second
  902. operation is received by a CPU before the ICIALLUIS has completed,
  903. potentially leading to corrupted entries in the cache or TLB.
  904. config ARM_ERRATA_754322
  905. bool "ARM errata: possible faulty MMU translations following an ASID switch"
  906. depends on CPU_V7
  907. help
  908. This option enables the workaround for the 754322 Cortex-A9 (r2p*,
  909. r3p*) erratum. A speculative memory access may cause a page table walk
  910. which starts prior to an ASID switch but completes afterwards. This
  911. can populate the micro-TLB with a stale entry which may be hit with
  912. the new ASID. This workaround places two dsb instructions in the mm
  913. switching code so that no page table walks can cross the ASID switch.
  914. config ARM_ERRATA_754327
  915. bool "ARM errata: no automatic Store Buffer drain"
  916. depends on CPU_V7 && SMP
  917. help
  918. This option enables the workaround for the 754327 Cortex-A9 (prior to
  919. r2p0) erratum. The Store Buffer does not have any automatic draining
  920. mechanism and therefore a livelock may occur if an external agent
  921. continuously polls a memory location waiting to observe an update.
  922. This workaround defines cpu_relax() as smp_mb(), preventing correctly
  923. written polling loops from denying visibility of updates to memory.
  924. config ARM_ERRATA_364296
  925. bool "ARM errata: Possible cache data corruption with hit-under-miss enabled"
  926. depends on CPU_V6
  927. help
  928. This options enables the workaround for the 364296 ARM1136
  929. r0p2 erratum (possible cache data corruption with
  930. hit-under-miss enabled). It sets the undocumented bit 31 in
  931. the auxiliary control register and the FI bit in the control
  932. register, thus disabling hit-under-miss without putting the
  933. processor into full low interrupt latency mode. ARM11MPCore
  934. is not affected.
  935. config ARM_ERRATA_764369
  936. bool "ARM errata: Data cache line maintenance operation by MVA may not succeed"
  937. depends on CPU_V7 && SMP
  938. help
  939. This option enables the workaround for erratum 764369
  940. affecting Cortex-A9 MPCore with two or more processors (all
  941. current revisions). Under certain timing circumstances, a data
  942. cache line maintenance operation by MVA targeting an Inner
  943. Shareable memory region may fail to proceed up to either the
  944. Point of Coherency or to the Point of Unification of the
  945. system. This workaround adds a DSB instruction before the
  946. relevant cache maintenance functions and sets a specific bit
  947. in the diagnostic control register of the SCU.
  948. config ARM_ERRATA_775420
  949. bool "ARM errata: A data cache maintenance operation which aborts, might lead to deadlock"
  950. depends on CPU_V7
  951. help
  952. This option enables the workaround for the 775420 Cortex-A9 (r2p2,
  953. r2p6,r2p8,r2p10,r3p0) erratum. In case a date cache maintenance
  954. operation aborts with MMU exception, it might cause the processor
  955. to deadlock. This workaround puts DSB before executing ISB if
  956. an abort may occur on cache maintenance.
  957. config ARM_ERRATA_798181
  958. bool "ARM errata: TLBI/DSB failure on Cortex-A15"
  959. depends on CPU_V7 && SMP
  960. help
  961. On Cortex-A15 (r0p0..r3p2) the TLBI*IS/DSB operations are not
  962. adequately shooting down all use of the old entries. This
  963. option enables the Linux kernel workaround for this erratum
  964. which sends an IPI to the CPUs that are running the same ASID
  965. as the one being invalidated.
  966. config ARM_ERRATA_773022
  967. bool "ARM errata: incorrect instructions may be executed from loop buffer"
  968. depends on CPU_V7
  969. help
  970. This option enables the workaround for the 773022 Cortex-A15
  971. (up to r0p4) erratum. In certain rare sequences of code, the
  972. loop buffer may deliver incorrect instructions. This
  973. workaround disables the loop buffer to avoid the erratum.
  974. config ARM_ERRATA_818325_852422
  975. bool "ARM errata: A12: some seqs of opposed cond code instrs => deadlock or corruption"
  976. depends on CPU_V7
  977. help
  978. This option enables the workaround for:
  979. - Cortex-A12 818325: Execution of an UNPREDICTABLE STR or STM
  980. instruction might deadlock. Fixed in r0p1.
  981. - Cortex-A12 852422: Execution of a sequence of instructions might
  982. lead to either a data corruption or a CPU deadlock. Not fixed in
  983. any Cortex-A12 cores yet.
  984. This workaround for all both errata involves setting bit[12] of the
  985. Feature Register. This bit disables an optimisation applied to a
  986. sequence of 2 instructions that use opposing condition codes.
  987. config ARM_ERRATA_821420
  988. bool "ARM errata: A12: sequence of VMOV to core registers might lead to a dead lock"
  989. depends on CPU_V7
  990. help
  991. This option enables the workaround for the 821420 Cortex-A12
  992. (all revs) erratum. In very rare timing conditions, a sequence
  993. of VMOV to Core registers instructions, for which the second
  994. one is in the shadow of a branch or abort, can lead to a
  995. deadlock when the VMOV instructions are issued out-of-order.
  996. config ARM_ERRATA_825619
  997. bool "ARM errata: A12: DMB NSHST/ISHST mixed ... might cause deadlock"
  998. depends on CPU_V7
  999. help
  1000. This option enables the workaround for the 825619 Cortex-A12
  1001. (all revs) erratum. Within rare timing constraints, executing a
  1002. DMB NSHST or DMB ISHST instruction followed by a mix of Cacheable
  1003. and Device/Strongly-Ordered loads and stores might cause deadlock
  1004. config ARM_ERRATA_852421
  1005. bool "ARM errata: A17: DMB ST might fail to create order between stores"
  1006. depends on CPU_V7
  1007. help
  1008. This option enables the workaround for the 852421 Cortex-A17
  1009. (r1p0, r1p1, r1p2) erratum. Under very rare timing conditions,
  1010. execution of a DMB ST instruction might fail to properly order
  1011. stores from GroupA and stores from GroupB.
  1012. config ARM_ERRATA_852423
  1013. bool "ARM errata: A17: some seqs of opposed cond code instrs => deadlock or corruption"
  1014. depends on CPU_V7
  1015. help
  1016. This option enables the workaround for:
  1017. - Cortex-A17 852423: Execution of a sequence of instructions might
  1018. lead to either a data corruption or a CPU deadlock. Not fixed in
  1019. any Cortex-A17 cores yet.
  1020. This is identical to Cortex-A12 erratum 852422. It is a separate
  1021. config option from the A12 erratum due to the way errata are checked
  1022. for and handled.
  1023. endmenu
  1024. source "arch/arm/common/Kconfig"
  1025. menu "Bus support"
  1026. config ISA
  1027. bool
  1028. help
  1029. Find out whether you have ISA slots on your motherboard. ISA is the
  1030. name of a bus system, i.e. the way the CPU talks to the other stuff
  1031. inside your box. Other bus systems are PCI, EISA, MicroChannel
  1032. (MCA) or VESA. ISA is an older system, now being displaced by PCI;
  1033. newer boards don't support it. If you have ISA, say Y, otherwise N.
  1034. # Select ISA DMA controller support
  1035. config ISA_DMA
  1036. bool
  1037. select ISA_DMA_API
  1038. # Select ISA DMA interface
  1039. config ISA_DMA_API
  1040. bool
  1041. config PCI
  1042. bool "PCI support" if MIGHT_HAVE_PCI
  1043. help
  1044. Find out whether you have a PCI motherboard. PCI is the name of a
  1045. bus system, i.e. the way the CPU talks to the other stuff inside
  1046. your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
  1047. VESA. If you have PCI, say Y, otherwise N.
  1048. config PCI_DOMAINS
  1049. bool "Support for multiple PCI domains"
  1050. depends on PCI
  1051. help
  1052. Enable PCI domains kernel management. Say Y if your machine
  1053. has a PCI bus hierarchy that requires more than one PCI
  1054. domain (aka segment) to be correctly managed. Say N otherwise.
  1055. If you don't know what to do here, say N.
  1056. config PCI_DOMAINS_GENERIC
  1057. def_bool PCI_DOMAINS
  1058. config PCI_NANOENGINE
  1059. bool "BSE nanoEngine PCI support"
  1060. depends on SA1100_NANOENGINE
  1061. help
  1062. Enable PCI on the BSE nanoEngine board.
  1063. config PCI_SYSCALL
  1064. def_bool PCI
  1065. config PCI_HOST_ITE8152
  1066. bool
  1067. depends on PCI && MACH_ARMCORE
  1068. default y
  1069. select DMABOUNCE
  1070. source "drivers/pci/Kconfig"
  1071. source "drivers/pcmcia/Kconfig"
  1072. endmenu
  1073. menu "Kernel Features"
  1074. config HAVE_SMP
  1075. bool
  1076. help
  1077. This option should be selected by machines which have an SMP-
  1078. capable CPU.
  1079. The only effect of this option is to make the SMP-related
  1080. options available to the user for configuration.
  1081. config SMP
  1082. bool "Symmetric Multi-Processing"
  1083. depends on CPU_V6K || CPU_V7
  1084. depends on GENERIC_CLOCKEVENTS
  1085. depends on HAVE_SMP
  1086. depends on MMU || ARM_MPU
  1087. select IRQ_WORK
  1088. help
  1089. This enables support for systems with more than one CPU. If you have
  1090. a system with only one CPU, say N. If you have a system with more
  1091. than one CPU, say Y.
  1092. If you say N here, the kernel will run on uni- and multiprocessor
  1093. machines, but will use only one CPU of a multiprocessor machine. If
  1094. you say Y here, the kernel will run on many, but not all,
  1095. uniprocessor machines. On a uniprocessor machine, the kernel
  1096. will run faster if you say N here.
  1097. See also <file:Documentation/x86/i386/IO-APIC.txt>,
  1098. <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
  1099. <http://tldp.org/HOWTO/SMP-HOWTO.html>.
  1100. If you don't know what to do here, say N.
  1101. config SMP_ON_UP
  1102. bool "Allow booting SMP kernel on uniprocessor systems"
  1103. depends on SMP && !XIP_KERNEL && MMU
  1104. default y
  1105. help
  1106. SMP kernels contain instructions which fail on non-SMP processors.
  1107. Enabling this option allows the kernel to modify itself to make
  1108. these instructions safe. Disabling it allows about 1K of space
  1109. savings.
  1110. If you don't know what to do here, say Y.
  1111. config ARM_CPU_TOPOLOGY
  1112. bool "Support cpu topology definition"
  1113. depends on SMP && CPU_V7
  1114. default y
  1115. help
  1116. Support ARM cpu topology definition. The MPIDR register defines
  1117. affinity between processors which is then used to describe the cpu
  1118. topology of an ARM System.
  1119. config SCHED_MC
  1120. bool "Multi-core scheduler support"
  1121. depends on ARM_CPU_TOPOLOGY
  1122. help
  1123. Multi-core scheduler support improves the CPU scheduler's decision
  1124. making when dealing with multi-core CPU chips at a cost of slightly
  1125. increased overhead in some places. If unsure say N here.
  1126. config SCHED_SMT
  1127. bool "SMT scheduler support"
  1128. depends on ARM_CPU_TOPOLOGY
  1129. help
  1130. Improves the CPU scheduler's decision making when dealing with
  1131. MultiThreading at a cost of slightly increased overhead in some
  1132. places. If unsure say N here.
  1133. config HAVE_ARM_SCU
  1134. bool
  1135. help
  1136. This option enables support for the ARM system coherency unit
  1137. config HAVE_ARM_ARCH_TIMER
  1138. bool "Architected timer support"
  1139. depends on CPU_V7
  1140. select ARM_ARCH_TIMER
  1141. select GENERIC_CLOCKEVENTS
  1142. help
  1143. This option enables support for the ARM architected timer
  1144. config HAVE_ARM_TWD
  1145. bool
  1146. select TIMER_OF if OF
  1147. help
  1148. This options enables support for the ARM timer and watchdog unit
  1149. config MCPM
  1150. bool "Multi-Cluster Power Management"
  1151. depends on CPU_V7 && SMP
  1152. help
  1153. This option provides the common power management infrastructure
  1154. for (multi-)cluster based systems, such as big.LITTLE based
  1155. systems.
  1156. config MCPM_QUAD_CLUSTER
  1157. bool
  1158. depends on MCPM
  1159. help
  1160. To avoid wasting resources unnecessarily, MCPM only supports up
  1161. to 2 clusters by default.
  1162. Platforms with 3 or 4 clusters that use MCPM must select this
  1163. option to allow the additional clusters to be managed.
  1164. config BIG_LITTLE
  1165. bool "big.LITTLE support (Experimental)"
  1166. depends on CPU_V7 && SMP
  1167. select MCPM
  1168. help
  1169. This option enables support selections for the big.LITTLE
  1170. system architecture.
  1171. config BL_SWITCHER
  1172. bool "big.LITTLE switcher support"
  1173. depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC
  1174. select CPU_PM
  1175. help
  1176. The big.LITTLE "switcher" provides the core functionality to
  1177. transparently handle transition between a cluster of A15's
  1178. and a cluster of A7's in a big.LITTLE system.
  1179. config BL_SWITCHER_DUMMY_IF
  1180. tristate "Simple big.LITTLE switcher user interface"
  1181. depends on BL_SWITCHER && DEBUG_KERNEL
  1182. help
  1183. This is a simple and dummy char dev interface to control
  1184. the big.LITTLE switcher core code. It is meant for
  1185. debugging purposes only.
  1186. choice
  1187. prompt "Memory split"
  1188. depends on MMU
  1189. default VMSPLIT_3G
  1190. help
  1191. Select the desired split between kernel and user memory.
  1192. If you are not absolutely sure what you are doing, leave this
  1193. option alone!
  1194. config VMSPLIT_3G
  1195. bool "3G/1G user/kernel split"
  1196. config VMSPLIT_3G_OPT
  1197. depends on !ARM_LPAE
  1198. bool "3G/1G user/kernel split (for full 1G low memory)"
  1199. config VMSPLIT_2G
  1200. bool "2G/2G user/kernel split"
  1201. config VMSPLIT_1G
  1202. bool "1G/3G user/kernel split"
  1203. endchoice
  1204. config PAGE_OFFSET
  1205. hex
  1206. default PHYS_OFFSET if !MMU
  1207. default 0x40000000 if VMSPLIT_1G
  1208. default 0x80000000 if VMSPLIT_2G
  1209. default 0xB0000000 if VMSPLIT_3G_OPT
  1210. default 0xC0000000
  1211. config NR_CPUS
  1212. int "Maximum number of CPUs (2-32)"
  1213. range 2 32
  1214. depends on SMP
  1215. default "4"
  1216. config HOTPLUG_CPU
  1217. bool "Support for hot-pluggable CPUs"
  1218. depends on SMP
  1219. select GENERIC_IRQ_MIGRATION
  1220. help
  1221. Say Y here to experiment with turning CPUs off and on. CPUs
  1222. can be controlled through /sys/devices/system/cpu.
  1223. config ARM_PSCI
  1224. bool "Support for the ARM Power State Coordination Interface (PSCI)"
  1225. depends on HAVE_ARM_SMCCC
  1226. select ARM_PSCI_FW
  1227. help
  1228. Say Y here if you want Linux to communicate with system firmware
  1229. implementing the PSCI specification for CPU-centric power
  1230. management operations described in ARM document number ARM DEN
  1231. 0022A ("Power State Coordination Interface System Software on
  1232. ARM processors").
  1233. # The GPIO number here must be sorted by descending number. In case of
  1234. # a multiplatform kernel, we just want the highest value required by the
  1235. # selected platforms.
  1236. config ARCH_NR_GPIO
  1237. int
  1238. default 2048 if ARCH_SOCFPGA
  1239. default 1024 if ARCH_BRCMSTB || ARCH_RENESAS || ARCH_TEGRA || \
  1240. ARCH_ZYNQ
  1241. default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5 || \
  1242. SOC_DRA7XX || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
  1243. default 416 if ARCH_SUNXI
  1244. default 392 if ARCH_U8500
  1245. default 352 if ARCH_VT8500
  1246. default 288 if ARCH_ROCKCHIP
  1247. default 264 if MACH_H4700
  1248. default 0
  1249. help
  1250. Maximum number of GPIOs in the system.
  1251. If unsure, leave the default value.
  1252. config HZ_FIXED
  1253. int
  1254. default 200 if ARCH_EBSA110
  1255. default 128 if SOC_AT91RM9200
  1256. default 0
  1257. choice
  1258. depends on HZ_FIXED = 0
  1259. prompt "Timer frequency"
  1260. config HZ_100
  1261. bool "100 Hz"
  1262. config HZ_200
  1263. bool "200 Hz"
  1264. config HZ_250
  1265. bool "250 Hz"
  1266. config HZ_300
  1267. bool "300 Hz"
  1268. config HZ_500
  1269. bool "500 Hz"
  1270. config HZ_1000
  1271. bool "1000 Hz"
  1272. endchoice
  1273. config HZ
  1274. int
  1275. default HZ_FIXED if HZ_FIXED != 0
  1276. default 100 if HZ_100
  1277. default 200 if HZ_200
  1278. default 250 if HZ_250
  1279. default 300 if HZ_300
  1280. default 500 if HZ_500
  1281. default 1000
  1282. config SCHED_HRTICK
  1283. def_bool HIGH_RES_TIMERS
  1284. config THUMB2_KERNEL
  1285. bool "Compile the kernel in Thumb-2 mode" if !CPU_THUMBONLY
  1286. depends on (CPU_V7 || CPU_V7M) && !CPU_V6 && !CPU_V6K
  1287. default y if CPU_THUMBONLY
  1288. select ARM_UNWIND
  1289. help
  1290. By enabling this option, the kernel will be compiled in
  1291. Thumb-2 mode.
  1292. If unsure, say N.
  1293. config THUMB2_AVOID_R_ARM_THM_JUMP11
  1294. bool "Work around buggy Thumb-2 short branch relocations in gas"
  1295. depends on THUMB2_KERNEL && MODULES
  1296. default y
  1297. help
  1298. Various binutils versions can resolve Thumb-2 branches to
  1299. locally-defined, preemptible global symbols as short-range "b.n"
  1300. branch instructions.
  1301. This is a problem, because there's no guarantee the final
  1302. destination of the symbol, or any candidate locations for a
  1303. trampoline, are within range of the branch. For this reason, the
  1304. kernel does not support fixing up the R_ARM_THM_JUMP11 (102)
  1305. relocation in modules at all, and it makes little sense to add
  1306. support.
  1307. The symptom is that the kernel fails with an "unsupported
  1308. relocation" error when loading some modules.
  1309. Until fixed tools are available, passing
  1310. -fno-optimize-sibling-calls to gcc should prevent gcc generating
  1311. code which hits this problem, at the cost of a bit of extra runtime
  1312. stack usage in some cases.
  1313. The problem is described in more detail at:
  1314. https://bugs.launchpad.net/binutils-linaro/+bug/725126
  1315. Only Thumb-2 kernels are affected.
  1316. Unless you are sure your tools don't have this problem, say Y.
  1317. config ARM_PATCH_IDIV
  1318. bool "Runtime patch udiv/sdiv instructions into __aeabi_{u}idiv()"
  1319. depends on CPU_32v7 && !XIP_KERNEL
  1320. default y
  1321. help
  1322. The ARM compiler inserts calls to __aeabi_idiv() and
  1323. __aeabi_uidiv() when it needs to perform division on signed
  1324. and unsigned integers. Some v7 CPUs have support for the sdiv
  1325. and udiv instructions that can be used to implement those
  1326. functions.
  1327. Enabling this option allows the kernel to modify itself to
  1328. replace the first two instructions of these library functions
  1329. with the sdiv or udiv plus "bx lr" instructions when the CPU
  1330. it is running on supports them. Typically this will be faster
  1331. and less power intensive than running the original library
  1332. code to do integer division.
  1333. config AEABI
  1334. bool "Use the ARM EABI to compile the kernel" if !CPU_V7 && \
  1335. !CPU_V7M && !CPU_V6 && !CPU_V6K && !CC_IS_CLANG
  1336. default CPU_V7 || CPU_V7M || CPU_V6 || CPU_V6K || CC_IS_CLANG
  1337. help
  1338. This option allows for the kernel to be compiled using the latest
  1339. ARM ABI (aka EABI). This is only useful if you are using a user
  1340. space environment that is also compiled with EABI.
  1341. Since there are major incompatibilities between the legacy ABI and
  1342. EABI, especially with regard to structure member alignment, this
  1343. option also changes the kernel syscall calling convention to
  1344. disambiguate both ABIs and allow for backward compatibility support
  1345. (selected with CONFIG_OABI_COMPAT).
  1346. To use this you need GCC version 4.0.0 or later.
  1347. config OABI_COMPAT
  1348. bool "Allow old ABI binaries to run with this kernel (EXPERIMENTAL)"
  1349. depends on AEABI && !THUMB2_KERNEL
  1350. help
  1351. This option preserves the old syscall interface along with the
  1352. new (ARM EABI) one. It also provides a compatibility layer to
  1353. intercept syscalls that have structure arguments which layout
  1354. in memory differs between the legacy ABI and the new ARM EABI
  1355. (only for non "thumb" binaries). This option adds a tiny
  1356. overhead to all syscalls and produces a slightly larger kernel.
  1357. The seccomp filter system will not be available when this is
  1358. selected, since there is no way yet to sensibly distinguish
  1359. between calling conventions during filtering.
  1360. If you know you'll be using only pure EABI user space then you
  1361. can say N here. If this option is not selected and you attempt
  1362. to execute a legacy ABI binary then the result will be
  1363. UNPREDICTABLE (in fact it can be predicted that it won't work
  1364. at all). If in doubt say N.
  1365. config ARCH_HAS_HOLES_MEMORYMODEL
  1366. bool
  1367. config ARCH_SPARSEMEM_ENABLE
  1368. bool
  1369. config ARCH_SPARSEMEM_DEFAULT
  1370. def_bool ARCH_SPARSEMEM_ENABLE
  1371. config ARCH_SELECT_MEMORY_MODEL
  1372. def_bool ARCH_SPARSEMEM_ENABLE
  1373. config HAVE_ARCH_PFN_VALID
  1374. def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
  1375. config HAVE_GENERIC_GUP
  1376. def_bool y
  1377. depends on ARM_LPAE
  1378. config HIGHMEM
  1379. bool "High Memory Support"
  1380. depends on MMU
  1381. help
  1382. The address space of ARM processors is only 4 Gigabytes large
  1383. and it has to accommodate user address space, kernel address
  1384. space as well as some memory mapped IO. That means that, if you
  1385. have a large amount of physical memory and/or IO, not all of the
  1386. memory can be "permanently mapped" by the kernel. The physical
  1387. memory that is not permanently mapped is called "high memory".
  1388. Depending on the selected kernel/user memory split, minimum
  1389. vmalloc space and actual amount of RAM, you may not need this
  1390. option which should result in a slightly faster kernel.
  1391. If unsure, say n.
  1392. config HIGHPTE
  1393. bool "Allocate 2nd-level pagetables from highmem" if EXPERT
  1394. depends on HIGHMEM
  1395. default y
  1396. help
  1397. The VM uses one page of physical memory for each page table.
  1398. For systems with a lot of processes, this can use a lot of
  1399. precious low memory, eventually leading to low memory being
  1400. consumed by page tables. Setting this option will allow
  1401. user-space 2nd level page tables to reside in high memory.
  1402. config CPU_SW_DOMAIN_PAN
  1403. bool "Enable use of CPU domains to implement privileged no-access"
  1404. depends on MMU && !ARM_LPAE
  1405. default y
  1406. help
  1407. Increase kernel security by ensuring that normal kernel accesses
  1408. are unable to access userspace addresses. This can help prevent
  1409. use-after-free bugs becoming an exploitable privilege escalation
  1410. by ensuring that magic values (such as LIST_POISON) will always
  1411. fault when dereferenced.
  1412. CPUs with low-vector mappings use a best-efforts implementation.
  1413. Their lower 1MB needs to remain accessible for the vectors, but
  1414. the remainder of userspace will become appropriately inaccessible.
  1415. config HW_PERF_EVENTS
  1416. def_bool y
  1417. depends on ARM_PMU
  1418. config SYS_SUPPORTS_HUGETLBFS
  1419. def_bool y
  1420. depends on ARM_LPAE
  1421. config HAVE_ARCH_TRANSPARENT_HUGEPAGE
  1422. def_bool y
  1423. depends on ARM_LPAE
  1424. config ARCH_WANT_GENERAL_HUGETLB
  1425. def_bool y
  1426. config ARM_MODULE_PLTS
  1427. bool "Use PLTs to allow module memory to spill over into vmalloc area"
  1428. depends on MODULES
  1429. default y
  1430. help
  1431. Allocate PLTs when loading modules so that jumps and calls whose
  1432. targets are too far away for their relative offsets to be encoded
  1433. in the instructions themselves can be bounced via veneers in the
  1434. module's PLT. This allows modules to be allocated in the generic
  1435. vmalloc area after the dedicated module memory area has been
  1436. exhausted. The modules will use slightly more memory, but after
  1437. rounding up to page size, the actual memory footprint is usually
  1438. the same.
  1439. Disabling this is usually safe for small single-platform
  1440. configurations. If unsure, say y.
  1441. config FORCE_MAX_ZONEORDER
  1442. int "Maximum zone order"
  1443. default "12" if SOC_AM33XX
  1444. default "9" if SA1111 || ARCH_EFM32
  1445. default "11"
  1446. help
  1447. The kernel memory allocator divides physically contiguous memory
  1448. blocks into "zones", where each zone is a power of two number of
  1449. pages. This option selects the largest power of two that the kernel
  1450. keeps in the memory allocator. If you need to allocate very large
  1451. blocks of physically contiguous memory, then you may need to
  1452. increase this value.
  1453. This config option is actually maximum order plus one. For example,
  1454. a value of 11 means that the largest free memory block is 2^10 pages.
  1455. config ALIGNMENT_TRAP
  1456. bool
  1457. depends on CPU_CP15_MMU
  1458. default y if !ARCH_EBSA110
  1459. select HAVE_PROC_CPU if PROC_FS
  1460. help
  1461. ARM processors cannot fetch/store information which is not
  1462. naturally aligned on the bus, i.e., a 4 byte fetch must start at an
  1463. address divisible by 4. On 32-bit ARM processors, these non-aligned
  1464. fetch/store instructions will be emulated in software if you say
  1465. here, which has a severe performance impact. This is necessary for
  1466. correct operation of some network protocols. With an IP-only
  1467. configuration it is safe to say N, otherwise say Y.
  1468. config UACCESS_WITH_MEMCPY
  1469. bool "Use kernel mem{cpy,set}() for {copy_to,clear}_user()"
  1470. depends on MMU
  1471. default y if CPU_FEROCEON
  1472. help
  1473. Implement faster copy_to_user and clear_user methods for CPU
  1474. cores where a 8-word STM instruction give significantly higher
  1475. memory write throughput than a sequence of individual 32bit stores.
  1476. A possible side effect is a slight increase in scheduling latency
  1477. between threads sharing the same address space if they invoke
  1478. such copy operations with large buffers.
  1479. However, if the CPU data cache is using a write-allocate mode,
  1480. this option is unlikely to provide any performance gain.
  1481. config SECCOMP
  1482. bool
  1483. prompt "Enable seccomp to safely compute untrusted bytecode"
  1484. ---help---
  1485. This kernel feature is useful for number crunching applications
  1486. that may need to compute untrusted bytecode during their
  1487. execution. By using pipes or other transports made available to
  1488. the process as file descriptors supporting the read/write
  1489. syscalls, it's possible to isolate those applications in
  1490. their own address space using seccomp. Once seccomp is
  1491. enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
  1492. and the task is only allowed to execute a few safe syscalls
  1493. defined by each seccomp mode.
  1494. config PARAVIRT
  1495. bool "Enable paravirtualization code"
  1496. help
  1497. This changes the kernel so it can modify itself when it is run
  1498. under a hypervisor, potentially improving performance significantly
  1499. over full virtualization.
  1500. config PARAVIRT_TIME_ACCOUNTING
  1501. bool "Paravirtual steal time accounting"
  1502. select PARAVIRT
  1503. default n
  1504. help
  1505. Select this option to enable fine granularity task steal time
  1506. accounting. Time spent executing other tasks in parallel with
  1507. the current vCPU is discounted from the vCPU power. To account for
  1508. that, there can be a small performance impact.
  1509. If in doubt, say N here.
  1510. config XEN_DOM0
  1511. def_bool y
  1512. depends on XEN
  1513. config XEN
  1514. bool "Xen guest support on ARM"
  1515. depends on ARM && AEABI && OF
  1516. depends on CPU_V7 && !CPU_V6
  1517. depends on !GENERIC_ATOMIC64
  1518. depends on MMU
  1519. select ARCH_DMA_ADDR_T_64BIT
  1520. select ARM_PSCI
  1521. select SWIOTLB
  1522. select SWIOTLB_XEN
  1523. select PARAVIRT
  1524. help
  1525. Say Y if you want to run Linux in a Virtual Machine on Xen on ARM.
  1526. endmenu
  1527. menu "Boot options"
  1528. config USE_OF
  1529. bool "Flattened Device Tree support"
  1530. select IRQ_DOMAIN
  1531. select OF
  1532. help
  1533. Include support for flattened device tree machine descriptions.
  1534. config ATAGS
  1535. bool "Support for the traditional ATAGS boot data passing" if USE_OF
  1536. default y
  1537. help
  1538. This is the traditional way of passing data to the kernel at boot
  1539. time. If you are solely relying on the flattened device tree (or
  1540. the ARM_ATAG_DTB_COMPAT option) then you may unselect this option
  1541. to remove ATAGS support from your kernel binary. If unsure,
  1542. leave this to y.
  1543. config DEPRECATED_PARAM_STRUCT
  1544. bool "Provide old way to pass kernel parameters"
  1545. depends on ATAGS
  1546. help
  1547. This was deprecated in 2001 and announced to live on for 5 years.
  1548. Some old boot loaders still use this way.
  1549. # Compressed boot loader in ROM. Yes, we really want to ask about
  1550. # TEXT and BSS so we preserve their values in the config files.
  1551. config ZBOOT_ROM_TEXT
  1552. hex "Compressed ROM boot loader base address"
  1553. default "0"
  1554. help
  1555. The physical address at which the ROM-able zImage is to be
  1556. placed in the target. Platforms which normally make use of
  1557. ROM-able zImage formats normally set this to a suitable
  1558. value in their defconfig file.
  1559. If ZBOOT_ROM is not enabled, this has no effect.
  1560. config ZBOOT_ROM_BSS
  1561. hex "Compressed ROM boot loader BSS address"
  1562. default "0"
  1563. help
  1564. The base address of an area of read/write memory in the target
  1565. for the ROM-able zImage which must be available while the
  1566. decompressor is running. It must be large enough to hold the
  1567. entire decompressed kernel plus an additional 128 KiB.
  1568. Platforms which normally make use of ROM-able zImage formats
  1569. normally set this to a suitable value in their defconfig file.
  1570. If ZBOOT_ROM is not enabled, this has no effect.
  1571. config ZBOOT_ROM
  1572. bool "Compressed boot loader in ROM/flash"
  1573. depends on ZBOOT_ROM_TEXT != ZBOOT_ROM_BSS
  1574. depends on !ARM_APPENDED_DTB && !XIP_KERNEL && !AUTO_ZRELADDR
  1575. help
  1576. Say Y here if you intend to execute your compressed kernel image
  1577. (zImage) directly from ROM or flash. If unsure, say N.
  1578. config ARM_APPENDED_DTB
  1579. bool "Use appended device tree blob to zImage (EXPERIMENTAL)"
  1580. depends on OF
  1581. help
  1582. With this option, the boot code will look for a device tree binary
  1583. (DTB) appended to zImage
  1584. (e.g. cat zImage <filename>.dtb > zImage_w_dtb).
  1585. This is meant as a backward compatibility convenience for those
  1586. systems with a bootloader that can't be upgraded to accommodate
  1587. the documented boot protocol using a device tree.
  1588. Beware that there is very little in terms of protection against
  1589. this option being confused by leftover garbage in memory that might
  1590. look like a DTB header after a reboot if no actual DTB is appended
  1591. to zImage. Do not leave this option active in a production kernel
  1592. if you don't intend to always append a DTB. Proper passing of the
  1593. location into r2 of a bootloader provided DTB is always preferable
  1594. to this option.
  1595. config ARM_ATAG_DTB_COMPAT
  1596. bool "Supplement the appended DTB with traditional ATAG information"
  1597. depends on ARM_APPENDED_DTB
  1598. help
  1599. Some old bootloaders can't be updated to a DTB capable one, yet
  1600. they provide ATAGs with memory configuration, the ramdisk address,
  1601. the kernel cmdline string, etc. Such information is dynamically
  1602. provided by the bootloader and can't always be stored in a static
  1603. DTB. To allow a device tree enabled kernel to be used with such
  1604. bootloaders, this option allows zImage to extract the information
  1605. from the ATAG list and store it at run time into the appended DTB.
  1606. choice
  1607. prompt "Kernel command line type" if ARM_ATAG_DTB_COMPAT
  1608. default ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
  1609. config ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER
  1610. bool "Use bootloader kernel arguments if available"
  1611. help
  1612. Uses the command-line options passed by the boot loader instead of
  1613. the device tree bootargs property. If the boot loader doesn't provide
  1614. any, the device tree bootargs property will be used.
  1615. config ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND
  1616. bool "Extend with bootloader kernel arguments"
  1617. help
  1618. The command-line arguments provided by the boot loader will be
  1619. appended to the the device tree bootargs property.
  1620. endchoice
  1621. config CMDLINE
  1622. string "Default kernel command string"
  1623. default ""
  1624. help
  1625. On some architectures (EBSA110 and CATS), there is currently no way
  1626. for the boot loader to pass arguments to the kernel. For these
  1627. architectures, you should supply some command-line options at build
  1628. time by entering them here. As a minimum, you should specify the
  1629. memory size and the root device (e.g., mem=64M root=/dev/nfs).
  1630. choice
  1631. prompt "Kernel command line type" if CMDLINE != ""
  1632. default CMDLINE_FROM_BOOTLOADER
  1633. depends on ATAGS
  1634. config CMDLINE_FROM_BOOTLOADER
  1635. bool "Use bootloader kernel arguments if available"
  1636. help
  1637. Uses the command-line options passed by the boot loader. If
  1638. the boot loader doesn't provide any, the default kernel command
  1639. string provided in CMDLINE will be used.
  1640. config CMDLINE_EXTEND
  1641. bool "Extend bootloader kernel arguments"
  1642. help
  1643. The command-line arguments provided by the boot loader will be
  1644. appended to the default kernel command string.
  1645. config CMDLINE_FORCE
  1646. bool "Always use the default kernel command string"
  1647. help
  1648. Always use the default kernel command string, even if the boot
  1649. loader passes other arguments to the kernel.
  1650. This is useful if you cannot or don't want to change the
  1651. command-line options your boot loader passes to the kernel.
  1652. endchoice
  1653. config XIP_KERNEL
  1654. bool "Kernel Execute-In-Place from ROM"
  1655. depends on !ARM_LPAE && !ARCH_MULTIPLATFORM
  1656. help
  1657. Execute-In-Place allows the kernel to run from non-volatile storage
  1658. directly addressable by the CPU, such as NOR flash. This saves RAM
  1659. space since the text section of the kernel is not loaded from flash
  1660. to RAM. Read-write sections, such as the data section and stack,
  1661. are still copied to RAM. The XIP kernel is not compressed since
  1662. it has to run directly from flash, so it will take more space to
  1663. store it. The flash address used to link the kernel object files,
  1664. and for storing it, is configuration dependent. Therefore, if you
  1665. say Y here, you must know the proper physical address where to
  1666. store the kernel image depending on your own flash memory usage.
  1667. Also note that the make target becomes "make xipImage" rather than
  1668. "make zImage" or "make Image". The final kernel binary to put in
  1669. ROM memory will be arch/arm/boot/xipImage.
  1670. If unsure, say N.
  1671. config XIP_PHYS_ADDR
  1672. hex "XIP Kernel Physical Location"
  1673. depends on XIP_KERNEL
  1674. default "0x00080000"
  1675. help
  1676. This is the physical address in your flash memory the kernel will
  1677. be linked for and stored to. This address is dependent on your
  1678. own flash usage.
  1679. config XIP_DEFLATED_DATA
  1680. bool "Store kernel .data section compressed in ROM"
  1681. depends on XIP_KERNEL
  1682. select ZLIB_INFLATE
  1683. help
  1684. Before the kernel is actually executed, its .data section has to be
  1685. copied to RAM from ROM. This option allows for storing that data
  1686. in compressed form and decompressed to RAM rather than merely being
  1687. copied, saving some precious ROM space. A possible drawback is a
  1688. slightly longer boot delay.
  1689. config KEXEC
  1690. bool "Kexec system call (EXPERIMENTAL)"
  1691. depends on (!SMP || PM_SLEEP_SMP)
  1692. depends on MMU
  1693. select KEXEC_CORE
  1694. help
  1695. kexec is a system call that implements the ability to shutdown your
  1696. current kernel, and to start another kernel. It is like a reboot
  1697. but it is independent of the system firmware. And like a reboot
  1698. you can start any kernel with it, not just Linux.
  1699. It is an ongoing process to be certain the hardware in a machine
  1700. is properly shutdown, so do not be surprised if this code does not
  1701. initially work for you.
  1702. config ATAGS_PROC
  1703. bool "Export atags in procfs"
  1704. depends on ATAGS && KEXEC
  1705. default y
  1706. help
  1707. Should the atags used to boot the kernel be exported in an "atags"
  1708. file in procfs. Useful with kexec.
  1709. config CRASH_DUMP
  1710. bool "Build kdump crash kernel (EXPERIMENTAL)"
  1711. help
  1712. Generate crash dump after being started by kexec. This should
  1713. be normally only set in special crash dump kernels which are
  1714. loaded in the main kernel with kexec-tools into a specially
  1715. reserved region and then later executed after a crash by
  1716. kdump/kexec. The crash dump kernel must be compiled to a
  1717. memory address not used by the main kernel
  1718. For more details see Documentation/kdump/kdump.txt
  1719. config AUTO_ZRELADDR
  1720. bool "Auto calculation of the decompressed kernel image address"
  1721. help
  1722. ZRELADDR is the physical address where the decompressed kernel
  1723. image will be placed. If AUTO_ZRELADDR is selected, the address
  1724. will be determined at run-time by masking the current IP with
  1725. 0xf8000000. This assumes the zImage being placed in the first 128MB
  1726. from start of memory.
  1727. config EFI_STUB
  1728. bool
  1729. config EFI
  1730. bool "UEFI runtime support"
  1731. depends on OF && !CPU_BIG_ENDIAN && MMU && AUTO_ZRELADDR && !XIP_KERNEL
  1732. select UCS2_STRING
  1733. select EFI_PARAMS_FROM_FDT
  1734. select EFI_STUB
  1735. select EFI_ARMSTUB
  1736. select EFI_RUNTIME_WRAPPERS
  1737. ---help---
  1738. This option provides support for runtime services provided
  1739. by UEFI firmware (such as non-volatile variables, realtime
  1740. clock, and platform reset). A UEFI stub is also provided to
  1741. allow the kernel to be booted as an EFI application. This
  1742. is only useful for kernels that may run on systems that have
  1743. UEFI firmware.
  1744. config DMI
  1745. bool "Enable support for SMBIOS (DMI) tables"
  1746. depends on EFI
  1747. default y
  1748. help
  1749. This enables SMBIOS/DMI feature for systems.
  1750. This option is only useful on systems that have UEFI firmware.
  1751. However, even with this option, the resultant kernel should
  1752. continue to boot on existing non-UEFI platforms.
  1753. NOTE: This does *NOT* enable or encourage the use of DMI quirks,
  1754. i.e., the the practice of identifying the platform via DMI to
  1755. decide whether certain workarounds for buggy hardware and/or
  1756. firmware need to be enabled. This would require the DMI subsystem
  1757. to be enabled much earlier than we do on ARM, which is non-trivial.
  1758. endmenu
  1759. menu "CPU Power Management"
  1760. source "drivers/cpufreq/Kconfig"
  1761. source "drivers/cpuidle/Kconfig"
  1762. endmenu
  1763. menu "Floating point emulation"
  1764. comment "At least one emulation must be selected"
  1765. config FPE_NWFPE
  1766. bool "NWFPE math emulation"
  1767. depends on (!AEABI || OABI_COMPAT) && !THUMB2_KERNEL
  1768. ---help---
  1769. Say Y to include the NWFPE floating point emulator in the kernel.
  1770. This is necessary to run most binaries. Linux does not currently
  1771. support floating point hardware so you need to say Y here even if
  1772. your machine has an FPA or floating point co-processor podule.
  1773. You may say N here if you are going to load the Acorn FPEmulator
  1774. early in the bootup.
  1775. config FPE_NWFPE_XP
  1776. bool "Support extended precision"
  1777. depends on FPE_NWFPE
  1778. help
  1779. Say Y to include 80-bit support in the kernel floating-point
  1780. emulator. Otherwise, only 32 and 64-bit support is compiled in.
  1781. Note that gcc does not generate 80-bit operations by default,
  1782. so in most cases this option only enlarges the size of the
  1783. floating point emulator without any good reason.
  1784. You almost surely want to say N here.
  1785. config FPE_FASTFPE
  1786. bool "FastFPE math emulation (EXPERIMENTAL)"
  1787. depends on (!AEABI || OABI_COMPAT) && !CPU_32v3
  1788. ---help---
  1789. Say Y here to include the FAST floating point emulator in the kernel.
  1790. This is an experimental much faster emulator which now also has full
  1791. precision for the mantissa. It does not support any exceptions.
  1792. It is very simple, and approximately 3-6 times faster than NWFPE.
  1793. It should be sufficient for most programs. It may be not suitable
  1794. for scientific calculations, but you have to check this for yourself.
  1795. If you do not feel you need a faster FP emulation you should better
  1796. choose NWFPE.
  1797. config VFP
  1798. bool "VFP-format floating point maths"
  1799. depends on CPU_V6 || CPU_V6K || CPU_ARM926T || CPU_V7 || CPU_FEROCEON
  1800. help
  1801. Say Y to include VFP support code in the kernel. This is needed
  1802. if your hardware includes a VFP unit.
  1803. Please see <file:Documentation/arm/VFP/release-notes.txt> for
  1804. release notes and additional status information.
  1805. Say N if your target does not have VFP hardware.
  1806. config VFPv3
  1807. bool
  1808. depends on VFP
  1809. default y if CPU_V7
  1810. config NEON
  1811. bool "Advanced SIMD (NEON) Extension support"
  1812. depends on VFPv3 && CPU_V7
  1813. help
  1814. Say Y to include support code for NEON, the ARMv7 Advanced SIMD
  1815. Extension.
  1816. config KERNEL_MODE_NEON
  1817. bool "Support for NEON in kernel mode"
  1818. depends on NEON && AEABI
  1819. help
  1820. Say Y to include support for NEON in kernel mode.
  1821. endmenu
  1822. menu "Power management options"
  1823. source "kernel/power/Kconfig"
  1824. config ARCH_SUSPEND_POSSIBLE
  1825. depends on CPU_ARM920T || CPU_ARM926T || CPU_FEROCEON || CPU_SA1100 || \
  1826. CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M || CPU_XSC3 || CPU_XSCALE || CPU_MOHAWK
  1827. def_bool y
  1828. config ARM_CPU_SUSPEND
  1829. def_bool PM_SLEEP || BL_SWITCHER || ARM_PSCI_FW
  1830. depends on ARCH_SUSPEND_POSSIBLE
  1831. config ARCH_HIBERNATION_POSSIBLE
  1832. bool
  1833. depends on MMU
  1834. default y if ARCH_SUSPEND_POSSIBLE
  1835. endmenu
  1836. source "drivers/firmware/Kconfig"
  1837. if CRYPTO
  1838. source "arch/arm/crypto/Kconfig"
  1839. endif
  1840. source "arch/arm/kvm/Kconfig"