Kconfig 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071
  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_TLB_V7 if MMU
  357. # ARMv7M
  358. config CPU_V7M
  359. bool
  360. select CPU_32v7M
  361. select CPU_ABRT_NOMMU
  362. select CPU_CACHE_V7M
  363. select CPU_CACHE_NOP
  364. select CPU_PABRT_LEGACY
  365. select CPU_THUMBONLY
  366. config CPU_THUMBONLY
  367. bool
  368. # There are no CPUs available with MMU that don't implement an ARM ISA:
  369. depends on !MMU
  370. help
  371. Select this if your CPU doesn't support the 32 bit ARM instructions.
  372. # Figure out what processor architecture version we should be using.
  373. # This defines the compiler instruction set which depends on the machine type.
  374. config CPU_32v3
  375. bool
  376. select CPU_USE_DOMAINS if MMU
  377. select NEED_KUSER_HELPERS
  378. select TLS_REG_EMUL if SMP || !MMU
  379. select CPU_NO_EFFICIENT_FFS
  380. config CPU_32v4
  381. bool
  382. select CPU_USE_DOMAINS if MMU
  383. select NEED_KUSER_HELPERS
  384. select TLS_REG_EMUL if SMP || !MMU
  385. select CPU_NO_EFFICIENT_FFS
  386. config CPU_32v4T
  387. bool
  388. select CPU_USE_DOMAINS if MMU
  389. select NEED_KUSER_HELPERS
  390. select TLS_REG_EMUL if SMP || !MMU
  391. select CPU_NO_EFFICIENT_FFS
  392. config CPU_32v5
  393. bool
  394. select CPU_USE_DOMAINS if MMU
  395. select NEED_KUSER_HELPERS
  396. select TLS_REG_EMUL if SMP || !MMU
  397. config CPU_32v6
  398. bool
  399. select TLS_REG_EMUL if !CPU_32v6K && !MMU
  400. config CPU_32v6K
  401. bool
  402. config CPU_32v7
  403. bool
  404. config CPU_32v7M
  405. bool
  406. # The abort model
  407. config CPU_ABRT_NOMMU
  408. bool
  409. config CPU_ABRT_EV4
  410. bool
  411. config CPU_ABRT_EV4T
  412. bool
  413. config CPU_ABRT_LV4T
  414. bool
  415. config CPU_ABRT_EV5T
  416. bool
  417. config CPU_ABRT_EV5TJ
  418. bool
  419. config CPU_ABRT_EV6
  420. bool
  421. config CPU_ABRT_EV7
  422. bool
  423. config CPU_PABRT_LEGACY
  424. bool
  425. config CPU_PABRT_V6
  426. bool
  427. config CPU_PABRT_V7
  428. bool
  429. # The cache model
  430. config CPU_CACHE_V4
  431. bool
  432. config CPU_CACHE_V4WT
  433. bool
  434. config CPU_CACHE_V4WB
  435. bool
  436. config CPU_CACHE_V6
  437. bool
  438. config CPU_CACHE_V7
  439. bool
  440. config CPU_CACHE_NOP
  441. bool
  442. config CPU_CACHE_VIVT
  443. bool
  444. config CPU_CACHE_VIPT
  445. bool
  446. config CPU_CACHE_FA
  447. bool
  448. config CPU_CACHE_V7M
  449. bool
  450. if MMU
  451. # The copy-page model
  452. config CPU_COPY_V4WT
  453. bool
  454. config CPU_COPY_V4WB
  455. bool
  456. config CPU_COPY_FEROCEON
  457. bool
  458. config CPU_COPY_FA
  459. bool
  460. config CPU_COPY_V6
  461. bool
  462. # This selects the TLB model
  463. config CPU_TLB_V4WT
  464. bool
  465. help
  466. ARM Architecture Version 4 TLB with writethrough cache.
  467. config CPU_TLB_V4WB
  468. bool
  469. help
  470. ARM Architecture Version 4 TLB with writeback cache.
  471. config CPU_TLB_V4WBI
  472. bool
  473. help
  474. ARM Architecture Version 4 TLB with writeback cache and invalidate
  475. instruction cache entry.
  476. config CPU_TLB_FEROCEON
  477. bool
  478. help
  479. Feroceon TLB (v4wbi with non-outer-cachable page table walks).
  480. config CPU_TLB_FA
  481. bool
  482. help
  483. Faraday ARM FA526 architecture, unified TLB with writeback cache
  484. and invalidate instruction cache entry. Branch target buffer is
  485. also supported.
  486. config CPU_TLB_V6
  487. bool
  488. config CPU_TLB_V7
  489. bool
  490. config VERIFY_PERMISSION_FAULT
  491. bool
  492. endif
  493. config CPU_HAS_ASID
  494. bool
  495. help
  496. This indicates whether the CPU has the ASID register; used to
  497. tag TLB and possibly cache entries.
  498. config CPU_CP15
  499. bool
  500. help
  501. Processor has the CP15 register.
  502. config CPU_CP15_MMU
  503. bool
  504. select CPU_CP15
  505. help
  506. Processor has the CP15 register, which has MMU related registers.
  507. config CPU_CP15_MPU
  508. bool
  509. select CPU_CP15
  510. help
  511. Processor has the CP15 register, which has MPU related registers.
  512. config CPU_USE_DOMAINS
  513. bool
  514. help
  515. This option enables or disables the use of domain switching
  516. via the set_fs() function.
  517. config CPU_V7M_NUM_IRQ
  518. int "Number of external interrupts connected to the NVIC"
  519. depends on CPU_V7M
  520. default 90 if ARCH_STM32
  521. default 38 if ARCH_EFM32
  522. default 112 if SOC_VF610
  523. default 240
  524. help
  525. This option indicates the number of interrupts connected to the NVIC.
  526. The value can be larger than the real number of interrupts supported
  527. by the system, but must not be lower.
  528. The default value is 240, corresponding to the maximum number of
  529. interrupts supported by the NVIC on Cortex-M family.
  530. If unsure, keep default value.
  531. #
  532. # CPU supports 36-bit I/O
  533. #
  534. config IO_36
  535. bool
  536. comment "Processor Features"
  537. config ARM_LPAE
  538. bool "Support for the Large Physical Address Extension"
  539. depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \
  540. !CPU_32v4 && !CPU_32v3
  541. help
  542. Say Y if you have an ARMv7 processor supporting the LPAE page
  543. table format and you would like to access memory beyond the
  544. 4GB limit. The resulting kernel image will not run on
  545. processors without the LPA extension.
  546. If unsure, say N.
  547. config ARM_PV_FIXUP
  548. def_bool y
  549. depends on ARM_LPAE && ARM_PATCH_PHYS_VIRT && ARCH_KEYSTONE
  550. config ARCH_PHYS_ADDR_T_64BIT
  551. def_bool ARM_LPAE
  552. config ARCH_DMA_ADDR_T_64BIT
  553. bool
  554. config ARM_THUMB
  555. bool "Support Thumb user binaries" if !CPU_THUMBONLY
  556. depends on CPU_ARM720T || CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || \
  557. CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || \
  558. CPU_ARM1020 || CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \
  559. CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_V6 || CPU_V6K || \
  560. CPU_V7 || CPU_FEROCEON || CPU_V7M
  561. default y
  562. help
  563. Say Y if you want to include kernel support for running user space
  564. Thumb binaries.
  565. The Thumb instruction set is a compressed form of the standard ARM
  566. instruction set resulting in smaller binaries at the expense of
  567. slightly less efficient code.
  568. If you don't know what this all is, saying Y is a safe choice.
  569. config ARM_THUMBEE
  570. bool "Enable ThumbEE CPU extension"
  571. depends on CPU_V7
  572. help
  573. Say Y here if you have a CPU with the ThumbEE extension and code to
  574. make use of it. Say N for code that can run on CPUs without ThumbEE.
  575. config ARM_VIRT_EXT
  576. bool
  577. depends on MMU
  578. default y if CPU_V7
  579. help
  580. Enable the kernel to make use of the ARM Virtualization
  581. Extensions to install hypervisors without run-time firmware
  582. assistance.
  583. A compliant bootloader is required in order to make maximum
  584. use of this feature. Refer to Documentation/arm/Booting for
  585. details.
  586. config SWP_EMULATE
  587. bool "Emulate SWP/SWPB instructions" if !SMP
  588. depends on CPU_V7
  589. default y if SMP
  590. select HAVE_PROC_CPU if PROC_FS
  591. help
  592. ARMv6 architecture deprecates use of the SWP/SWPB instructions.
  593. ARMv7 multiprocessing extensions introduce the ability to disable
  594. these instructions, triggering an undefined instruction exception
  595. when executed. Say Y here to enable software emulation of these
  596. instructions for userspace (not kernel) using LDREX/STREX.
  597. Also creates /proc/cpu/swp_emulation for statistics.
  598. In some older versions of glibc [<=2.8] SWP is used during futex
  599. trylock() operations with the assumption that the code will not
  600. be preempted. This invalid assumption may be more likely to fail
  601. with SWP emulation enabled, leading to deadlock of the user
  602. application.
  603. NOTE: when accessing uncached shared regions, LDREX/STREX rely
  604. on an external transaction monitoring block called a global
  605. monitor to maintain update atomicity. If your system does not
  606. implement a global monitor, this option can cause programs that
  607. perform SWP operations to uncached memory to deadlock.
  608. If unsure, say Y.
  609. config CPU_BIG_ENDIAN
  610. bool "Build big-endian kernel"
  611. depends on ARCH_SUPPORTS_BIG_ENDIAN
  612. help
  613. Say Y if you plan on running a kernel in big-endian mode.
  614. Note that your board must be properly built and your board
  615. port must properly enable any big-endian related features
  616. of your chipset/board/processor.
  617. config CPU_ENDIAN_BE8
  618. bool
  619. depends on CPU_BIG_ENDIAN
  620. default CPU_V6 || CPU_V6K || CPU_V7
  621. help
  622. Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
  623. config CPU_ENDIAN_BE32
  624. bool
  625. depends on CPU_BIG_ENDIAN
  626. default !CPU_ENDIAN_BE8
  627. help
  628. Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
  629. config CPU_HIGH_VECTOR
  630. depends on !MMU && CPU_CP15 && !CPU_ARM740T
  631. bool "Select the High exception vector"
  632. help
  633. Say Y here to select high exception vector(0xFFFF0000~).
  634. The exception vector can vary depending on the platform
  635. design in nommu mode. If your platform needs to select
  636. high exception vector, say Y.
  637. Otherwise or if you are unsure, say N, and the low exception
  638. vector (0x00000000~) will be used.
  639. config CPU_ICACHE_DISABLE
  640. bool "Disable I-Cache (I-bit)"
  641. depends on (CPU_CP15 && !(CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)) || CPU_V7M
  642. help
  643. Say Y here to disable the processor instruction cache. Unless
  644. you have a reason not to or are unsure, say N.
  645. config CPU_DCACHE_DISABLE
  646. bool "Disable D-Cache (C-bit)"
  647. depends on (CPU_CP15 && !SMP) || CPU_V7M
  648. help
  649. Say Y here to disable the processor data cache. Unless
  650. you have a reason not to or are unsure, say N.
  651. config CPU_DCACHE_SIZE
  652. hex
  653. depends on CPU_ARM740T || CPU_ARM946E
  654. default 0x00001000 if CPU_ARM740T
  655. default 0x00002000 # default size for ARM946E-S
  656. help
  657. Some cores are synthesizable to have various sized cache. For
  658. ARM946E-S case, it can vary from 0KB to 1MB.
  659. To support such cache operations, it is efficient to know the size
  660. before compile time.
  661. If your SoC is configured to have a different size, define the value
  662. here with proper conditions.
  663. config CPU_DCACHE_WRITETHROUGH
  664. bool "Force write through D-cache"
  665. depends on (CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_FA526) && !CPU_DCACHE_DISABLE
  666. default y if CPU_ARM925T
  667. help
  668. Say Y here to use the data cache in writethrough mode. Unless you
  669. specifically require this or are unsure, say N.
  670. config CPU_CACHE_ROUND_ROBIN
  671. bool "Round robin I and D cache replacement algorithm"
  672. depends on (CPU_ARM926T || CPU_ARM946E || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
  673. help
  674. Say Y here to use the predictable round-robin cache replacement
  675. policy. Unless you specifically require this or are unsure, say N.
  676. config CPU_BPREDICT_DISABLE
  677. bool "Disable branch prediction"
  678. depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526 || CPU_V7M
  679. help
  680. Say Y here to disable branch prediction. If unsure, say N.
  681. config TLS_REG_EMUL
  682. bool
  683. select NEED_KUSER_HELPERS
  684. help
  685. An SMP system using a pre-ARMv6 processor (there are apparently
  686. a few prototypes like that in existence) and therefore access to
  687. that required register must be emulated.
  688. config NEED_KUSER_HELPERS
  689. bool
  690. config KUSER_HELPERS
  691. bool "Enable kuser helpers in vector page" if !NEED_KUSER_HELPERS
  692. depends on MMU
  693. default y
  694. help
  695. Warning: disabling this option may break user programs.
  696. Provide kuser helpers in the vector page. The kernel provides
  697. helper code to userspace in read only form at a fixed location
  698. in the high vector page to allow userspace to be independent of
  699. the CPU type fitted to the system. This permits binaries to be
  700. run on ARMv4 through to ARMv7 without modification.
  701. See Documentation/arm/kernel_user_helpers.txt for details.
  702. However, the fixed address nature of these helpers can be used
  703. by ROP (return orientated programming) authors when creating
  704. exploits.
  705. If all of the binaries and libraries which run on your platform
  706. are built specifically for your platform, and make no use of
  707. these helpers, then you can turn this option off to hinder
  708. such exploits. However, in that case, if a binary or library
  709. relying on those helpers is run, it will receive a SIGILL signal,
  710. which will terminate the program.
  711. Say N here only if you are absolutely certain that you do not
  712. need these helpers; otherwise, the safe option is to say Y.
  713. config VDSO
  714. bool "Enable VDSO for acceleration of some system calls"
  715. depends on AEABI && MMU && CPU_V7
  716. default y if ARM_ARCH_TIMER
  717. select GENERIC_TIME_VSYSCALL
  718. help
  719. Place in the process address space an ELF shared object
  720. providing fast implementations of gettimeofday and
  721. clock_gettime. Systems that implement the ARM architected
  722. timer will receive maximum benefit.
  723. You must have glibc 2.22 or later for programs to seamlessly
  724. take advantage of this.
  725. config DMA_CACHE_RWFO
  726. bool "Enable read/write for ownership DMA cache maintenance"
  727. depends on CPU_V6K && SMP
  728. default y
  729. help
  730. The Snoop Control Unit on ARM11MPCore does not detect the
  731. cache maintenance operations and the dma_{map,unmap}_area()
  732. functions may leave stale cache entries on other CPUs. By
  733. enabling this option, Read or Write For Ownership in the ARMv6
  734. DMA cache maintenance functions is performed. These LDR/STR
  735. instructions change the cache line state to shared or modified
  736. so that the cache operation has the desired effect.
  737. Note that the workaround is only valid on processors that do
  738. not perform speculative loads into the D-cache. For such
  739. processors, if cache maintenance operations are not broadcast
  740. in hardware, other workarounds are needed (e.g. cache
  741. maintenance broadcasting in software via FIQ).
  742. config OUTER_CACHE
  743. bool
  744. config OUTER_CACHE_SYNC
  745. bool
  746. select ARM_HEAVY_MB
  747. help
  748. The outer cache has a outer_cache_fns.sync function pointer
  749. that can be used to drain the write buffer of the outer cache.
  750. config CACHE_FEROCEON_L2
  751. bool "Enable the Feroceon L2 cache controller"
  752. depends on ARCH_MV78XX0 || ARCH_MVEBU
  753. default y
  754. select OUTER_CACHE
  755. help
  756. This option enables the Feroceon L2 cache controller.
  757. config CACHE_FEROCEON_L2_WRITETHROUGH
  758. bool "Force Feroceon L2 cache write through"
  759. depends on CACHE_FEROCEON_L2
  760. help
  761. Say Y here to use the Feroceon L2 cache in writethrough mode.
  762. Unless you specifically require this, say N for writeback mode.
  763. config MIGHT_HAVE_CACHE_L2X0
  764. bool
  765. help
  766. This option should be selected by machines which have a L2x0
  767. or PL310 cache controller, but where its use is optional.
  768. The only effect of this option is to make CACHE_L2X0 and
  769. related options available to the user for configuration.
  770. Boards or SoCs which always require the cache controller
  771. support to be present should select CACHE_L2X0 directly
  772. instead of this option, thus preventing the user from
  773. inadvertently configuring a broken kernel.
  774. config CACHE_L2X0
  775. bool "Enable the L2x0 outer cache controller" if MIGHT_HAVE_CACHE_L2X0
  776. default MIGHT_HAVE_CACHE_L2X0
  777. select OUTER_CACHE
  778. select OUTER_CACHE_SYNC
  779. help
  780. This option enables the L2x0 PrimeCell.
  781. config CACHE_L2X0_PMU
  782. bool "L2x0 performance monitor support" if CACHE_L2X0
  783. depends on PERF_EVENTS
  784. help
  785. This option enables support for the performance monitoring features
  786. of the L220 and PL310 outer cache controllers.
  787. if CACHE_L2X0
  788. config PL310_ERRATA_588369
  789. bool "PL310 errata: Clean & Invalidate maintenance operations do not invalidate clean lines"
  790. help
  791. The PL310 L2 cache controller implements three types of Clean &
  792. Invalidate maintenance operations: by Physical Address
  793. (offset 0x7F0), by Index/Way (0x7F8) and by Way (0x7FC).
  794. They are architecturally defined to behave as the execution of a
  795. clean operation followed immediately by an invalidate operation,
  796. both performing to the same memory location. This functionality
  797. is not correctly implemented in PL310 prior to r2p0 (fixed in r2p0)
  798. as clean lines are not invalidated as a result of these operations.
  799. config PL310_ERRATA_727915
  800. bool "PL310 errata: Background Clean & Invalidate by Way operation can cause data corruption"
  801. help
  802. PL310 implements the Clean & Invalidate by Way L2 cache maintenance
  803. operation (offset 0x7FC). This operation runs in background so that
  804. PL310 can handle normal accesses while it is in progress. Under very
  805. rare circumstances, due to this erratum, write data can be lost when
  806. PL310 treats a cacheable write transaction during a Clean &
  807. Invalidate by Way operation. Revisions prior to r3p1 are affected by
  808. this errata (fixed in r3p1).
  809. config PL310_ERRATA_753970
  810. bool "PL310 errata: cache sync operation may be faulty"
  811. help
  812. This option enables the workaround for the 753970 PL310 (r3p0) erratum.
  813. Under some condition the effect of cache sync operation on
  814. the store buffer still remains when the operation completes.
  815. This means that the store buffer is always asked to drain and
  816. this prevents it from merging any further writes. The workaround
  817. is to replace the normal offset of cache sync operation (0x730)
  818. by another offset targeting an unmapped PL310 register 0x740.
  819. This has the same effect as the cache sync operation: store buffer
  820. drain and waiting for all buffers empty.
  821. config PL310_ERRATA_769419
  822. bool "PL310 errata: no automatic Store Buffer drain"
  823. help
  824. On revisions of the PL310 prior to r3p2, the Store Buffer does
  825. not automatically drain. This can cause normal, non-cacheable
  826. writes to be retained when the memory system is idle, leading
  827. to suboptimal I/O performance for drivers using coherent DMA.
  828. This option adds a write barrier to the cpu_idle loop so that,
  829. on systems with an outer cache, the store buffer is drained
  830. explicitly.
  831. endif
  832. config CACHE_TAUROS2
  833. bool "Enable the Tauros2 L2 cache controller"
  834. depends on (ARCH_DOVE || ARCH_MMP || CPU_PJ4)
  835. default y
  836. select OUTER_CACHE
  837. help
  838. This option enables the Tauros2 L2 cache controller (as
  839. found on PJ1/PJ4).
  840. config CACHE_UNIPHIER
  841. bool "Enable the UniPhier outer cache controller"
  842. depends on ARCH_UNIPHIER
  843. default y
  844. select OUTER_CACHE
  845. select OUTER_CACHE_SYNC
  846. help
  847. This option enables the UniPhier outer cache (system cache)
  848. controller.
  849. config CACHE_XSC3L2
  850. bool "Enable the L2 cache on XScale3"
  851. depends on CPU_XSC3
  852. default y
  853. select OUTER_CACHE
  854. help
  855. This option enables the L2 cache on XScale3.
  856. config ARM_L1_CACHE_SHIFT_6
  857. bool
  858. default y if CPU_V7
  859. help
  860. Setting ARM L1 cache line size to 64 Bytes.
  861. config ARM_L1_CACHE_SHIFT
  862. int
  863. default 6 if ARM_L1_CACHE_SHIFT_6
  864. default 5
  865. config ARM_DMA_MEM_BUFFERABLE
  866. bool "Use non-cacheable memory for DMA" if (CPU_V6 || CPU_V6K) && !CPU_V7
  867. default y if CPU_V6 || CPU_V6K || CPU_V7
  868. help
  869. Historically, the kernel has used strongly ordered mappings to
  870. provide DMA coherent memory. With the advent of ARMv7, mapping
  871. memory with differing types results in unpredictable behaviour,
  872. so on these CPUs, this option is forced on.
  873. Multiple mappings with differing attributes is also unpredictable
  874. on ARMv6 CPUs, but since they do not have aggressive speculative
  875. prefetch, no harm appears to occur.
  876. However, drivers may be missing the necessary barriers for ARMv6,
  877. and therefore turning this on may result in unpredictable driver
  878. behaviour. Therefore, we offer this as an option.
  879. You are recommended say 'Y' here and debug any affected drivers.
  880. config ARM_HEAVY_MB
  881. bool
  882. config ARCH_SUPPORTS_BIG_ENDIAN
  883. bool
  884. help
  885. This option specifies the architecture can support big endian
  886. operation.
  887. config DEBUG_RODATA
  888. bool "Make kernel text and rodata read-only"
  889. depends on MMU && !XIP_KERNEL
  890. default y if CPU_V7
  891. help
  892. If this is set, kernel text and rodata memory will be made
  893. read-only, and non-text kernel memory will be made non-executable.
  894. The tradeoff is that each region is padded to section-size (1MiB)
  895. boundaries (because their permissions are different and splitting
  896. the 1M pages into 4K ones causes TLB performance problems), which
  897. can waste memory.
  898. config DEBUG_ALIGN_RODATA
  899. bool "Make rodata strictly non-executable"
  900. depends on DEBUG_RODATA
  901. default y
  902. help
  903. If this is set, rodata will be made explicitly non-executable. This
  904. provides protection on the rare chance that attackers might find and
  905. use ROP gadgets that exist in the rodata section. This adds an
  906. additional section-aligned split of rodata from kernel text so it
  907. can be made explicitly non-executable. This padding may waste memory
  908. space to gain the additional protection.