Kconfig 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094
  1. comment "Processor Type"
  2. # Select CPU types depending on the architecture selected. This selects
  3. # which CPUs we support in the kernel image, and the compiler instruction
  4. # optimiser behaviour.
  5. # ARM7TDMI
  6. config CPU_ARM7TDMI
  7. bool
  8. depends on !MMU
  9. select CPU_32v4T
  10. select CPU_ABRT_LV4T
  11. select CPU_CACHE_V4
  12. select CPU_PABRT_LEGACY
  13. help
  14. A 32-bit RISC microprocessor based on the ARM7 processor core
  15. which has no memory control unit and cache.
  16. Say Y if you want support for the ARM7TDMI processor.
  17. Otherwise, say N.
  18. # ARM720T
  19. config CPU_ARM720T
  20. bool
  21. select CPU_32v4T
  22. select CPU_ABRT_LV4T
  23. select CPU_CACHE_V4
  24. select CPU_CACHE_VIVT
  25. select CPU_COPY_V4WT if MMU
  26. select CPU_CP15_MMU
  27. select CPU_PABRT_LEGACY
  28. select CPU_TLB_V4WT if MMU
  29. help
  30. A 32-bit RISC processor with 8kByte Cache, Write Buffer and
  31. MMU built around an ARM7TDMI core.
  32. Say Y if you want support for the ARM720T processor.
  33. Otherwise, say N.
  34. # ARM740T
  35. config CPU_ARM740T
  36. bool
  37. depends on !MMU
  38. select CPU_32v4T
  39. select CPU_ABRT_LV4T
  40. select CPU_CACHE_V4
  41. select CPU_CP15_MPU
  42. select CPU_PABRT_LEGACY
  43. help
  44. A 32-bit RISC processor with 8KB cache or 4KB variants,
  45. write buffer and MPU(Protection Unit) built around
  46. an ARM7TDMI core.
  47. Say Y if you want support for the ARM740T processor.
  48. Otherwise, say N.
  49. # ARM9TDMI
  50. config CPU_ARM9TDMI
  51. bool
  52. depends on !MMU
  53. select CPU_32v4T
  54. select CPU_ABRT_NOMMU
  55. select CPU_CACHE_V4
  56. select CPU_PABRT_LEGACY
  57. help
  58. A 32-bit RISC microprocessor based on the ARM9 processor core
  59. which has no memory control unit and cache.
  60. Say Y if you want support for the ARM9TDMI processor.
  61. Otherwise, say N.
  62. # ARM920T
  63. config CPU_ARM920T
  64. bool
  65. select CPU_32v4T
  66. select CPU_ABRT_EV4T
  67. select CPU_CACHE_V4WT
  68. select CPU_CACHE_VIVT
  69. select CPU_COPY_V4WB if MMU
  70. select CPU_CP15_MMU
  71. select CPU_PABRT_LEGACY
  72. select CPU_TLB_V4WBI if MMU
  73. help
  74. The ARM920T is licensed to be produced by numerous vendors,
  75. and is used in the Cirrus EP93xx and the Samsung S3C2410.
  76. Say Y if you want support for the ARM920T processor.
  77. Otherwise, say N.
  78. # ARM922T
  79. config CPU_ARM922T
  80. bool
  81. select CPU_32v4T
  82. select CPU_ABRT_EV4T
  83. select CPU_CACHE_V4WT
  84. select CPU_CACHE_VIVT
  85. select CPU_COPY_V4WB if MMU
  86. select CPU_CP15_MMU
  87. select CPU_PABRT_LEGACY
  88. select CPU_TLB_V4WBI if MMU
  89. help
  90. The ARM922T is a version of the ARM920T, but with smaller
  91. instruction and data caches. It is used in Altera's
  92. Excalibur XA device family and Micrel's KS8695 Centaur.
  93. Say Y if you want support for the ARM922T processor.
  94. Otherwise, say N.
  95. # ARM925T
  96. config CPU_ARM925T
  97. bool
  98. select CPU_32v4T
  99. select CPU_ABRT_EV4T
  100. select CPU_CACHE_V4WT
  101. select CPU_CACHE_VIVT
  102. select CPU_COPY_V4WB if MMU
  103. select CPU_CP15_MMU
  104. select CPU_PABRT_LEGACY
  105. select CPU_TLB_V4WBI if MMU
  106. help
  107. The ARM925T is a mix between the ARM920T and ARM926T, but with
  108. different instruction and data caches. It is used in TI's OMAP
  109. device family.
  110. Say Y if you want support for the ARM925T processor.
  111. Otherwise, say N.
  112. # ARM926T
  113. config CPU_ARM926T
  114. bool
  115. select CPU_32v5
  116. select CPU_ABRT_EV5TJ
  117. select CPU_CACHE_VIVT
  118. select CPU_COPY_V4WB if MMU
  119. select CPU_CP15_MMU
  120. select CPU_PABRT_LEGACY
  121. select CPU_TLB_V4WBI if MMU
  122. help
  123. This is a variant of the ARM920. It has slightly different
  124. instruction sequences for cache and TLB operations. Curiously,
  125. there is no documentation on it at the ARM corporate website.
  126. Say Y if you want support for the ARM926T processor.
  127. Otherwise, say N.
  128. # FA526
  129. config CPU_FA526
  130. bool
  131. select CPU_32v4
  132. select CPU_ABRT_EV4
  133. select CPU_CACHE_FA
  134. select CPU_CACHE_VIVT
  135. select CPU_COPY_FA if MMU
  136. select CPU_CP15_MMU
  137. select CPU_PABRT_LEGACY
  138. select CPU_TLB_FA if MMU
  139. help
  140. The FA526 is a version of the ARMv4 compatible processor with
  141. Branch Target Buffer, Unified TLB and cache line size 16.
  142. Say Y if you want support for the FA526 processor.
  143. Otherwise, say N.
  144. # ARM940T
  145. config CPU_ARM940T
  146. bool
  147. depends on !MMU
  148. select CPU_32v4T
  149. select CPU_ABRT_NOMMU
  150. select CPU_CACHE_VIVT
  151. select CPU_CP15_MPU
  152. select CPU_PABRT_LEGACY
  153. help
  154. ARM940T is a member of the ARM9TDMI family of general-
  155. purpose microprocessors with MPU and separate 4KB
  156. instruction and 4KB data cases, each with a 4-word line
  157. length.
  158. Say Y if you want support for the ARM940T processor.
  159. Otherwise, say N.
  160. # ARM946E-S
  161. config CPU_ARM946E
  162. bool
  163. depends on !MMU
  164. select CPU_32v5
  165. select CPU_ABRT_NOMMU
  166. select CPU_CACHE_VIVT
  167. select CPU_CP15_MPU
  168. select CPU_PABRT_LEGACY
  169. help
  170. ARM946E-S is a member of the ARM9E-S family of high-
  171. performance, 32-bit system-on-chip processor solutions.
  172. The TCM and ARMv5TE 32-bit instruction set is supported.
  173. Say Y if you want support for the ARM946E-S processor.
  174. Otherwise, say N.
  175. # ARM1020 - needs validating
  176. config CPU_ARM1020
  177. bool
  178. select CPU_32v5
  179. select CPU_ABRT_EV4T
  180. select CPU_CACHE_V4WT
  181. select CPU_CACHE_VIVT
  182. select CPU_COPY_V4WB if MMU
  183. select CPU_CP15_MMU
  184. select CPU_PABRT_LEGACY
  185. select CPU_TLB_V4WBI if MMU
  186. help
  187. The ARM1020 is the 32K cached version of the ARM10 processor,
  188. with an addition of a floating-point unit.
  189. Say Y if you want support for the ARM1020 processor.
  190. Otherwise, say N.
  191. # ARM1020E - needs validating
  192. config CPU_ARM1020E
  193. bool
  194. depends on n
  195. select CPU_32v5
  196. select CPU_ABRT_EV4T
  197. select CPU_CACHE_V4WT
  198. select CPU_CACHE_VIVT
  199. select CPU_COPY_V4WB if MMU
  200. select CPU_CP15_MMU
  201. select CPU_PABRT_LEGACY
  202. select CPU_TLB_V4WBI if MMU
  203. # ARM1022E
  204. config CPU_ARM1022
  205. bool
  206. select CPU_32v5
  207. select CPU_ABRT_EV4T
  208. select CPU_CACHE_VIVT
  209. select CPU_COPY_V4WB if MMU # can probably do better
  210. select CPU_CP15_MMU
  211. select CPU_PABRT_LEGACY
  212. select CPU_TLB_V4WBI if MMU
  213. help
  214. The ARM1022E is an implementation of the ARMv5TE architecture
  215. based upon the ARM10 integer core with a 16KiB L1 Harvard cache,
  216. embedded trace macrocell, and a floating-point unit.
  217. Say Y if you want support for the ARM1022E processor.
  218. Otherwise, say N.
  219. # ARM1026EJ-S
  220. config CPU_ARM1026
  221. bool
  222. select CPU_32v5
  223. select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10
  224. select CPU_CACHE_VIVT
  225. select CPU_COPY_V4WB if MMU # can probably do better
  226. select CPU_CP15_MMU
  227. select CPU_PABRT_LEGACY
  228. select CPU_TLB_V4WBI if MMU
  229. help
  230. The ARM1026EJ-S is an implementation of the ARMv5TEJ architecture
  231. based upon the ARM10 integer core.
  232. Say Y if you want support for the ARM1026EJ-S processor.
  233. Otherwise, say N.
  234. # SA110
  235. config CPU_SA110
  236. bool
  237. select CPU_32v3 if ARCH_RPC
  238. select CPU_32v4 if !ARCH_RPC
  239. select CPU_ABRT_EV4
  240. select CPU_CACHE_V4WB
  241. select CPU_CACHE_VIVT
  242. select CPU_COPY_V4WB if MMU
  243. select CPU_CP15_MMU
  244. select CPU_PABRT_LEGACY
  245. select CPU_TLB_V4WB if MMU
  246. help
  247. The Intel StrongARM(R) SA-110 is a 32-bit microprocessor and
  248. is available at five speeds ranging from 100 MHz to 233 MHz.
  249. More information is available at
  250. <http://developer.intel.com/design/strong/sa110.htm>.
  251. Say Y if you want support for the SA-110 processor.
  252. Otherwise, say N.
  253. # SA1100
  254. config CPU_SA1100
  255. bool
  256. select CPU_32v4
  257. select CPU_ABRT_EV4
  258. select CPU_CACHE_V4WB
  259. select CPU_CACHE_VIVT
  260. select CPU_CP15_MMU
  261. select CPU_PABRT_LEGACY
  262. select CPU_TLB_V4WB if MMU
  263. # XScale
  264. config CPU_XSCALE
  265. bool
  266. select CPU_32v5
  267. select CPU_ABRT_EV5T
  268. select CPU_CACHE_VIVT
  269. select CPU_CP15_MMU
  270. select CPU_PABRT_LEGACY
  271. select CPU_TLB_V4WBI if MMU
  272. # XScale Core Version 3
  273. config CPU_XSC3
  274. bool
  275. select CPU_32v5
  276. select CPU_ABRT_EV5T
  277. select CPU_CACHE_VIVT
  278. select CPU_CP15_MMU
  279. select CPU_PABRT_LEGACY
  280. select CPU_TLB_V4WBI if MMU
  281. select IO_36
  282. # Marvell PJ1 (Mohawk)
  283. config CPU_MOHAWK
  284. bool
  285. select CPU_32v5
  286. select CPU_ABRT_EV5T
  287. select CPU_CACHE_VIVT
  288. select CPU_COPY_V4WB if MMU
  289. select CPU_CP15_MMU
  290. select CPU_PABRT_LEGACY
  291. select CPU_TLB_V4WBI if MMU
  292. # Feroceon
  293. config CPU_FEROCEON
  294. bool
  295. select CPU_32v5
  296. select CPU_ABRT_EV5T
  297. select CPU_CACHE_VIVT
  298. select CPU_COPY_FEROCEON if MMU
  299. select CPU_CP15_MMU
  300. select CPU_PABRT_LEGACY
  301. select CPU_TLB_FEROCEON if MMU
  302. config CPU_FEROCEON_OLD_ID
  303. bool "Accept early Feroceon cores with an ARM926 ID"
  304. depends on CPU_FEROCEON && !CPU_ARM926T
  305. default y
  306. help
  307. This enables the usage of some old Feroceon cores
  308. for which the CPU ID is equal to the ARM926 ID.
  309. Relevant for Feroceon-1850 and early Feroceon-2850.
  310. # Marvell PJ4
  311. config CPU_PJ4
  312. bool
  313. select ARM_THUMBEE
  314. select CPU_V7
  315. config CPU_PJ4B
  316. bool
  317. select CPU_V7
  318. # ARMv6
  319. config CPU_V6
  320. bool
  321. select CPU_32v6
  322. select CPU_ABRT_EV6
  323. select CPU_CACHE_V6
  324. select CPU_CACHE_VIPT
  325. select CPU_COPY_V6 if MMU
  326. select CPU_CP15_MMU
  327. select CPU_HAS_ASID if MMU
  328. select CPU_PABRT_V6
  329. select CPU_TLB_V6 if MMU
  330. # ARMv6k
  331. config CPU_V6K
  332. bool
  333. select CPU_32v6
  334. select CPU_32v6K
  335. select CPU_ABRT_EV6
  336. select CPU_CACHE_V6
  337. select CPU_CACHE_VIPT
  338. select CPU_COPY_V6 if MMU
  339. select CPU_CP15_MMU
  340. select CPU_HAS_ASID if MMU
  341. select CPU_PABRT_V6
  342. select CPU_TLB_V6 if MMU
  343. # ARMv7
  344. config CPU_V7
  345. bool
  346. select CPU_32v6K
  347. select CPU_32v7
  348. select CPU_ABRT_EV7
  349. select CPU_CACHE_V7
  350. select CPU_CACHE_VIPT
  351. select CPU_COPY_V6 if MMU
  352. select CPU_CP15_MMU if MMU
  353. select CPU_CP15_MPU if !MMU
  354. select CPU_HAS_ASID if MMU
  355. select CPU_PABRT_V7
  356. select CPU_SPECTRE if MMU
  357. select CPU_TLB_V7 if MMU
  358. # ARMv7M
  359. config CPU_V7M
  360. bool
  361. select CPU_32v7M
  362. select CPU_ABRT_NOMMU
  363. select CPU_CACHE_V7M
  364. select CPU_CACHE_NOP
  365. select CPU_PABRT_LEGACY
  366. select CPU_THUMBONLY
  367. config CPU_THUMBONLY
  368. bool
  369. # There are no CPUs available with MMU that don't implement an ARM ISA:
  370. depends on !MMU
  371. help
  372. Select this if your CPU doesn't support the 32 bit ARM instructions.
  373. # Figure out what processor architecture version we should be using.
  374. # This defines the compiler instruction set which depends on the machine type.
  375. config CPU_32v3
  376. bool
  377. select CPU_USE_DOMAINS if MMU
  378. select NEED_KUSER_HELPERS
  379. select TLS_REG_EMUL if SMP || !MMU
  380. select CPU_NO_EFFICIENT_FFS
  381. config CPU_32v4
  382. bool
  383. select CPU_USE_DOMAINS if MMU
  384. select NEED_KUSER_HELPERS
  385. select TLS_REG_EMUL if SMP || !MMU
  386. select CPU_NO_EFFICIENT_FFS
  387. config CPU_32v4T
  388. bool
  389. select CPU_USE_DOMAINS if MMU
  390. select NEED_KUSER_HELPERS
  391. select TLS_REG_EMUL if SMP || !MMU
  392. select CPU_NO_EFFICIENT_FFS
  393. config CPU_32v5
  394. bool
  395. select CPU_USE_DOMAINS if MMU
  396. select NEED_KUSER_HELPERS
  397. select TLS_REG_EMUL if SMP || !MMU
  398. config CPU_32v6
  399. bool
  400. select TLS_REG_EMUL if !CPU_32v6K && !MMU
  401. config CPU_32v6K
  402. bool
  403. config CPU_32v7
  404. bool
  405. config CPU_32v7M
  406. bool
  407. # The abort model
  408. config CPU_ABRT_NOMMU
  409. bool
  410. config CPU_ABRT_EV4
  411. bool
  412. config CPU_ABRT_EV4T
  413. bool
  414. config CPU_ABRT_LV4T
  415. bool
  416. config CPU_ABRT_EV5T
  417. bool
  418. config CPU_ABRT_EV5TJ
  419. bool
  420. config CPU_ABRT_EV6
  421. bool
  422. config CPU_ABRT_EV7
  423. bool
  424. config CPU_PABRT_LEGACY
  425. bool
  426. config CPU_PABRT_V6
  427. bool
  428. config CPU_PABRT_V7
  429. bool
  430. # The cache model
  431. config CPU_CACHE_V4
  432. bool
  433. config CPU_CACHE_V4WT
  434. bool
  435. config CPU_CACHE_V4WB
  436. bool
  437. config CPU_CACHE_V6
  438. bool
  439. config CPU_CACHE_V7
  440. bool
  441. config CPU_CACHE_NOP
  442. bool
  443. config CPU_CACHE_VIVT
  444. bool
  445. config CPU_CACHE_VIPT
  446. bool
  447. config CPU_CACHE_FA
  448. bool
  449. config CPU_CACHE_V7M
  450. bool
  451. if MMU
  452. # The copy-page model
  453. config CPU_COPY_V4WT
  454. bool
  455. config CPU_COPY_V4WB
  456. bool
  457. config CPU_COPY_FEROCEON
  458. bool
  459. config CPU_COPY_FA
  460. bool
  461. config CPU_COPY_V6
  462. bool
  463. # This selects the TLB model
  464. config CPU_TLB_V4WT
  465. bool
  466. help
  467. ARM Architecture Version 4 TLB with writethrough cache.
  468. config CPU_TLB_V4WB
  469. bool
  470. help
  471. ARM Architecture Version 4 TLB with writeback cache.
  472. config CPU_TLB_V4WBI
  473. bool
  474. help
  475. ARM Architecture Version 4 TLB with writeback cache and invalidate
  476. instruction cache entry.
  477. config CPU_TLB_FEROCEON
  478. bool
  479. help
  480. Feroceon TLB (v4wbi with non-outer-cachable page table walks).
  481. config CPU_TLB_FA
  482. bool
  483. help
  484. Faraday ARM FA526 architecture, unified TLB with writeback cache
  485. and invalidate instruction cache entry. Branch target buffer is
  486. also supported.
  487. config CPU_TLB_V6
  488. bool
  489. config CPU_TLB_V7
  490. bool
  491. config VERIFY_PERMISSION_FAULT
  492. bool
  493. endif
  494. config CPU_HAS_ASID
  495. bool
  496. help
  497. This indicates whether the CPU has the ASID register; used to
  498. tag TLB and possibly cache entries.
  499. config CPU_CP15
  500. bool
  501. help
  502. Processor has the CP15 register.
  503. config CPU_CP15_MMU
  504. bool
  505. select CPU_CP15
  506. help
  507. Processor has the CP15 register, which has MMU related registers.
  508. config CPU_CP15_MPU
  509. bool
  510. select CPU_CP15
  511. help
  512. Processor has the CP15 register, which has MPU related registers.
  513. config CPU_USE_DOMAINS
  514. bool
  515. help
  516. This option enables or disables the use of domain switching
  517. via the set_fs() function.
  518. config CPU_V7M_NUM_IRQ
  519. int "Number of external interrupts connected to the NVIC"
  520. depends on CPU_V7M
  521. default 90 if ARCH_STM32
  522. default 38 if ARCH_EFM32
  523. default 112 if SOC_VF610
  524. default 240
  525. help
  526. This option indicates the number of interrupts connected to the NVIC.
  527. The value can be larger than the real number of interrupts supported
  528. by the system, but must not be lower.
  529. The default value is 240, corresponding to the maximum number of
  530. interrupts supported by the NVIC on Cortex-M family.
  531. If unsure, keep default value.
  532. #
  533. # CPU supports 36-bit I/O
  534. #
  535. config IO_36
  536. bool
  537. comment "Processor Features"
  538. config ARM_LPAE
  539. bool "Support for the Large Physical Address Extension"
  540. depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \
  541. !CPU_32v4 && !CPU_32v3
  542. help
  543. Say Y if you have an ARMv7 processor supporting the LPAE page
  544. table format and you would like to access memory beyond the
  545. 4GB limit. The resulting kernel image will not run on
  546. processors without the LPA extension.
  547. If unsure, say N.
  548. config ARM_PV_FIXUP
  549. def_bool y
  550. depends on ARM_LPAE && ARM_PATCH_PHYS_VIRT && ARCH_KEYSTONE
  551. config ARCH_PHYS_ADDR_T_64BIT
  552. def_bool ARM_LPAE
  553. config ARCH_DMA_ADDR_T_64BIT
  554. bool
  555. config ARM_THUMB
  556. bool "Support Thumb user binaries" if !CPU_THUMBONLY
  557. depends on CPU_ARM720T || CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || \
  558. CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || \
  559. CPU_ARM1020 || CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \
  560. CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_V6 || CPU_V6K || \
  561. CPU_V7 || CPU_FEROCEON || CPU_V7M
  562. default y
  563. help
  564. Say Y if you want to include kernel support for running user space
  565. Thumb binaries.
  566. The Thumb instruction set is a compressed form of the standard ARM
  567. instruction set resulting in smaller binaries at the expense of
  568. slightly less efficient code.
  569. If you don't know what this all is, saying Y is a safe choice.
  570. config ARM_THUMBEE
  571. bool "Enable ThumbEE CPU extension"
  572. depends on CPU_V7
  573. help
  574. Say Y here if you have a CPU with the ThumbEE extension and code to
  575. make use of it. Say N for code that can run on CPUs without ThumbEE.
  576. config ARM_VIRT_EXT
  577. bool
  578. depends on MMU
  579. default y if CPU_V7
  580. help
  581. Enable the kernel to make use of the ARM Virtualization
  582. Extensions to install hypervisors without run-time firmware
  583. assistance.
  584. A compliant bootloader is required in order to make maximum
  585. use of this feature. Refer to Documentation/arm/Booting for
  586. details.
  587. config SWP_EMULATE
  588. bool "Emulate SWP/SWPB instructions" if !SMP
  589. depends on CPU_V7
  590. default y if SMP
  591. select HAVE_PROC_CPU if PROC_FS
  592. help
  593. ARMv6 architecture deprecates use of the SWP/SWPB instructions.
  594. ARMv7 multiprocessing extensions introduce the ability to disable
  595. these instructions, triggering an undefined instruction exception
  596. when executed. Say Y here to enable software emulation of these
  597. instructions for userspace (not kernel) using LDREX/STREX.
  598. Also creates /proc/cpu/swp_emulation for statistics.
  599. In some older versions of glibc [<=2.8] SWP is used during futex
  600. trylock() operations with the assumption that the code will not
  601. be preempted. This invalid assumption may be more likely to fail
  602. with SWP emulation enabled, leading to deadlock of the user
  603. application.
  604. NOTE: when accessing uncached shared regions, LDREX/STREX rely
  605. on an external transaction monitoring block called a global
  606. monitor to maintain update atomicity. If your system does not
  607. implement a global monitor, this option can cause programs that
  608. perform SWP operations to uncached memory to deadlock.
  609. If unsure, say Y.
  610. config CPU_BIG_ENDIAN
  611. bool "Build big-endian kernel"
  612. depends on ARCH_SUPPORTS_BIG_ENDIAN
  613. help
  614. Say Y if you plan on running a kernel in big-endian mode.
  615. Note that your board must be properly built and your board
  616. port must properly enable any big-endian related features
  617. of your chipset/board/processor.
  618. config CPU_ENDIAN_BE8
  619. bool
  620. depends on CPU_BIG_ENDIAN
  621. default CPU_V6 || CPU_V6K || CPU_V7
  622. help
  623. Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
  624. config CPU_ENDIAN_BE32
  625. bool
  626. depends on CPU_BIG_ENDIAN
  627. default !CPU_ENDIAN_BE8
  628. help
  629. Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
  630. config CPU_HIGH_VECTOR
  631. depends on !MMU && CPU_CP15 && !CPU_ARM740T
  632. bool "Select the High exception vector"
  633. help
  634. Say Y here to select high exception vector(0xFFFF0000~).
  635. The exception vector can vary depending on the platform
  636. design in nommu mode. If your platform needs to select
  637. high exception vector, say Y.
  638. Otherwise or if you are unsure, say N, and the low exception
  639. vector (0x00000000~) will be used.
  640. config CPU_ICACHE_DISABLE
  641. bool "Disable I-Cache (I-bit)"
  642. depends on (CPU_CP15 && !(CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)) || CPU_V7M
  643. help
  644. Say Y here to disable the processor instruction cache. Unless
  645. you have a reason not to or are unsure, say N.
  646. config CPU_DCACHE_DISABLE
  647. bool "Disable D-Cache (C-bit)"
  648. depends on (CPU_CP15 && !SMP) || CPU_V7M
  649. help
  650. Say Y here to disable the processor data cache. Unless
  651. you have a reason not to or are unsure, say N.
  652. config CPU_DCACHE_SIZE
  653. hex
  654. depends on CPU_ARM740T || CPU_ARM946E
  655. default 0x00001000 if CPU_ARM740T
  656. default 0x00002000 # default size for ARM946E-S
  657. help
  658. Some cores are synthesizable to have various sized cache. For
  659. ARM946E-S case, it can vary from 0KB to 1MB.
  660. To support such cache operations, it is efficient to know the size
  661. before compile time.
  662. If your SoC is configured to have a different size, define the value
  663. here with proper conditions.
  664. config CPU_DCACHE_WRITETHROUGH
  665. bool "Force write through D-cache"
  666. depends on (CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_FA526) && !CPU_DCACHE_DISABLE
  667. default y if CPU_ARM925T
  668. help
  669. Say Y here to use the data cache in writethrough mode. Unless you
  670. specifically require this or are unsure, say N.
  671. config CPU_CACHE_ROUND_ROBIN
  672. bool "Round robin I and D cache replacement algorithm"
  673. depends on (CPU_ARM926T || CPU_ARM946E || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
  674. help
  675. Say Y here to use the predictable round-robin cache replacement
  676. policy. Unless you specifically require this or are unsure, say N.
  677. config CPU_BPREDICT_DISABLE
  678. bool "Disable branch prediction"
  679. depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526 || CPU_V7M
  680. help
  681. Say Y here to disable branch prediction. If unsure, say N.
  682. config CPU_SPECTRE
  683. bool
  684. config HARDEN_BRANCH_PREDICTOR
  685. bool "Harden the branch predictor against aliasing attacks" if EXPERT
  686. depends on CPU_SPECTRE
  687. default y
  688. help
  689. Speculation attacks against some high-performance processors rely
  690. on being able to manipulate the branch predictor for a victim
  691. context by executing aliasing branches in the attacker context.
  692. Such attacks can be partially mitigated against by clearing
  693. internal branch predictor state and limiting the prediction
  694. logic in some situations.
  695. This config option will take CPU-specific actions to harden
  696. the branch predictor against aliasing attacks and may rely on
  697. specific instruction sequences or control bits being set by
  698. the system firmware.
  699. If unsure, say Y.
  700. config TLS_REG_EMUL
  701. bool
  702. select NEED_KUSER_HELPERS
  703. help
  704. An SMP system using a pre-ARMv6 processor (there are apparently
  705. a few prototypes like that in existence) and therefore access to
  706. that required register must be emulated.
  707. config NEED_KUSER_HELPERS
  708. bool
  709. config KUSER_HELPERS
  710. bool "Enable kuser helpers in vector page" if !NEED_KUSER_HELPERS
  711. depends on MMU
  712. default y
  713. help
  714. Warning: disabling this option may break user programs.
  715. Provide kuser helpers in the vector page. The kernel provides
  716. helper code to userspace in read only form at a fixed location
  717. in the high vector page to allow userspace to be independent of
  718. the CPU type fitted to the system. This permits binaries to be
  719. run on ARMv4 through to ARMv7 without modification.
  720. See Documentation/arm/kernel_user_helpers.txt for details.
  721. However, the fixed address nature of these helpers can be used
  722. by ROP (return orientated programming) authors when creating
  723. exploits.
  724. If all of the binaries and libraries which run on your platform
  725. are built specifically for your platform, and make no use of
  726. these helpers, then you can turn this option off to hinder
  727. such exploits. However, in that case, if a binary or library
  728. relying on those helpers is run, it will receive a SIGILL signal,
  729. which will terminate the program.
  730. Say N here only if you are absolutely certain that you do not
  731. need these helpers; otherwise, the safe option is to say Y.
  732. config VDSO
  733. bool "Enable VDSO for acceleration of some system calls"
  734. depends on AEABI && MMU && CPU_V7
  735. default y if ARM_ARCH_TIMER
  736. select GENERIC_TIME_VSYSCALL
  737. help
  738. Place in the process address space an ELF shared object
  739. providing fast implementations of gettimeofday and
  740. clock_gettime. Systems that implement the ARM architected
  741. timer will receive maximum benefit.
  742. You must have glibc 2.22 or later for programs to seamlessly
  743. take advantage of this.
  744. config DMA_CACHE_RWFO
  745. bool "Enable read/write for ownership DMA cache maintenance"
  746. depends on CPU_V6K && SMP
  747. default y
  748. help
  749. The Snoop Control Unit on ARM11MPCore does not detect the
  750. cache maintenance operations and the dma_{map,unmap}_area()
  751. functions may leave stale cache entries on other CPUs. By
  752. enabling this option, Read or Write For Ownership in the ARMv6
  753. DMA cache maintenance functions is performed. These LDR/STR
  754. instructions change the cache line state to shared or modified
  755. so that the cache operation has the desired effect.
  756. Note that the workaround is only valid on processors that do
  757. not perform speculative loads into the D-cache. For such
  758. processors, if cache maintenance operations are not broadcast
  759. in hardware, other workarounds are needed (e.g. cache
  760. maintenance broadcasting in software via FIQ).
  761. config OUTER_CACHE
  762. bool
  763. config OUTER_CACHE_SYNC
  764. bool
  765. select ARM_HEAVY_MB
  766. help
  767. The outer cache has a outer_cache_fns.sync function pointer
  768. that can be used to drain the write buffer of the outer cache.
  769. config CACHE_FEROCEON_L2
  770. bool "Enable the Feroceon L2 cache controller"
  771. depends on ARCH_MV78XX0 || ARCH_MVEBU
  772. default y
  773. select OUTER_CACHE
  774. help
  775. This option enables the Feroceon L2 cache controller.
  776. config CACHE_FEROCEON_L2_WRITETHROUGH
  777. bool "Force Feroceon L2 cache write through"
  778. depends on CACHE_FEROCEON_L2
  779. help
  780. Say Y here to use the Feroceon L2 cache in writethrough mode.
  781. Unless you specifically require this, say N for writeback mode.
  782. config MIGHT_HAVE_CACHE_L2X0
  783. bool
  784. help
  785. This option should be selected by machines which have a L2x0
  786. or PL310 cache controller, but where its use is optional.
  787. The only effect of this option is to make CACHE_L2X0 and
  788. related options available to the user for configuration.
  789. Boards or SoCs which always require the cache controller
  790. support to be present should select CACHE_L2X0 directly
  791. instead of this option, thus preventing the user from
  792. inadvertently configuring a broken kernel.
  793. config CACHE_L2X0
  794. bool "Enable the L2x0 outer cache controller" if MIGHT_HAVE_CACHE_L2X0
  795. default MIGHT_HAVE_CACHE_L2X0
  796. select OUTER_CACHE
  797. select OUTER_CACHE_SYNC
  798. help
  799. This option enables the L2x0 PrimeCell.
  800. config CACHE_L2X0_PMU
  801. bool "L2x0 performance monitor support" if CACHE_L2X0
  802. depends on PERF_EVENTS
  803. help
  804. This option enables support for the performance monitoring features
  805. of the L220 and PL310 outer cache controllers.
  806. if CACHE_L2X0
  807. config PL310_ERRATA_588369
  808. bool "PL310 errata: Clean & Invalidate maintenance operations do not invalidate clean lines"
  809. help
  810. The PL310 L2 cache controller implements three types of Clean &
  811. Invalidate maintenance operations: by Physical Address
  812. (offset 0x7F0), by Index/Way (0x7F8) and by Way (0x7FC).
  813. They are architecturally defined to behave as the execution of a
  814. clean operation followed immediately by an invalidate operation,
  815. both performing to the same memory location. This functionality
  816. is not correctly implemented in PL310 prior to r2p0 (fixed in r2p0)
  817. as clean lines are not invalidated as a result of these operations.
  818. config PL310_ERRATA_727915
  819. bool "PL310 errata: Background Clean & Invalidate by Way operation can cause data corruption"
  820. help
  821. PL310 implements the Clean & Invalidate by Way L2 cache maintenance
  822. operation (offset 0x7FC). This operation runs in background so that
  823. PL310 can handle normal accesses while it is in progress. Under very
  824. rare circumstances, due to this erratum, write data can be lost when
  825. PL310 treats a cacheable write transaction during a Clean &
  826. Invalidate by Way operation. Revisions prior to r3p1 are affected by
  827. this errata (fixed in r3p1).
  828. config PL310_ERRATA_753970
  829. bool "PL310 errata: cache sync operation may be faulty"
  830. help
  831. This option enables the workaround for the 753970 PL310 (r3p0) erratum.
  832. Under some condition the effect of cache sync operation on
  833. the store buffer still remains when the operation completes.
  834. This means that the store buffer is always asked to drain and
  835. this prevents it from merging any further writes. The workaround
  836. is to replace the normal offset of cache sync operation (0x730)
  837. by another offset targeting an unmapped PL310 register 0x740.
  838. This has the same effect as the cache sync operation: store buffer
  839. drain and waiting for all buffers empty.
  840. config PL310_ERRATA_769419
  841. bool "PL310 errata: no automatic Store Buffer drain"
  842. help
  843. On revisions of the PL310 prior to r3p2, the Store Buffer does
  844. not automatically drain. This can cause normal, non-cacheable
  845. writes to be retained when the memory system is idle, leading
  846. to suboptimal I/O performance for drivers using coherent DMA.
  847. This option adds a write barrier to the cpu_idle loop so that,
  848. on systems with an outer cache, the store buffer is drained
  849. explicitly.
  850. endif
  851. config CACHE_TAUROS2
  852. bool "Enable the Tauros2 L2 cache controller"
  853. depends on (ARCH_DOVE || ARCH_MMP || CPU_PJ4)
  854. default y
  855. select OUTER_CACHE
  856. help
  857. This option enables the Tauros2 L2 cache controller (as
  858. found on PJ1/PJ4).
  859. config CACHE_UNIPHIER
  860. bool "Enable the UniPhier outer cache controller"
  861. depends on ARCH_UNIPHIER
  862. default y
  863. select OUTER_CACHE
  864. select OUTER_CACHE_SYNC
  865. help
  866. This option enables the UniPhier outer cache (system cache)
  867. controller.
  868. config CACHE_XSC3L2
  869. bool "Enable the L2 cache on XScale3"
  870. depends on CPU_XSC3
  871. default y
  872. select OUTER_CACHE
  873. help
  874. This option enables the L2 cache on XScale3.
  875. config ARM_L1_CACHE_SHIFT_6
  876. bool
  877. default y if CPU_V7
  878. help
  879. Setting ARM L1 cache line size to 64 Bytes.
  880. config ARM_L1_CACHE_SHIFT
  881. int
  882. default 6 if ARM_L1_CACHE_SHIFT_6
  883. default 5
  884. config ARM_DMA_MEM_BUFFERABLE
  885. bool "Use non-cacheable memory for DMA" if (CPU_V6 || CPU_V6K) && !CPU_V7
  886. default y if CPU_V6 || CPU_V6K || CPU_V7
  887. help
  888. Historically, the kernel has used strongly ordered mappings to
  889. provide DMA coherent memory. With the advent of ARMv7, mapping
  890. memory with differing types results in unpredictable behaviour,
  891. so on these CPUs, this option is forced on.
  892. Multiple mappings with differing attributes is also unpredictable
  893. on ARMv6 CPUs, but since they do not have aggressive speculative
  894. prefetch, no harm appears to occur.
  895. However, drivers may be missing the necessary barriers for ARMv6,
  896. and therefore turning this on may result in unpredictable driver
  897. behaviour. Therefore, we offer this as an option.
  898. You are recommended say 'Y' here and debug any affected drivers.
  899. config ARM_HEAVY_MB
  900. bool
  901. config ARCH_SUPPORTS_BIG_ENDIAN
  902. bool
  903. help
  904. This option specifies the architecture can support big endian
  905. operation.
  906. config DEBUG_RODATA
  907. bool "Make kernel text and rodata read-only"
  908. depends on MMU && !XIP_KERNEL
  909. default y if CPU_V7
  910. help
  911. If this is set, kernel text and rodata memory will be made
  912. read-only, and non-text kernel memory will be made non-executable.
  913. The tradeoff is that each region is padded to section-size (1MiB)
  914. boundaries (because their permissions are different and splitting
  915. the 1M pages into 4K ones causes TLB performance problems), which
  916. can waste memory.
  917. config DEBUG_ALIGN_RODATA
  918. bool "Make rodata strictly non-executable"
  919. depends on DEBUG_RODATA
  920. default y
  921. help
  922. If this is set, rodata will be made explicitly non-executable. This
  923. provides protection on the rare chance that attackers might find and
  924. use ROP gadgets that exist in the rodata section. This adds an
  925. additional section-aligned split of rodata from kernel text so it
  926. can be made explicitly non-executable. This padding may waste memory
  927. space to gain the additional protection.