Kconfig 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  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. # ARM610
  6. config CPU_ARM610
  7. bool "Support ARM610 processor" if ARCH_RPC
  8. select CPU_32v3
  9. select CPU_CACHE_V3
  10. select CPU_CACHE_VIVT
  11. select CPU_CP15_MMU
  12. select CPU_COPY_V3 if MMU
  13. select CPU_TLB_V3 if MMU
  14. select CPU_PABRT_LEGACY
  15. help
  16. The ARM610 is the successor to the ARM3 processor
  17. and was produced by VLSI Technology Inc.
  18. Say Y if you want support for the ARM610 processor.
  19. Otherwise, say N.
  20. # ARM7TDMI
  21. config CPU_ARM7TDMI
  22. bool "Support ARM7TDMI processor"
  23. depends on !MMU
  24. select CPU_32v4T
  25. select CPU_ABRT_LV4T
  26. select CPU_PABRT_LEGACY
  27. select CPU_CACHE_V4
  28. help
  29. A 32-bit RISC microprocessor based on the ARM7 processor core
  30. which has no memory control unit and cache.
  31. Say Y if you want support for the ARM7TDMI processor.
  32. Otherwise, say N.
  33. # ARM710
  34. config CPU_ARM710
  35. bool "Support ARM710 processor" if ARCH_RPC
  36. select CPU_32v3
  37. select CPU_CACHE_V3
  38. select CPU_CACHE_VIVT
  39. select CPU_CP15_MMU
  40. select CPU_COPY_V3 if MMU
  41. select CPU_TLB_V3 if MMU
  42. select CPU_PABRT_LEGACY
  43. help
  44. A 32-bit RISC microprocessor based on the ARM7 processor core
  45. designed by Advanced RISC Machines Ltd. The ARM710 is the
  46. successor to the ARM610 processor. It was released in
  47. July 1994 by VLSI Technology Inc.
  48. Say Y if you want support for the ARM710 processor.
  49. Otherwise, say N.
  50. # ARM720T
  51. config CPU_ARM720T
  52. bool "Support ARM720T processor" if ARCH_INTEGRATOR
  53. select CPU_32v4T
  54. select CPU_ABRT_LV4T
  55. select CPU_PABRT_LEGACY
  56. select CPU_CACHE_V4
  57. select CPU_CACHE_VIVT
  58. select CPU_CP15_MMU
  59. select CPU_COPY_V4WT if MMU
  60. select CPU_TLB_V4WT if MMU
  61. help
  62. A 32-bit RISC processor with 8kByte Cache, Write Buffer and
  63. MMU built around an ARM7TDMI core.
  64. Say Y if you want support for the ARM720T processor.
  65. Otherwise, say N.
  66. # ARM740T
  67. config CPU_ARM740T
  68. bool "Support ARM740T processor" if ARCH_INTEGRATOR
  69. depends on !MMU
  70. select CPU_32v4T
  71. select CPU_ABRT_LV4T
  72. select CPU_PABRT_LEGACY
  73. select CPU_CACHE_V3 # although the core is v4t
  74. select CPU_CP15_MPU
  75. help
  76. A 32-bit RISC processor with 8KB cache or 4KB variants,
  77. write buffer and MPU(Protection Unit) built around
  78. an ARM7TDMI core.
  79. Say Y if you want support for the ARM740T processor.
  80. Otherwise, say N.
  81. # ARM9TDMI
  82. config CPU_ARM9TDMI
  83. bool "Support ARM9TDMI processor"
  84. depends on !MMU
  85. select CPU_32v4T
  86. select CPU_ABRT_NOMMU
  87. select CPU_PABRT_LEGACY
  88. select CPU_CACHE_V4
  89. help
  90. A 32-bit RISC microprocessor based on the ARM9 processor core
  91. which has no memory control unit and cache.
  92. Say Y if you want support for the ARM9TDMI processor.
  93. Otherwise, say N.
  94. # ARM920T
  95. config CPU_ARM920T
  96. bool "Support ARM920T processor" if ARCH_INTEGRATOR
  97. select CPU_32v4T
  98. select CPU_ABRT_EV4T
  99. select CPU_PABRT_LEGACY
  100. select CPU_CACHE_V4WT
  101. select CPU_CACHE_VIVT
  102. select CPU_CP15_MMU
  103. select CPU_COPY_V4WB if MMU
  104. select CPU_TLB_V4WBI if MMU
  105. help
  106. The ARM920T is licensed to be produced by numerous vendors,
  107. and is used in the Cirrus EP93xx and the Samsung S3C2410.
  108. Say Y if you want support for the ARM920T processor.
  109. Otherwise, say N.
  110. # ARM922T
  111. config CPU_ARM922T
  112. bool "Support ARM922T processor" if ARCH_INTEGRATOR
  113. select CPU_32v4T
  114. select CPU_ABRT_EV4T
  115. select CPU_PABRT_LEGACY
  116. select CPU_CACHE_V4WT
  117. select CPU_CACHE_VIVT
  118. select CPU_CP15_MMU
  119. select CPU_COPY_V4WB if MMU
  120. select CPU_TLB_V4WBI if MMU
  121. help
  122. The ARM922T is a version of the ARM920T, but with smaller
  123. instruction and data caches. It is used in Altera's
  124. Excalibur XA device family and Micrel's KS8695 Centaur.
  125. Say Y if you want support for the ARM922T processor.
  126. Otherwise, say N.
  127. # ARM925T
  128. config CPU_ARM925T
  129. bool "Support ARM925T processor" if ARCH_OMAP1
  130. select CPU_32v4T
  131. select CPU_ABRT_EV4T
  132. select CPU_PABRT_LEGACY
  133. select CPU_CACHE_V4WT
  134. select CPU_CACHE_VIVT
  135. select CPU_CP15_MMU
  136. select CPU_COPY_V4WB if MMU
  137. select CPU_TLB_V4WBI if MMU
  138. help
  139. The ARM925T is a mix between the ARM920T and ARM926T, but with
  140. different instruction and data caches. It is used in TI's OMAP
  141. device family.
  142. Say Y if you want support for the ARM925T processor.
  143. Otherwise, say N.
  144. # ARM926T
  145. config CPU_ARM926T
  146. bool "Support ARM926T processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB
  147. select CPU_32v5
  148. select CPU_ABRT_EV5TJ
  149. select CPU_PABRT_LEGACY
  150. select CPU_CACHE_VIVT
  151. select CPU_CP15_MMU
  152. select CPU_COPY_V4WB if MMU
  153. select CPU_TLB_V4WBI if MMU
  154. help
  155. This is a variant of the ARM920. It has slightly different
  156. instruction sequences for cache and TLB operations. Curiously,
  157. there is no documentation on it at the ARM corporate website.
  158. Say Y if you want support for the ARM926T processor.
  159. Otherwise, say N.
  160. # FA526
  161. config CPU_FA526
  162. bool
  163. select CPU_32v4
  164. select CPU_ABRT_EV4
  165. select CPU_PABRT_LEGACY
  166. select CPU_CACHE_VIVT
  167. select CPU_CP15_MMU
  168. select CPU_CACHE_FA
  169. select CPU_COPY_FA if MMU
  170. select CPU_TLB_FA if MMU
  171. help
  172. The FA526 is a version of the ARMv4 compatible processor with
  173. Branch Target Buffer, Unified TLB and cache line size 16.
  174. Say Y if you want support for the FA526 processor.
  175. Otherwise, say N.
  176. # ARM940T
  177. config CPU_ARM940T
  178. bool "Support ARM940T processor" if ARCH_INTEGRATOR
  179. depends on !MMU
  180. select CPU_32v4T
  181. select CPU_ABRT_NOMMU
  182. select CPU_PABRT_LEGACY
  183. select CPU_CACHE_VIVT
  184. select CPU_CP15_MPU
  185. help
  186. ARM940T is a member of the ARM9TDMI family of general-
  187. purpose microprocessors with MPU and separate 4KB
  188. instruction and 4KB data cases, each with a 4-word line
  189. length.
  190. Say Y if you want support for the ARM940T processor.
  191. Otherwise, say N.
  192. # ARM946E-S
  193. config CPU_ARM946E
  194. bool "Support ARM946E-S processor" if ARCH_INTEGRATOR
  195. depends on !MMU
  196. select CPU_32v5
  197. select CPU_ABRT_NOMMU
  198. select CPU_PABRT_LEGACY
  199. select CPU_CACHE_VIVT
  200. select CPU_CP15_MPU
  201. help
  202. ARM946E-S is a member of the ARM9E-S family of high-
  203. performance, 32-bit system-on-chip processor solutions.
  204. The TCM and ARMv5TE 32-bit instruction set is supported.
  205. Say Y if you want support for the ARM946E-S processor.
  206. Otherwise, say N.
  207. # ARM1020 - needs validating
  208. config CPU_ARM1020
  209. bool "Support ARM1020T (rev 0) processor" if ARCH_INTEGRATOR
  210. select CPU_32v5
  211. select CPU_ABRT_EV4T
  212. select CPU_PABRT_LEGACY
  213. select CPU_CACHE_V4WT
  214. select CPU_CACHE_VIVT
  215. select CPU_CP15_MMU
  216. select CPU_COPY_V4WB if MMU
  217. select CPU_TLB_V4WBI if MMU
  218. help
  219. The ARM1020 is the 32K cached version of the ARM10 processor,
  220. with an addition of a floating-point unit.
  221. Say Y if you want support for the ARM1020 processor.
  222. Otherwise, say N.
  223. # ARM1020E - needs validating
  224. config CPU_ARM1020E
  225. bool "Support ARM1020E processor" if ARCH_INTEGRATOR
  226. select CPU_32v5
  227. select CPU_ABRT_EV4T
  228. select CPU_PABRT_LEGACY
  229. select CPU_CACHE_V4WT
  230. select CPU_CACHE_VIVT
  231. select CPU_CP15_MMU
  232. select CPU_COPY_V4WB if MMU
  233. select CPU_TLB_V4WBI if MMU
  234. depends on n
  235. # ARM1022E
  236. config CPU_ARM1022
  237. bool "Support ARM1022E processor" if ARCH_INTEGRATOR
  238. select CPU_32v5
  239. select CPU_ABRT_EV4T
  240. select CPU_PABRT_LEGACY
  241. select CPU_CACHE_VIVT
  242. select CPU_CP15_MMU
  243. select CPU_COPY_V4WB if MMU # can probably do better
  244. select CPU_TLB_V4WBI if MMU
  245. help
  246. The ARM1022E is an implementation of the ARMv5TE architecture
  247. based upon the ARM10 integer core with a 16KiB L1 Harvard cache,
  248. embedded trace macrocell, and a floating-point unit.
  249. Say Y if you want support for the ARM1022E processor.
  250. Otherwise, say N.
  251. # ARM1026EJ-S
  252. config CPU_ARM1026
  253. bool "Support ARM1026EJ-S processor" if ARCH_INTEGRATOR
  254. select CPU_32v5
  255. select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10
  256. select CPU_PABRT_LEGACY
  257. select CPU_CACHE_VIVT
  258. select CPU_CP15_MMU
  259. select CPU_COPY_V4WB if MMU # can probably do better
  260. select CPU_TLB_V4WBI if MMU
  261. help
  262. The ARM1026EJ-S is an implementation of the ARMv5TEJ architecture
  263. based upon the ARM10 integer core.
  264. Say Y if you want support for the ARM1026EJ-S processor.
  265. Otherwise, say N.
  266. # SA110
  267. config CPU_SA110
  268. bool "Support StrongARM(R) SA-110 processor" if ARCH_RPC
  269. select CPU_32v3 if ARCH_RPC
  270. select CPU_32v4 if !ARCH_RPC
  271. select CPU_ABRT_EV4
  272. select CPU_PABRT_LEGACY
  273. select CPU_CACHE_V4WB
  274. select CPU_CACHE_VIVT
  275. select CPU_CP15_MMU
  276. select CPU_COPY_V4WB if MMU
  277. select CPU_TLB_V4WB if MMU
  278. help
  279. The Intel StrongARM(R) SA-110 is a 32-bit microprocessor and
  280. is available at five speeds ranging from 100 MHz to 233 MHz.
  281. More information is available at
  282. <http://developer.intel.com/design/strong/sa110.htm>.
  283. Say Y if you want support for the SA-110 processor.
  284. Otherwise, say N.
  285. # SA1100
  286. config CPU_SA1100
  287. bool
  288. select CPU_32v4
  289. select CPU_ABRT_EV4
  290. select CPU_PABRT_LEGACY
  291. select CPU_CACHE_V4WB
  292. select CPU_CACHE_VIVT
  293. select CPU_CP15_MMU
  294. select CPU_TLB_V4WB if MMU
  295. # XScale
  296. config CPU_XSCALE
  297. bool
  298. select CPU_32v5
  299. select CPU_ABRT_EV5T
  300. select CPU_PABRT_LEGACY
  301. select CPU_CACHE_VIVT
  302. select CPU_CP15_MMU
  303. select CPU_TLB_V4WBI if MMU
  304. # XScale Core Version 3
  305. config CPU_XSC3
  306. bool
  307. select CPU_32v5
  308. select CPU_ABRT_EV5T
  309. select CPU_PABRT_LEGACY
  310. select CPU_CACHE_VIVT
  311. select CPU_CP15_MMU
  312. select CPU_TLB_V4WBI if MMU
  313. select IO_36
  314. # Marvell PJ1 (Mohawk)
  315. config CPU_MOHAWK
  316. bool
  317. select CPU_32v5
  318. select CPU_ABRT_EV5T
  319. select CPU_PABRT_LEGACY
  320. select CPU_CACHE_VIVT
  321. select CPU_CP15_MMU
  322. select CPU_TLB_V4WBI if MMU
  323. select CPU_COPY_V4WB if MMU
  324. # Feroceon
  325. config CPU_FEROCEON
  326. bool
  327. select CPU_32v5
  328. select CPU_ABRT_EV5T
  329. select CPU_PABRT_LEGACY
  330. select CPU_CACHE_VIVT
  331. select CPU_CP15_MMU
  332. select CPU_COPY_FEROCEON if MMU
  333. select CPU_TLB_FEROCEON if MMU
  334. config CPU_FEROCEON_OLD_ID
  335. bool "Accept early Feroceon cores with an ARM926 ID"
  336. depends on CPU_FEROCEON && !CPU_ARM926T
  337. default y
  338. help
  339. This enables the usage of some old Feroceon cores
  340. for which the CPU ID is equal to the ARM926 ID.
  341. Relevant for Feroceon-1850 and early Feroceon-2850.
  342. # Marvell PJ4
  343. config CPU_PJ4
  344. bool
  345. select CPU_V7
  346. select ARM_THUMBEE
  347. # ARMv6
  348. config CPU_V6
  349. bool "Support ARM V6 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
  350. select CPU_32v6
  351. select CPU_ABRT_EV6
  352. select CPU_PABRT_V6
  353. select CPU_CACHE_V6
  354. select CPU_CACHE_VIPT
  355. select CPU_CP15_MMU
  356. select CPU_HAS_ASID if MMU
  357. select CPU_COPY_V6 if MMU
  358. select CPU_TLB_V6 if MMU
  359. # ARMv6k
  360. config CPU_V6K
  361. bool "Support ARM V6K processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
  362. select CPU_32v6
  363. select CPU_32v6K
  364. select CPU_ABRT_EV6
  365. select CPU_PABRT_V6
  366. select CPU_CACHE_V6
  367. select CPU_CACHE_VIPT
  368. select CPU_CP15_MMU
  369. select CPU_HAS_ASID if MMU
  370. select CPU_COPY_V6 if MMU
  371. select CPU_TLB_V6 if MMU
  372. # ARMv7
  373. config CPU_V7
  374. bool "Support ARM V7 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
  375. select CPU_32v6K
  376. select CPU_32v7
  377. select CPU_ABRT_EV7
  378. select CPU_PABRT_V7
  379. select CPU_CACHE_V7
  380. select CPU_CACHE_VIPT
  381. select CPU_CP15_MMU
  382. select CPU_HAS_ASID if MMU
  383. select CPU_COPY_V6 if MMU
  384. select CPU_TLB_V7 if MMU
  385. # Figure out what processor architecture version we should be using.
  386. # This defines the compiler instruction set which depends on the machine type.
  387. config CPU_32v3
  388. bool
  389. select TLS_REG_EMUL if SMP || !MMU
  390. select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
  391. select CPU_USE_DOMAINS if MMU
  392. config CPU_32v4
  393. bool
  394. select TLS_REG_EMUL if SMP || !MMU
  395. select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
  396. select CPU_USE_DOMAINS if MMU
  397. config CPU_32v4T
  398. bool
  399. select TLS_REG_EMUL if SMP || !MMU
  400. select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
  401. select CPU_USE_DOMAINS if MMU
  402. config CPU_32v5
  403. bool
  404. select TLS_REG_EMUL if SMP || !MMU
  405. select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
  406. select CPU_USE_DOMAINS if MMU
  407. config CPU_32v6
  408. bool
  409. select TLS_REG_EMUL if !CPU_32v6K && !MMU
  410. select CPU_USE_DOMAINS if CPU_V6 && MMU
  411. config CPU_32v6K
  412. bool
  413. config CPU_32v7
  414. bool
  415. # The abort model
  416. config CPU_ABRT_NOMMU
  417. bool
  418. config CPU_ABRT_EV4
  419. bool
  420. config CPU_ABRT_EV4T
  421. bool
  422. config CPU_ABRT_LV4T
  423. bool
  424. config CPU_ABRT_EV5T
  425. bool
  426. config CPU_ABRT_EV5TJ
  427. bool
  428. config CPU_ABRT_EV6
  429. bool
  430. config CPU_ABRT_EV7
  431. bool
  432. config CPU_PABRT_LEGACY
  433. bool
  434. config CPU_PABRT_V6
  435. bool
  436. config CPU_PABRT_V7
  437. bool
  438. # The cache model
  439. config CPU_CACHE_V3
  440. bool
  441. config CPU_CACHE_V4
  442. bool
  443. config CPU_CACHE_V4WT
  444. bool
  445. config CPU_CACHE_V4WB
  446. bool
  447. config CPU_CACHE_V6
  448. bool
  449. config CPU_CACHE_V7
  450. bool
  451. config CPU_CACHE_VIVT
  452. bool
  453. config CPU_CACHE_VIPT
  454. bool
  455. config CPU_CACHE_FA
  456. bool
  457. if MMU
  458. # The copy-page model
  459. config CPU_COPY_V3
  460. bool
  461. config CPU_COPY_V4WT
  462. bool
  463. config CPU_COPY_V4WB
  464. bool
  465. config CPU_COPY_FEROCEON
  466. bool
  467. config CPU_COPY_FA
  468. bool
  469. config CPU_COPY_V6
  470. bool
  471. # This selects the TLB model
  472. config CPU_TLB_V3
  473. bool
  474. help
  475. ARM Architecture Version 3 TLB.
  476. config CPU_TLB_V4WT
  477. bool
  478. help
  479. ARM Architecture Version 4 TLB with writethrough cache.
  480. config CPU_TLB_V4WB
  481. bool
  482. help
  483. ARM Architecture Version 4 TLB with writeback cache.
  484. config CPU_TLB_V4WBI
  485. bool
  486. help
  487. ARM Architecture Version 4 TLB with writeback cache and invalidate
  488. instruction cache entry.
  489. config CPU_TLB_FEROCEON
  490. bool
  491. help
  492. Feroceon TLB (v4wbi with non-outer-cachable page table walks).
  493. config CPU_TLB_FA
  494. bool
  495. help
  496. Faraday ARM FA526 architecture, unified TLB with writeback cache
  497. and invalidate instruction cache entry. Branch target buffer is
  498. also supported.
  499. config CPU_TLB_V6
  500. bool
  501. config CPU_TLB_V7
  502. bool
  503. config VERIFY_PERMISSION_FAULT
  504. bool
  505. endif
  506. config CPU_HAS_ASID
  507. bool
  508. help
  509. This indicates whether the CPU has the ASID register; used to
  510. tag TLB and possibly cache entries.
  511. config CPU_CP15
  512. bool
  513. help
  514. Processor has the CP15 register.
  515. config CPU_CP15_MMU
  516. bool
  517. select CPU_CP15
  518. help
  519. Processor has the CP15 register, which has MMU related registers.
  520. config CPU_CP15_MPU
  521. bool
  522. select CPU_CP15
  523. help
  524. Processor has the CP15 register, which has MPU related registers.
  525. config CPU_USE_DOMAINS
  526. bool
  527. help
  528. This option enables or disables the use of domain switching
  529. via the set_fs() function.
  530. #
  531. # CPU supports 36-bit I/O
  532. #
  533. config IO_36
  534. bool
  535. comment "Processor Features"
  536. config ARM_THUMB
  537. bool "Support Thumb user binaries"
  538. depends on CPU_ARM720T || CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_V6 || CPU_V6K || CPU_V7 || CPU_FEROCEON
  539. default y
  540. help
  541. Say Y if you want to include kernel support for running user space
  542. Thumb binaries.
  543. The Thumb instruction set is a compressed form of the standard ARM
  544. instruction set resulting in smaller binaries at the expense of
  545. slightly less efficient code.
  546. If you don't know what this all is, saying Y is a safe choice.
  547. config ARM_THUMBEE
  548. bool "Enable ThumbEE CPU extension"
  549. depends on CPU_V7
  550. help
  551. Say Y here if you have a CPU with the ThumbEE extension and code to
  552. make use of it. Say N for code that can run on CPUs without ThumbEE.
  553. config SWP_EMULATE
  554. bool "Emulate SWP/SWPB instructions"
  555. depends on !CPU_USE_DOMAINS && CPU_V7
  556. select HAVE_PROC_CPU if PROC_FS
  557. default y if SMP
  558. help
  559. ARMv6 architecture deprecates use of the SWP/SWPB instructions.
  560. ARMv7 multiprocessing extensions introduce the ability to disable
  561. these instructions, triggering an undefined instruction exception
  562. when executed. Say Y here to enable software emulation of these
  563. instructions for userspace (not kernel) using LDREX/STREX.
  564. Also creates /proc/cpu/swp_emulation for statistics.
  565. In some older versions of glibc [<=2.8] SWP is used during futex
  566. trylock() operations with the assumption that the code will not
  567. be preempted. This invalid assumption may be more likely to fail
  568. with SWP emulation enabled, leading to deadlock of the user
  569. application.
  570. NOTE: when accessing uncached shared regions, LDREX/STREX rely
  571. on an external transaction monitoring block called a global
  572. monitor to maintain update atomicity. If your system does not
  573. implement a global monitor, this option can cause programs that
  574. perform SWP operations to uncached memory to deadlock.
  575. If unsure, say Y.
  576. config CPU_BIG_ENDIAN
  577. bool "Build big-endian kernel"
  578. depends on ARCH_SUPPORTS_BIG_ENDIAN
  579. help
  580. Say Y if you plan on running a kernel in big-endian mode.
  581. Note that your board must be properly built and your board
  582. port must properly enable any big-endian related features
  583. of your chipset/board/processor.
  584. config CPU_ENDIAN_BE8
  585. bool
  586. depends on CPU_BIG_ENDIAN
  587. default CPU_V6 || CPU_V6K || CPU_V7
  588. help
  589. Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
  590. config CPU_ENDIAN_BE32
  591. bool
  592. depends on CPU_BIG_ENDIAN
  593. default !CPU_ENDIAN_BE8
  594. help
  595. Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
  596. config CPU_HIGH_VECTOR
  597. depends on !MMU && CPU_CP15 && !CPU_ARM740T
  598. bool "Select the High exception vector"
  599. help
  600. Say Y here to select high exception vector(0xFFFF0000~).
  601. The exception vector can be vary depending on the platform
  602. design in nommu mode. If your platform needs to select
  603. high exception vector, say Y.
  604. Otherwise or if you are unsure, say N, and the low exception
  605. vector (0x00000000~) will be used.
  606. config CPU_ICACHE_DISABLE
  607. bool "Disable I-Cache (I-bit)"
  608. depends on CPU_CP15 && !(CPU_ARM610 || CPU_ARM710 || CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)
  609. help
  610. Say Y here to disable the processor instruction cache. Unless
  611. you have a reason not to or are unsure, say N.
  612. config CPU_DCACHE_DISABLE
  613. bool "Disable D-Cache (C-bit)"
  614. depends on CPU_CP15
  615. help
  616. Say Y here to disable the processor data cache. Unless
  617. you have a reason not to or are unsure, say N.
  618. config CPU_DCACHE_SIZE
  619. hex
  620. depends on CPU_ARM740T || CPU_ARM946E
  621. default 0x00001000 if CPU_ARM740T
  622. default 0x00002000 # default size for ARM946E-S
  623. help
  624. Some cores are synthesizable to have various sized cache. For
  625. ARM946E-S case, it can vary from 0KB to 1MB.
  626. To support such cache operations, it is efficient to know the size
  627. before compile time.
  628. If your SoC is configured to have a different size, define the value
  629. here with proper conditions.
  630. config CPU_DCACHE_WRITETHROUGH
  631. bool "Force write through D-cache"
  632. depends on (CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_FA526) && !CPU_DCACHE_DISABLE
  633. default y if CPU_ARM925T
  634. help
  635. Say Y here to use the data cache in writethrough mode. Unless you
  636. specifically require this or are unsure, say N.
  637. config CPU_CACHE_ROUND_ROBIN
  638. bool "Round robin I and D cache replacement algorithm"
  639. depends on (CPU_ARM926T || CPU_ARM946E || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
  640. help
  641. Say Y here to use the predictable round-robin cache replacement
  642. policy. Unless you specifically require this or are unsure, say N.
  643. config CPU_BPREDICT_DISABLE
  644. bool "Disable branch prediction"
  645. depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526
  646. help
  647. Say Y here to disable branch prediction. If unsure, say N.
  648. config TLS_REG_EMUL
  649. bool
  650. help
  651. An SMP system using a pre-ARMv6 processor (there are apparently
  652. a few prototypes like that in existence) and therefore access to
  653. that required register must be emulated.
  654. config NEEDS_SYSCALL_FOR_CMPXCHG
  655. bool
  656. help
  657. SMP on a pre-ARMv6 processor? Well OK then.
  658. Forget about fast user space cmpxchg support.
  659. It is just not possible.
  660. config DMA_CACHE_RWFO
  661. bool "Enable read/write for ownership DMA cache maintenance"
  662. depends on CPU_V6K && SMP
  663. default y
  664. help
  665. The Snoop Control Unit on ARM11MPCore does not detect the
  666. cache maintenance operations and the dma_{map,unmap}_area()
  667. functions may leave stale cache entries on other CPUs. By
  668. enabling this option, Read or Write For Ownership in the ARMv6
  669. DMA cache maintenance functions is performed. These LDR/STR
  670. instructions change the cache line state to shared or modified
  671. so that the cache operation has the desired effect.
  672. Note that the workaround is only valid on processors that do
  673. not perform speculative loads into the D-cache. For such
  674. processors, if cache maintenance operations are not broadcast
  675. in hardware, other workarounds are needed (e.g. cache
  676. maintenance broadcasting in software via FIQ).
  677. config OUTER_CACHE
  678. bool
  679. config OUTER_CACHE_SYNC
  680. bool
  681. help
  682. The outer cache has a outer_cache_fns.sync function pointer
  683. that can be used to drain the write buffer of the outer cache.
  684. config CACHE_FEROCEON_L2
  685. bool "Enable the Feroceon L2 cache controller"
  686. depends on ARCH_KIRKWOOD || ARCH_MV78XX0
  687. default y
  688. select OUTER_CACHE
  689. help
  690. This option enables the Feroceon L2 cache controller.
  691. config CACHE_FEROCEON_L2_WRITETHROUGH
  692. bool "Force Feroceon L2 cache write through"
  693. depends on CACHE_FEROCEON_L2
  694. help
  695. Say Y here to use the Feroceon L2 cache in writethrough mode.
  696. Unless you specifically require this, say N for writeback mode.
  697. config CACHE_L2X0
  698. bool "Enable the L2x0 outer cache controller"
  699. depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \
  700. REALVIEW_EB_A9MP || SOC_IMX35 || SOC_IMX31 || MACH_REALVIEW_PBX || \
  701. ARCH_NOMADIK || ARCH_OMAP4 || ARCH_EXYNOS4 || ARCH_TEGRA || \
  702. ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE
  703. default y
  704. select OUTER_CACHE
  705. select OUTER_CACHE_SYNC
  706. help
  707. This option enables the L2x0 PrimeCell.
  708. config CACHE_PL310
  709. bool
  710. depends on CACHE_L2X0
  711. default y if CPU_V7 && !(CPU_V6 || CPU_V6K)
  712. help
  713. This option enables optimisations for the PL310 cache
  714. controller.
  715. config CACHE_TAUROS2
  716. bool "Enable the Tauros2 L2 cache controller"
  717. depends on (ARCH_DOVE || ARCH_MMP || CPU_PJ4)
  718. default y
  719. select OUTER_CACHE
  720. help
  721. This option enables the Tauros2 L2 cache controller (as
  722. found on PJ1/PJ4).
  723. config CACHE_XSC3L2
  724. bool "Enable the L2 cache on XScale3"
  725. depends on CPU_XSC3
  726. default y
  727. select OUTER_CACHE
  728. help
  729. This option enables the L2 cache on XScale3.
  730. config ARM_L1_CACHE_SHIFT_6
  731. bool
  732. help
  733. Setting ARM L1 cache line size to 64 Bytes.
  734. config ARM_L1_CACHE_SHIFT
  735. int
  736. default 6 if ARM_L1_CACHE_SHIFT_6
  737. default 5
  738. config ARM_DMA_MEM_BUFFERABLE
  739. bool "Use non-cacheable memory for DMA" if (CPU_V6 || CPU_V6K) && !CPU_V7
  740. depends on !(MACH_REALVIEW_PB1176 || REALVIEW_EB_ARM11MP || \
  741. MACH_REALVIEW_PB11MP)
  742. default y if CPU_V6 || CPU_V6K || CPU_V7
  743. help
  744. Historically, the kernel has used strongly ordered mappings to
  745. provide DMA coherent memory. With the advent of ARMv7, mapping
  746. memory with differing types results in unpredictable behaviour,
  747. so on these CPUs, this option is forced on.
  748. Multiple mappings with differing attributes is also unpredictable
  749. on ARMv6 CPUs, but since they do not have aggressive speculative
  750. prefetch, no harm appears to occur.
  751. However, drivers may be missing the necessary barriers for ARMv6,
  752. and therefore turning this on may result in unpredictable driver
  753. behaviour. Therefore, we offer this as an option.
  754. You are recommended say 'Y' here and debug any affected drivers.
  755. config ARCH_HAS_BARRIERS
  756. bool
  757. help
  758. This option allows the use of custom mandatory barriers
  759. included via the mach/barriers.h file.