Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. comment "Processor Type"
  2. config CPU_32
  3. bool
  4. default y
  5. # Select CPU types depending on the architecture selected. This selects
  6. # which CPUs we support in the kernel image, and the compiler instruction
  7. # optimiser behaviour.
  8. # ARM610
  9. config CPU_ARM610
  10. bool "Support ARM610 processor"
  11. depends on ARCH_RPC
  12. select CPU_32v3
  13. select CPU_CACHE_V3
  14. select CPU_CACHE_VIVT
  15. select CPU_CP15_MMU
  16. select CPU_COPY_V3 if MMU
  17. select CPU_TLB_V3 if MMU
  18. help
  19. The ARM610 is the successor to the ARM3 processor
  20. and was produced by VLSI Technology Inc.
  21. Say Y if you want support for the ARM610 processor.
  22. Otherwise, say N.
  23. # ARM7TDMI
  24. config CPU_ARM7TDMI
  25. bool "Support ARM7TDMI processor"
  26. select CPU_32v4T
  27. select CPU_ABRT_LV4T
  28. select CPU_CACHE_V4
  29. help
  30. A 32-bit RISC microprocessor based on the ARM7 processor core
  31. which has no memory control unit and cache.
  32. Say Y if you want support for the ARM7TDMI processor.
  33. Otherwise, say N.
  34. # ARM710
  35. config CPU_ARM710
  36. bool "Support ARM710 processor" if !ARCH_CLPS7500 && ARCH_RPC
  37. default y if ARCH_CLPS7500
  38. select CPU_32v3
  39. select CPU_CACHE_V3
  40. select CPU_CACHE_VIVT
  41. select CPU_CP15_MMU
  42. select CPU_COPY_V3 if MMU
  43. select CPU_TLB_V3 if MMU
  44. help
  45. A 32-bit RISC microprocessor based on the ARM7 processor core
  46. designed by Advanced RISC Machines Ltd. The ARM710 is the
  47. successor to the ARM610 processor. It was released in
  48. July 1994 by VLSI Technology Inc.
  49. Say Y if you want support for the ARM710 processor.
  50. Otherwise, say N.
  51. # ARM720T
  52. config CPU_ARM720T
  53. bool "Support ARM720T processor" if !ARCH_CLPS711X && !ARCH_L7200 && !ARCH_CDB89712 && ARCH_INTEGRATOR
  54. default y if ARCH_CLPS711X || ARCH_L7200 || ARCH_CDB89712 || ARCH_H720X
  55. select CPU_32v4T
  56. select CPU_ABRT_LV4T
  57. select CPU_CACHE_V4
  58. select CPU_CACHE_VIVT
  59. select CPU_CP15_MMU
  60. select CPU_COPY_V4WT if MMU
  61. select CPU_TLB_V4WT if MMU
  62. help
  63. A 32-bit RISC processor with 8kByte Cache, Write Buffer and
  64. MMU built around an ARM7TDMI core.
  65. Say Y if you want support for the ARM720T processor.
  66. Otherwise, say N.
  67. # ARM920T
  68. config CPU_ARM920T
  69. bool "Support ARM920T processor"
  70. depends on ARCH_EP93XX || ARCH_INTEGRATOR || CPU_S3C2410 || CPU_S3C2440 || CPU_S3C2442 || ARCH_IMX || ARCH_AAEC2000 || ARCH_AT91RM9200
  71. default y if CPU_S3C2410 || CPU_S3C2440 || CPU_S3C2442 || ARCH_AT91RM9200
  72. select CPU_32v4T
  73. select CPU_ABRT_EV4T
  74. select CPU_CACHE_V4WT
  75. select CPU_CACHE_VIVT
  76. select CPU_CP15_MMU
  77. select CPU_COPY_V4WB if MMU
  78. select CPU_TLB_V4WBI if MMU
  79. help
  80. The ARM920T is licensed to be produced by numerous vendors,
  81. and is used in the Maverick EP9312 and the Samsung S3C2410.
  82. More information on the Maverick EP9312 at
  83. <http://linuxdevices.com/products/PD2382866068.html>.
  84. Say Y if you want support for the ARM920T processor.
  85. Otherwise, say N.
  86. # ARM922T
  87. config CPU_ARM922T
  88. bool "Support ARM922T processor" if ARCH_INTEGRATOR
  89. depends on ARCH_LH7A40X || ARCH_INTEGRATOR
  90. default y if ARCH_LH7A40X
  91. select CPU_32v4T
  92. select CPU_ABRT_EV4T
  93. select CPU_CACHE_V4WT
  94. select CPU_CACHE_VIVT
  95. select CPU_CP15_MMU
  96. select CPU_COPY_V4WB if MMU
  97. select CPU_TLB_V4WBI if MMU
  98. help
  99. The ARM922T is a version of the ARM920T, but with smaller
  100. instruction and data caches. It is used in Altera's
  101. Excalibur XA device family.
  102. Say Y if you want support for the ARM922T processor.
  103. Otherwise, say N.
  104. # ARM925T
  105. config CPU_ARM925T
  106. bool "Support ARM925T processor" if ARCH_OMAP1
  107. depends on ARCH_OMAP15XX
  108. default y if ARCH_OMAP15XX
  109. select CPU_32v4T
  110. select CPU_ABRT_EV4T
  111. select CPU_CACHE_V4WT
  112. select CPU_CACHE_VIVT
  113. select CPU_CP15_MMU
  114. select CPU_COPY_V4WB if MMU
  115. select CPU_TLB_V4WBI if MMU
  116. help
  117. The ARM925T is a mix between the ARM920T and ARM926T, but with
  118. different instruction and data caches. It is used in TI's OMAP
  119. device family.
  120. Say Y if you want support for the ARM925T processor.
  121. Otherwise, say N.
  122. # ARM926T
  123. config CPU_ARM926T
  124. bool "Support ARM926T processor"
  125. depends on ARCH_INTEGRATOR || ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || MACH_REALVIEW_EB || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 || ARCH_AT91SAM9260 || ARCH_AT91SAM9261
  126. default y if ARCH_VERSATILE_PB || MACH_VERSATILE_AB || ARCH_OMAP730 || ARCH_OMAP16XX || ARCH_PNX4008 || ARCH_NETX || CPU_S3C2412 || ARCH_AT91SAM9260 || ARCH_AT91SAM9261
  127. select CPU_32v5
  128. select CPU_ABRT_EV5TJ
  129. select CPU_CACHE_VIVT
  130. select CPU_CP15_MMU
  131. select CPU_COPY_V4WB if MMU
  132. select CPU_TLB_V4WBI if MMU
  133. help
  134. This is a variant of the ARM920. It has slightly different
  135. instruction sequences for cache and TLB operations. Curiously,
  136. there is no documentation on it at the ARM corporate website.
  137. Say Y if you want support for the ARM926T processor.
  138. Otherwise, say N.
  139. # ARM1020 - needs validating
  140. config CPU_ARM1020
  141. bool "Support ARM1020T (rev 0) processor"
  142. depends on ARCH_INTEGRATOR
  143. select CPU_32v5
  144. select CPU_ABRT_EV4T
  145. select CPU_CACHE_V4WT
  146. select CPU_CACHE_VIVT
  147. select CPU_CP15_MMU
  148. select CPU_COPY_V4WB if MMU
  149. select CPU_TLB_V4WBI if MMU
  150. help
  151. The ARM1020 is the 32K cached version of the ARM10 processor,
  152. with an addition of a floating-point unit.
  153. Say Y if you want support for the ARM1020 processor.
  154. Otherwise, say N.
  155. # ARM1020E - needs validating
  156. config CPU_ARM1020E
  157. bool "Support ARM1020E processor"
  158. depends on ARCH_INTEGRATOR
  159. select CPU_32v5
  160. select CPU_ABRT_EV4T
  161. select CPU_CACHE_V4WT
  162. select CPU_CACHE_VIVT
  163. select CPU_CP15_MMU
  164. select CPU_COPY_V4WB if MMU
  165. select CPU_TLB_V4WBI if MMU
  166. depends on n
  167. # ARM1022E
  168. config CPU_ARM1022
  169. bool "Support ARM1022E processor"
  170. depends on ARCH_INTEGRATOR
  171. select CPU_32v5
  172. select CPU_ABRT_EV4T
  173. select CPU_CACHE_VIVT
  174. select CPU_CP15_MMU
  175. select CPU_COPY_V4WB if MMU # can probably do better
  176. select CPU_TLB_V4WBI if MMU
  177. help
  178. The ARM1022E is an implementation of the ARMv5TE architecture
  179. based upon the ARM10 integer core with a 16KiB L1 Harvard cache,
  180. embedded trace macrocell, and a floating-point unit.
  181. Say Y if you want support for the ARM1022E processor.
  182. Otherwise, say N.
  183. # ARM1026EJ-S
  184. config CPU_ARM1026
  185. bool "Support ARM1026EJ-S processor"
  186. depends on ARCH_INTEGRATOR
  187. select CPU_32v5
  188. select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10
  189. select CPU_CACHE_VIVT
  190. select CPU_CP15_MMU
  191. select CPU_COPY_V4WB if MMU # can probably do better
  192. select CPU_TLB_V4WBI if MMU
  193. help
  194. The ARM1026EJ-S is an implementation of the ARMv5TEJ architecture
  195. based upon the ARM10 integer core.
  196. Say Y if you want support for the ARM1026EJ-S processor.
  197. Otherwise, say N.
  198. # SA110
  199. config CPU_SA110
  200. bool "Support StrongARM(R) SA-110 processor" if !ARCH_EBSA110 && !FOOTBRIDGE && !ARCH_TBOX && !ARCH_SHARK && !ARCH_NEXUSPCI && ARCH_RPC
  201. default y if ARCH_EBSA110 || FOOTBRIDGE || ARCH_TBOX || ARCH_SHARK || ARCH_NEXUSPCI
  202. select CPU_32v3 if ARCH_RPC
  203. select CPU_32v4 if !ARCH_RPC
  204. select CPU_ABRT_EV4
  205. select CPU_CACHE_V4WB
  206. select CPU_CACHE_VIVT
  207. select CPU_CP15_MMU
  208. select CPU_COPY_V4WB if MMU
  209. select CPU_TLB_V4WB if MMU
  210. help
  211. The Intel StrongARM(R) SA-110 is a 32-bit microprocessor and
  212. is available at five speeds ranging from 100 MHz to 233 MHz.
  213. More information is available at
  214. <http://developer.intel.com/design/strong/sa110.htm>.
  215. Say Y if you want support for the SA-110 processor.
  216. Otherwise, say N.
  217. # SA1100
  218. config CPU_SA1100
  219. bool
  220. depends on ARCH_SA1100
  221. default y
  222. select CPU_32v4
  223. select CPU_ABRT_EV4
  224. select CPU_CACHE_V4WB
  225. select CPU_CACHE_VIVT
  226. select CPU_CP15_MMU
  227. select CPU_TLB_V4WB if MMU
  228. # XScale
  229. config CPU_XSCALE
  230. bool
  231. depends on ARCH_IOP32X || ARCH_IOP33X || ARCH_PXA || ARCH_IXP4XX || ARCH_IXP2000
  232. default y
  233. select CPU_32v5
  234. select CPU_ABRT_EV5T
  235. select CPU_CACHE_VIVT
  236. select CPU_CP15_MMU
  237. select CPU_TLB_V4WBI if MMU
  238. # XScale Core Version 3
  239. config CPU_XSC3
  240. bool
  241. depends on ARCH_IXP23XX
  242. default y
  243. select CPU_32v5
  244. select CPU_ABRT_EV5T
  245. select CPU_CACHE_VIVT
  246. select CPU_CP15_MMU
  247. select CPU_TLB_V4WBI if MMU
  248. select IO_36
  249. # ARMv6
  250. config CPU_V6
  251. bool "Support ARM V6 processor"
  252. depends on ARCH_INTEGRATOR || MACH_REALVIEW_EB || ARCH_OMAP2
  253. select CPU_32v6
  254. select CPU_ABRT_EV6
  255. select CPU_CACHE_V6
  256. select CPU_CACHE_VIPT
  257. select CPU_CP15_MMU
  258. select CPU_COPY_V6 if MMU
  259. select CPU_TLB_V6 if MMU
  260. # ARMv6k
  261. config CPU_32v6K
  262. bool "Support ARM V6K processor extensions" if !SMP
  263. depends on CPU_V6
  264. default y if SMP
  265. help
  266. Say Y here if your ARMv6 processor supports the 'K' extension.
  267. This enables the kernel to use some instructions not present
  268. on previous processors, and as such a kernel build with this
  269. enabled will not boot on processors with do not support these
  270. instructions.
  271. # Figure out what processor architecture version we should be using.
  272. # This defines the compiler instruction set which depends on the machine type.
  273. config CPU_32v3
  274. bool
  275. select TLS_REG_EMUL if SMP || !MMU
  276. select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
  277. config CPU_32v4
  278. bool
  279. select TLS_REG_EMUL if SMP || !MMU
  280. select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
  281. config CPU_32v4T
  282. bool
  283. select TLS_REG_EMUL if SMP || !MMU
  284. select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
  285. config CPU_32v5
  286. bool
  287. select TLS_REG_EMUL if SMP || !MMU
  288. select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
  289. config CPU_32v6
  290. bool
  291. # The abort model
  292. config CPU_ABRT_EV4
  293. bool
  294. config CPU_ABRT_EV4T
  295. bool
  296. config CPU_ABRT_LV4T
  297. bool
  298. config CPU_ABRT_EV5T
  299. bool
  300. config CPU_ABRT_EV5TJ
  301. bool
  302. config CPU_ABRT_EV6
  303. bool
  304. # The cache model
  305. config CPU_CACHE_V3
  306. bool
  307. config CPU_CACHE_V4
  308. bool
  309. config CPU_CACHE_V4WT
  310. bool
  311. config CPU_CACHE_V4WB
  312. bool
  313. config CPU_CACHE_V6
  314. bool
  315. config CPU_CACHE_VIVT
  316. bool
  317. config CPU_CACHE_VIPT
  318. bool
  319. if MMU
  320. # The copy-page model
  321. config CPU_COPY_V3
  322. bool
  323. config CPU_COPY_V4WT
  324. bool
  325. config CPU_COPY_V4WB
  326. bool
  327. config CPU_COPY_V6
  328. bool
  329. # This selects the TLB model
  330. config CPU_TLB_V3
  331. bool
  332. help
  333. ARM Architecture Version 3 TLB.
  334. config CPU_TLB_V4WT
  335. bool
  336. help
  337. ARM Architecture Version 4 TLB with writethrough cache.
  338. config CPU_TLB_V4WB
  339. bool
  340. help
  341. ARM Architecture Version 4 TLB with writeback cache.
  342. config CPU_TLB_V4WBI
  343. bool
  344. help
  345. ARM Architecture Version 4 TLB with writeback cache and invalidate
  346. instruction cache entry.
  347. config CPU_TLB_V6
  348. bool
  349. endif
  350. config CPU_CP15
  351. bool
  352. help
  353. Processor has the CP15 register.
  354. config CPU_CP15_MMU
  355. bool
  356. select CPU_CP15
  357. help
  358. Processor has the CP15 register, which has MMU related registers.
  359. config CPU_CP15_MPU
  360. bool
  361. select CPU_CP15
  362. help
  363. Processor has the CP15 register, which has MPU related registers.
  364. #
  365. # CPU supports 36-bit I/O
  366. #
  367. config IO_36
  368. bool
  369. comment "Processor Features"
  370. config ARM_THUMB
  371. bool "Support Thumb user binaries"
  372. depends on CPU_ARM720T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM1020 || CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || CPU_XSCALE || CPU_XSC3 || CPU_V6
  373. default y
  374. help
  375. Say Y if you want to include kernel support for running user space
  376. Thumb binaries.
  377. The Thumb instruction set is a compressed form of the standard ARM
  378. instruction set resulting in smaller binaries at the expense of
  379. slightly less efficient code.
  380. If you don't know what this all is, saying Y is a safe choice.
  381. config CPU_BIG_ENDIAN
  382. bool "Build big-endian kernel"
  383. depends on ARCH_SUPPORTS_BIG_ENDIAN
  384. help
  385. Say Y if you plan on running a kernel in big-endian mode.
  386. Note that your board must be properly built and your board
  387. port must properly enable any big-endian related features
  388. of your chipset/board/processor.
  389. config CPU_ICACHE_DISABLE
  390. bool "Disable I-Cache (I-bit)"
  391. depends on CPU_CP15 && !(CPU_ARM610 || CPU_ARM710 || CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)
  392. help
  393. Say Y here to disable the processor instruction cache. Unless
  394. you have a reason not to or are unsure, say N.
  395. config CPU_DCACHE_DISABLE
  396. bool "Disable D-Cache (C-bit)"
  397. depends on CPU_CP15
  398. help
  399. Say Y here to disable the processor data cache. Unless
  400. you have a reason not to or are unsure, say N.
  401. config CPU_DCACHE_WRITETHROUGH
  402. bool "Force write through D-cache"
  403. depends on (CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM1020 || CPU_V6) && !CPU_DCACHE_DISABLE
  404. default y if CPU_ARM925T
  405. help
  406. Say Y here to use the data cache in writethrough mode. Unless you
  407. specifically require this or are unsure, say N.
  408. config CPU_CACHE_ROUND_ROBIN
  409. bool "Round robin I and D cache replacement algorithm"
  410. depends on (CPU_ARM926T || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
  411. help
  412. Say Y here to use the predictable round-robin cache replacement
  413. policy. Unless you specifically require this or are unsure, say N.
  414. config CPU_BPREDICT_DISABLE
  415. bool "Disable branch prediction"
  416. depends on CPU_ARM1020 || CPU_V6
  417. help
  418. Say Y here to disable branch prediction. If unsure, say N.
  419. config TLS_REG_EMUL
  420. bool
  421. help
  422. An SMP system using a pre-ARMv6 processor (there are apparently
  423. a few prototypes like that in existence) and therefore access to
  424. that required register must be emulated.
  425. config HAS_TLS_REG
  426. bool
  427. depends on !TLS_REG_EMUL
  428. default y if SMP || CPU_32v7
  429. help
  430. This selects support for the CP15 thread register.
  431. It is defined to be available on some ARMv6 processors (including
  432. all SMP capable ARMv6's) or later processors. User space may
  433. assume directly accessing that register and always obtain the
  434. expected value only on ARMv7 and above.
  435. config NEEDS_SYSCALL_FOR_CMPXCHG
  436. bool
  437. help
  438. SMP on a pre-ARMv6 processor? Well OK then.
  439. Forget about fast user space cmpxchg support.
  440. It is just not possible.