xref: /linux/arch/arm/mm/Kconfig (revision 3bc28c8edc4f5f78d9ec23fb0f20df29b7b3a072)
11da177e4SLinus Torvaldscomment "Processor Type"
21da177e4SLinus Torvalds
31da177e4SLinus Torvalds# Select CPU types depending on the architecture selected.  This selects
41da177e4SLinus Torvalds# which CPUs we support in the kernel image, and the compiler instruction
51da177e4SLinus Torvalds# optimiser behaviour.
61da177e4SLinus Torvalds
71da177e4SLinus Torvalds# ARM610
81da177e4SLinus Torvaldsconfig CPU_ARM610
9c750815eSRussell King	bool "Support ARM610 processor" if ARCH_RPC
101da177e4SLinus Torvalds	select CPU_32v3
111da177e4SLinus Torvalds	select CPU_CACHE_V3
121da177e4SLinus Torvalds	select CPU_CACHE_VIVT
13fefdaa06SHyok S. Choi	select CPU_CP15_MMU
14f9c21a6eSHyok S. Choi	select CPU_COPY_V3 if MMU
15f9c21a6eSHyok S. Choi	select CPU_TLB_V3 if MMU
164fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
171da177e4SLinus Torvalds	help
181da177e4SLinus Torvalds	  The ARM610 is the successor to the ARM3 processor
191da177e4SLinus Torvalds	  and was produced by VLSI Technology Inc.
201da177e4SLinus Torvalds
211da177e4SLinus Torvalds	  Say Y if you want support for the ARM610 processor.
221da177e4SLinus Torvalds	  Otherwise, say N.
231da177e4SLinus Torvalds
2407e0da78SHyok S. Choi# ARM7TDMI
2507e0da78SHyok S. Choiconfig CPU_ARM7TDMI
2607e0da78SHyok S. Choi	bool "Support ARM7TDMI processor"
276b237a35SRussell King	depends on !MMU
2807e0da78SHyok S. Choi	select CPU_32v4T
2907e0da78SHyok S. Choi	select CPU_ABRT_LV4T
304fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
3107e0da78SHyok S. Choi	select CPU_CACHE_V4
3207e0da78SHyok S. Choi	help
3307e0da78SHyok S. Choi	  A 32-bit RISC microprocessor based on the ARM7 processor core
3407e0da78SHyok S. Choi	  which has no memory control unit and cache.
3507e0da78SHyok S. Choi
3607e0da78SHyok S. Choi	  Say Y if you want support for the ARM7TDMI processor.
3707e0da78SHyok S. Choi	  Otherwise, say N.
3807e0da78SHyok S. Choi
391da177e4SLinus Torvalds# ARM710
401da177e4SLinus Torvaldsconfig CPU_ARM710
41c750815eSRussell King	bool "Support ARM710 processor" if ARCH_RPC
421da177e4SLinus Torvalds	select CPU_32v3
431da177e4SLinus Torvalds	select CPU_CACHE_V3
441da177e4SLinus Torvalds	select CPU_CACHE_VIVT
45fefdaa06SHyok S. Choi	select CPU_CP15_MMU
46f9c21a6eSHyok S. Choi	select CPU_COPY_V3 if MMU
47f9c21a6eSHyok S. Choi	select CPU_TLB_V3 if MMU
484fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
491da177e4SLinus Torvalds	help
501da177e4SLinus Torvalds	  A 32-bit RISC microprocessor based on the ARM7 processor core
511da177e4SLinus Torvalds	  designed by Advanced RISC Machines Ltd. The ARM710 is the
521da177e4SLinus Torvalds	  successor to the ARM610 processor. It was released in
531da177e4SLinus Torvalds	  July 1994 by VLSI Technology Inc.
541da177e4SLinus Torvalds
551da177e4SLinus Torvalds	  Say Y if you want support for the ARM710 processor.
561da177e4SLinus Torvalds	  Otherwise, say N.
571da177e4SLinus Torvalds
581da177e4SLinus Torvalds# ARM720T
591da177e4SLinus Torvaldsconfig CPU_ARM720T
60c750815eSRussell King	bool "Support ARM720T processor" if ARCH_INTEGRATOR
61260e98edSLennert Buytenhek	select CPU_32v4T
621da177e4SLinus Torvalds	select CPU_ABRT_LV4T
634fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
641da177e4SLinus Torvalds	select CPU_CACHE_V4
651da177e4SLinus Torvalds	select CPU_CACHE_VIVT
66fefdaa06SHyok S. Choi	select CPU_CP15_MMU
67f9c21a6eSHyok S. Choi	select CPU_COPY_V4WT if MMU
68f9c21a6eSHyok S. Choi	select CPU_TLB_V4WT if MMU
691da177e4SLinus Torvalds	help
701da177e4SLinus Torvalds	  A 32-bit RISC processor with 8kByte Cache, Write Buffer and
711da177e4SLinus Torvalds	  MMU built around an ARM7TDMI core.
721da177e4SLinus Torvalds
731da177e4SLinus Torvalds	  Say Y if you want support for the ARM720T processor.
741da177e4SLinus Torvalds	  Otherwise, say N.
751da177e4SLinus Torvalds
76b731c311SHyok S. Choi# ARM740T
77b731c311SHyok S. Choiconfig CPU_ARM740T
78b731c311SHyok S. Choi	bool "Support ARM740T processor" if ARCH_INTEGRATOR
796b237a35SRussell King	depends on !MMU
80b731c311SHyok S. Choi	select CPU_32v4T
81b731c311SHyok S. Choi	select CPU_ABRT_LV4T
824fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
83b731c311SHyok S. Choi	select CPU_CACHE_V3	# although the core is v4t
84b731c311SHyok S. Choi	select CPU_CP15_MPU
85b731c311SHyok S. Choi	help
86b731c311SHyok S. Choi	  A 32-bit RISC processor with 8KB cache or 4KB variants,
87b731c311SHyok S. Choi	  write buffer and MPU(Protection Unit) built around
88b731c311SHyok S. Choi	  an ARM7TDMI core.
89b731c311SHyok S. Choi
90b731c311SHyok S. Choi	  Say Y if you want support for the ARM740T processor.
91b731c311SHyok S. Choi	  Otherwise, say N.
92b731c311SHyok S. Choi
9343f5f014SHyok S. Choi# ARM9TDMI
9443f5f014SHyok S. Choiconfig CPU_ARM9TDMI
9543f5f014SHyok S. Choi	bool "Support ARM9TDMI processor"
966b237a35SRussell King	depends on !MMU
9743f5f014SHyok S. Choi	select CPU_32v4T
980f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
994fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
10043f5f014SHyok S. Choi	select CPU_CACHE_V4
10143f5f014SHyok S. Choi	help
10243f5f014SHyok S. Choi	  A 32-bit RISC microprocessor based on the ARM9 processor core
10343f5f014SHyok S. Choi	  which has no memory control unit and cache.
10443f5f014SHyok S. Choi
10543f5f014SHyok S. Choi	  Say Y if you want support for the ARM9TDMI processor.
10643f5f014SHyok S. Choi	  Otherwise, say N.
10743f5f014SHyok S. Choi
1081da177e4SLinus Torvalds# ARM920T
1091da177e4SLinus Torvaldsconfig CPU_ARM920T
110c750815eSRussell King	bool "Support ARM920T processor" if ARCH_INTEGRATOR
111260e98edSLennert Buytenhek	select CPU_32v4T
1121da177e4SLinus Torvalds	select CPU_ABRT_EV4T
1134fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
1141da177e4SLinus Torvalds	select CPU_CACHE_V4WT
1151da177e4SLinus Torvalds	select CPU_CACHE_VIVT
116fefdaa06SHyok S. Choi	select CPU_CP15_MMU
117f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
118f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1191da177e4SLinus Torvalds	help
1201da177e4SLinus Torvalds	  The ARM920T is licensed to be produced by numerous vendors,
121c768e676SHartley Sweeten	  and is used in the Cirrus EP93xx and the Samsung S3C2410.
1221da177e4SLinus Torvalds
1231da177e4SLinus Torvalds	  Say Y if you want support for the ARM920T processor.
1241da177e4SLinus Torvalds	  Otherwise, say N.
1251da177e4SLinus Torvalds
1261da177e4SLinus Torvalds# ARM922T
1271da177e4SLinus Torvaldsconfig CPU_ARM922T
1281da177e4SLinus Torvalds	bool "Support ARM922T processor" if ARCH_INTEGRATOR
129260e98edSLennert Buytenhek	select CPU_32v4T
1301da177e4SLinus Torvalds	select CPU_ABRT_EV4T
1314fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
1321da177e4SLinus Torvalds	select CPU_CACHE_V4WT
1331da177e4SLinus Torvalds	select CPU_CACHE_VIVT
134fefdaa06SHyok S. Choi	select CPU_CP15_MMU
135f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
136f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1371da177e4SLinus Torvalds	help
1381da177e4SLinus Torvalds	  The ARM922T is a version of the ARM920T, but with smaller
1391da177e4SLinus Torvalds	  instruction and data caches. It is used in Altera's
140c53c9cf6SAndrew Victor	  Excalibur XA device family and Micrel's KS8695 Centaur.
1411da177e4SLinus Torvalds
1421da177e4SLinus Torvalds	  Say Y if you want support for the ARM922T processor.
1431da177e4SLinus Torvalds	  Otherwise, say N.
1441da177e4SLinus Torvalds
1451da177e4SLinus Torvalds# ARM925T
1461da177e4SLinus Torvaldsconfig CPU_ARM925T
147b288f75fSTony Lindgren 	bool "Support ARM925T processor" if ARCH_OMAP1
148260e98edSLennert Buytenhek	select CPU_32v4T
1491da177e4SLinus Torvalds	select CPU_ABRT_EV4T
1504fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
1511da177e4SLinus Torvalds	select CPU_CACHE_V4WT
1521da177e4SLinus Torvalds	select CPU_CACHE_VIVT
153fefdaa06SHyok S. Choi	select CPU_CP15_MMU
154f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
155f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1561da177e4SLinus Torvalds 	help
1571da177e4SLinus Torvalds 	  The ARM925T is a mix between the ARM920T and ARM926T, but with
1581da177e4SLinus Torvalds	  different instruction and data caches. It is used in TI's OMAP
1591da177e4SLinus Torvalds 	  device family.
1601da177e4SLinus Torvalds
1611da177e4SLinus Torvalds 	  Say Y if you want support for the ARM925T processor.
1621da177e4SLinus Torvalds 	  Otherwise, say N.
1631da177e4SLinus Torvalds
1641da177e4SLinus Torvalds# ARM926T
1651da177e4SLinus Torvaldsconfig CPU_ARM926T
166c750815eSRussell King	bool "Support ARM926T processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB
1671da177e4SLinus Torvalds	select CPU_32v5
1681da177e4SLinus Torvalds	select CPU_ABRT_EV5TJ
1694fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
1701da177e4SLinus Torvalds	select CPU_CACHE_VIVT
171fefdaa06SHyok S. Choi	select CPU_CP15_MMU
172f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
173f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1741da177e4SLinus Torvalds	help
1751da177e4SLinus Torvalds	  This is a variant of the ARM920.  It has slightly different
1761da177e4SLinus Torvalds	  instruction sequences for cache and TLB operations.  Curiously,
1771da177e4SLinus Torvalds	  there is no documentation on it at the ARM corporate website.
1781da177e4SLinus Torvalds
1791da177e4SLinus Torvalds	  Say Y if you want support for the ARM926T processor.
1801da177e4SLinus Torvalds	  Otherwise, say N.
1811da177e4SLinus Torvalds
18228853ac8SPaulius Zaleckas# FA526
18328853ac8SPaulius Zaleckasconfig CPU_FA526
18428853ac8SPaulius Zaleckas	bool
18528853ac8SPaulius Zaleckas	select CPU_32v4
18628853ac8SPaulius Zaleckas	select CPU_ABRT_EV4
1874fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
18828853ac8SPaulius Zaleckas	select CPU_CACHE_VIVT
18928853ac8SPaulius Zaleckas	select CPU_CP15_MMU
19028853ac8SPaulius Zaleckas	select CPU_CACHE_FA
19128853ac8SPaulius Zaleckas	select CPU_COPY_FA if MMU
19228853ac8SPaulius Zaleckas	select CPU_TLB_FA if MMU
19328853ac8SPaulius Zaleckas	help
19428853ac8SPaulius Zaleckas	  The FA526 is a version of the ARMv4 compatible processor with
19528853ac8SPaulius Zaleckas	  Branch Target Buffer, Unified TLB and cache line size 16.
19628853ac8SPaulius Zaleckas
19728853ac8SPaulius Zaleckas	  Say Y if you want support for the FA526 processor.
19828853ac8SPaulius Zaleckas	  Otherwise, say N.
19928853ac8SPaulius Zaleckas
200d60674ebSHyok S. Choi# ARM940T
201d60674ebSHyok S. Choiconfig CPU_ARM940T
202d60674ebSHyok S. Choi	bool "Support ARM940T processor" if ARCH_INTEGRATOR
2036b237a35SRussell King	depends on !MMU
204d60674ebSHyok S. Choi	select CPU_32v4T
2050f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
2064fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
207d60674ebSHyok S. Choi	select CPU_CACHE_VIVT
208d60674ebSHyok S. Choi	select CPU_CP15_MPU
209d60674ebSHyok S. Choi	help
210d60674ebSHyok S. Choi	  ARM940T is a member of the ARM9TDMI family of general-
2113cb2fcccSMatt LaPlante	  purpose microprocessors with MPU and separate 4KB
212d60674ebSHyok S. Choi	  instruction and 4KB data cases, each with a 4-word line
213d60674ebSHyok S. Choi	  length.
214d60674ebSHyok S. Choi
215d60674ebSHyok S. Choi	  Say Y if you want support for the ARM940T processor.
216d60674ebSHyok S. Choi	  Otherwise, say N.
217d60674ebSHyok S. Choi
218f37f46ebSHyok S. Choi# ARM946E-S
219f37f46ebSHyok S. Choiconfig CPU_ARM946E
220f37f46ebSHyok S. Choi	bool "Support ARM946E-S processor" if ARCH_INTEGRATOR
2216b237a35SRussell King	depends on !MMU
222f37f46ebSHyok S. Choi	select CPU_32v5
2230f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
2244fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
225f37f46ebSHyok S. Choi	select CPU_CACHE_VIVT
226f37f46ebSHyok S. Choi	select CPU_CP15_MPU
227f37f46ebSHyok S. Choi	help
228f37f46ebSHyok S. Choi	  ARM946E-S is a member of the ARM9E-S family of high-
229f37f46ebSHyok S. Choi	  performance, 32-bit system-on-chip processor solutions.
230f37f46ebSHyok S. Choi	  The TCM and ARMv5TE 32-bit instruction set is supported.
231f37f46ebSHyok S. Choi
232f37f46ebSHyok S. Choi	  Say Y if you want support for the ARM946E-S processor.
233f37f46ebSHyok S. Choi	  Otherwise, say N.
234f37f46ebSHyok S. Choi
2351da177e4SLinus Torvalds# ARM1020 - needs validating
2361da177e4SLinus Torvaldsconfig CPU_ARM1020
237c750815eSRussell King	bool "Support ARM1020T (rev 0) processor" if ARCH_INTEGRATOR
2381da177e4SLinus Torvalds	select CPU_32v5
2391da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2404fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2411da177e4SLinus Torvalds	select CPU_CACHE_V4WT
2421da177e4SLinus Torvalds	select CPU_CACHE_VIVT
243fefdaa06SHyok S. Choi	select CPU_CP15_MMU
244f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
245f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2461da177e4SLinus Torvalds	help
2471da177e4SLinus Torvalds	  The ARM1020 is the 32K cached version of the ARM10 processor,
2481da177e4SLinus Torvalds	  with an addition of a floating-point unit.
2491da177e4SLinus Torvalds
2501da177e4SLinus Torvalds	  Say Y if you want support for the ARM1020 processor.
2511da177e4SLinus Torvalds	  Otherwise, say N.
2521da177e4SLinus Torvalds
2531da177e4SLinus Torvalds# ARM1020E - needs validating
2541da177e4SLinus Torvaldsconfig CPU_ARM1020E
255c750815eSRussell King	bool "Support ARM1020E processor" if ARCH_INTEGRATOR
2561da177e4SLinus Torvalds	select CPU_32v5
2571da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2584fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2591da177e4SLinus Torvalds	select CPU_CACHE_V4WT
2601da177e4SLinus Torvalds	select CPU_CACHE_VIVT
261fefdaa06SHyok S. Choi	select CPU_CP15_MMU
262f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
263f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2641da177e4SLinus Torvalds	depends on n
2651da177e4SLinus Torvalds
2661da177e4SLinus Torvalds# ARM1022E
2671da177e4SLinus Torvaldsconfig CPU_ARM1022
268c750815eSRussell King	bool "Support ARM1022E processor" if ARCH_INTEGRATOR
2691da177e4SLinus Torvalds	select CPU_32v5
2701da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2714fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2721da177e4SLinus Torvalds	select CPU_CACHE_VIVT
273fefdaa06SHyok S. Choi	select CPU_CP15_MMU
274f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU # can probably do better
275f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2761da177e4SLinus Torvalds	help
2771da177e4SLinus Torvalds	  The ARM1022E is an implementation of the ARMv5TE architecture
2781da177e4SLinus Torvalds	  based upon the ARM10 integer core with a 16KiB L1 Harvard cache,
2791da177e4SLinus Torvalds	  embedded trace macrocell, and a floating-point unit.
2801da177e4SLinus Torvalds
2811da177e4SLinus Torvalds	  Say Y if you want support for the ARM1022E processor.
2821da177e4SLinus Torvalds	  Otherwise, say N.
2831da177e4SLinus Torvalds
2841da177e4SLinus Torvalds# ARM1026EJ-S
2851da177e4SLinus Torvaldsconfig CPU_ARM1026
286c750815eSRussell King	bool "Support ARM1026EJ-S processor" if ARCH_INTEGRATOR
2871da177e4SLinus Torvalds	select CPU_32v5
2881da177e4SLinus Torvalds	select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10
2894fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2901da177e4SLinus Torvalds	select CPU_CACHE_VIVT
291fefdaa06SHyok S. Choi	select CPU_CP15_MMU
292f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU # can probably do better
293f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2941da177e4SLinus Torvalds	help
2951da177e4SLinus Torvalds	  The ARM1026EJ-S is an implementation of the ARMv5TEJ architecture
2961da177e4SLinus Torvalds	  based upon the ARM10 integer core.
2971da177e4SLinus Torvalds
2981da177e4SLinus Torvalds	  Say Y if you want support for the ARM1026EJ-S processor.
2991da177e4SLinus Torvalds	  Otherwise, say N.
3001da177e4SLinus Torvalds
3011da177e4SLinus Torvalds# SA110
3021da177e4SLinus Torvaldsconfig CPU_SA110
303c750815eSRussell King	bool "Support StrongARM(R) SA-110 processor" if ARCH_RPC
3041da177e4SLinus Torvalds	select CPU_32v3 if ARCH_RPC
3051da177e4SLinus Torvalds	select CPU_32v4 if !ARCH_RPC
3061da177e4SLinus Torvalds	select CPU_ABRT_EV4
3074fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
3081da177e4SLinus Torvalds	select CPU_CACHE_V4WB
3091da177e4SLinus Torvalds	select CPU_CACHE_VIVT
310fefdaa06SHyok S. Choi	select CPU_CP15_MMU
311f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
312f9c21a6eSHyok S. Choi	select CPU_TLB_V4WB if MMU
3131da177e4SLinus Torvalds	help
3141da177e4SLinus Torvalds	  The Intel StrongARM(R) SA-110 is a 32-bit microprocessor and
3151da177e4SLinus Torvalds	  is available at five speeds ranging from 100 MHz to 233 MHz.
3161da177e4SLinus Torvalds	  More information is available at
3171da177e4SLinus Torvalds	  <http://developer.intel.com/design/strong/sa110.htm>.
3181da177e4SLinus Torvalds
3191da177e4SLinus Torvalds	  Say Y if you want support for the SA-110 processor.
3201da177e4SLinus Torvalds	  Otherwise, say N.
3211da177e4SLinus Torvalds
3221da177e4SLinus Torvalds# SA1100
3231da177e4SLinus Torvaldsconfig CPU_SA1100
3241da177e4SLinus Torvalds	bool
3251da177e4SLinus Torvalds	select CPU_32v4
3261da177e4SLinus Torvalds	select CPU_ABRT_EV4
3274fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
3281da177e4SLinus Torvalds	select CPU_CACHE_V4WB
3291da177e4SLinus Torvalds	select CPU_CACHE_VIVT
330fefdaa06SHyok S. Choi	select CPU_CP15_MMU
331f9c21a6eSHyok S. Choi	select CPU_TLB_V4WB if MMU
3321da177e4SLinus Torvalds
3331da177e4SLinus Torvalds# XScale
3341da177e4SLinus Torvaldsconfig CPU_XSCALE
3351da177e4SLinus Torvalds	bool
3361da177e4SLinus Torvalds	select CPU_32v5
3371da177e4SLinus Torvalds	select CPU_ABRT_EV5T
3384fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
3391da177e4SLinus Torvalds	select CPU_CACHE_VIVT
340fefdaa06SHyok S. Choi	select CPU_CP15_MMU
341f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
3421da177e4SLinus Torvalds
34323bdf86aSLennert Buytenhek# XScale Core Version 3
34423bdf86aSLennert Buytenhekconfig CPU_XSC3
34523bdf86aSLennert Buytenhek	bool
34623bdf86aSLennert Buytenhek	select CPU_32v5
34723bdf86aSLennert Buytenhek	select CPU_ABRT_EV5T
3484fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
34923bdf86aSLennert Buytenhek	select CPU_CACHE_VIVT
350fefdaa06SHyok S. Choi	select CPU_CP15_MMU
351f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
35223bdf86aSLennert Buytenhek	select IO_36
35323bdf86aSLennert Buytenhek
35449cbe786SEric Miao# Marvell PJ1 (Mohawk)
35549cbe786SEric Miaoconfig CPU_MOHAWK
35649cbe786SEric Miao	bool
35749cbe786SEric Miao	select CPU_32v5
35849cbe786SEric Miao	select CPU_ABRT_EV5T
3594fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
36049cbe786SEric Miao	select CPU_CACHE_VIVT
36149cbe786SEric Miao	select CPU_CP15_MMU
36249cbe786SEric Miao	select CPU_TLB_V4WBI if MMU
36349cbe786SEric Miao	select CPU_COPY_V4WB if MMU
36449cbe786SEric Miao
365e50d6409SAssaf Hoffman# Feroceon
366e50d6409SAssaf Hoffmanconfig CPU_FEROCEON
367e50d6409SAssaf Hoffman	bool
368e50d6409SAssaf Hoffman	select CPU_32v5
369e50d6409SAssaf Hoffman	select CPU_ABRT_EV5T
3704fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
371e50d6409SAssaf Hoffman	select CPU_CACHE_VIVT
372e50d6409SAssaf Hoffman	select CPU_CP15_MMU
3730ed15071SLennert Buytenhek	select CPU_COPY_FEROCEON if MMU
37499c6dc11SLennert Buytenhek	select CPU_TLB_FEROCEON if MMU
375e50d6409SAssaf Hoffman
376d910a0aaSTzachi Perelsteinconfig CPU_FEROCEON_OLD_ID
377d910a0aaSTzachi Perelstein	bool "Accept early Feroceon cores with an ARM926 ID"
378d910a0aaSTzachi Perelstein	depends on CPU_FEROCEON && !CPU_ARM926T
379d910a0aaSTzachi Perelstein	default y
380d910a0aaSTzachi Perelstein	help
381d910a0aaSTzachi Perelstein	  This enables the usage of some old Feroceon cores
382d910a0aaSTzachi Perelstein	  for which the CPU ID is equal to the ARM926 ID.
383d910a0aaSTzachi Perelstein	  Relevant for Feroceon-1850 and early Feroceon-2850.
384d910a0aaSTzachi Perelstein
385a4553358SHaojian Zhuang# Marvell PJ4
386a4553358SHaojian Zhuangconfig CPU_PJ4
387a4553358SHaojian Zhuang	bool
388a4553358SHaojian Zhuang	select CPU_V7
389a4553358SHaojian Zhuang	select ARM_THUMBEE
390a4553358SHaojian Zhuang
3911da177e4SLinus Torvalds# ARMv6
3921da177e4SLinus Torvaldsconfig CPU_V6
393c786282eSRussell King	bool "Support ARM V6 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
3941da177e4SLinus Torvalds	select CPU_32v6
3951da177e4SLinus Torvalds	select CPU_ABRT_EV6
3964fb28474SKirill A. Shutemov	select CPU_PABRT_V6
3971da177e4SLinus Torvalds	select CPU_CACHE_V6
3981da177e4SLinus Torvalds	select CPU_CACHE_VIPT
399fefdaa06SHyok S. Choi	select CPU_CP15_MMU
4007b4c965aSCatalin Marinas	select CPU_HAS_ASID if MMU
401f9c21a6eSHyok S. Choi	select CPU_COPY_V6 if MMU
402f9c21a6eSHyok S. Choi	select CPU_TLB_V6 if MMU
4031da177e4SLinus Torvalds
4044a5f79e7SRussell King# ARMv6k
405e399b1a4SRussell Kingconfig CPU_V6K
406c786282eSRussell King	bool "Support ARM V6K processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
407e399b1a4SRussell King	select CPU_32v6
40860799c6dSRussell King	select CPU_32v6K
409e399b1a4SRussell King	select CPU_ABRT_EV6
410e399b1a4SRussell King	select CPU_PABRT_V6
411e399b1a4SRussell King	select CPU_CACHE_V6
412e399b1a4SRussell King	select CPU_CACHE_VIPT
413e399b1a4SRussell King	select CPU_CP15_MMU
414e399b1a4SRussell King	select CPU_HAS_ASID if MMU
415e399b1a4SRussell King	select CPU_COPY_V6 if MMU
416e399b1a4SRussell King	select CPU_TLB_V6 if MMU
4174a5f79e7SRussell King
41823688e99SCatalin Marinas# ARMv7
41923688e99SCatalin Marinasconfig CPU_V7
4201b504bbeSColin Tuckley	bool "Support ARM V7 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
42160799c6dSRussell King	select CPU_32v6K
42223688e99SCatalin Marinas	select CPU_32v7
42323688e99SCatalin Marinas	select CPU_ABRT_EV7
4244fb28474SKirill A. Shutemov	select CPU_PABRT_V7
42523688e99SCatalin Marinas	select CPU_CACHE_V7
42623688e99SCatalin Marinas	select CPU_CACHE_VIPT
42723688e99SCatalin Marinas	select CPU_CP15_MMU
4282eb8c82bSCatalin Marinas	select CPU_HAS_ASID if MMU
42923688e99SCatalin Marinas	select CPU_COPY_V6 if MMU
4302ccdd1e7SCatalin Marinas	select CPU_TLB_V7 if MMU
43123688e99SCatalin Marinas
4321da177e4SLinus Torvalds# Figure out what processor architecture version we should be using.
4331da177e4SLinus Torvalds# This defines the compiler instruction set which depends on the machine type.
4341da177e4SLinus Torvaldsconfig CPU_32v3
4351da177e4SLinus Torvalds	bool
43660b6cf68SRussell King	select TLS_REG_EMUL if SMP || !MMU
43748fa14f7SRussell King	select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
4388762df4dSRussell King	select CPU_USE_DOMAINS if MMU
4391da177e4SLinus Torvalds
4401da177e4SLinus Torvaldsconfig CPU_32v4
4411da177e4SLinus Torvalds	bool
44260b6cf68SRussell King	select TLS_REG_EMUL if SMP || !MMU
44348fa14f7SRussell King	select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
4448762df4dSRussell King	select CPU_USE_DOMAINS if MMU
4451da177e4SLinus Torvalds
446260e98edSLennert Buytenhekconfig CPU_32v4T
447260e98edSLennert Buytenhek	bool
448260e98edSLennert Buytenhek	select TLS_REG_EMUL if SMP || !MMU
449260e98edSLennert Buytenhek	select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
4508762df4dSRussell King	select CPU_USE_DOMAINS if MMU
451260e98edSLennert Buytenhek
4521da177e4SLinus Torvaldsconfig CPU_32v5
4531da177e4SLinus Torvalds	bool
45460b6cf68SRussell King	select TLS_REG_EMUL if SMP || !MMU
45548fa14f7SRussell King	select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
4568762df4dSRussell King	select CPU_USE_DOMAINS if MMU
4571da177e4SLinus Torvalds
4581da177e4SLinus Torvaldsconfig CPU_32v6
4591da177e4SLinus Torvalds	bool
460367afaf8SCatalin Marinas	select TLS_REG_EMUL if !CPU_32v6K && !MMU
4618762df4dSRussell King	select CPU_USE_DOMAINS if CPU_V6 && MMU
4621da177e4SLinus Torvalds
463e399b1a4SRussell Kingconfig CPU_32v6K
46460799c6dSRussell King	bool
465e399b1a4SRussell King
46623688e99SCatalin Marinasconfig CPU_32v7
46723688e99SCatalin Marinas	bool
46823688e99SCatalin Marinas
4691da177e4SLinus Torvalds# The abort model
4700f45d7f3SHyok S. Choiconfig CPU_ABRT_NOMMU
4710f45d7f3SHyok S. Choi	bool
4720f45d7f3SHyok S. Choi
4731da177e4SLinus Torvaldsconfig CPU_ABRT_EV4
4741da177e4SLinus Torvalds	bool
4751da177e4SLinus Torvalds
4761da177e4SLinus Torvaldsconfig CPU_ABRT_EV4T
4771da177e4SLinus Torvalds	bool
4781da177e4SLinus Torvalds
4791da177e4SLinus Torvaldsconfig CPU_ABRT_LV4T
4801da177e4SLinus Torvalds	bool
4811da177e4SLinus Torvalds
4821da177e4SLinus Torvaldsconfig CPU_ABRT_EV5T
4831da177e4SLinus Torvalds	bool
4841da177e4SLinus Torvalds
4851da177e4SLinus Torvaldsconfig CPU_ABRT_EV5TJ
4861da177e4SLinus Torvalds	bool
4871da177e4SLinus Torvalds
4881da177e4SLinus Torvaldsconfig CPU_ABRT_EV6
4891da177e4SLinus Torvalds	bool
4901da177e4SLinus Torvalds
49123688e99SCatalin Marinasconfig CPU_ABRT_EV7
49223688e99SCatalin Marinas	bool
49323688e99SCatalin Marinas
4944fb28474SKirill A. Shutemovconfig CPU_PABRT_LEGACY
49548d7927bSPaul Brook	bool
49648d7927bSPaul Brook
4974fb28474SKirill A. Shutemovconfig CPU_PABRT_V6
4984fb28474SKirill A. Shutemov	bool
4994fb28474SKirill A. Shutemov
5004fb28474SKirill A. Shutemovconfig CPU_PABRT_V7
50148d7927bSPaul Brook	bool
50248d7927bSPaul Brook
5031da177e4SLinus Torvalds# The cache model
5041da177e4SLinus Torvaldsconfig CPU_CACHE_V3
5051da177e4SLinus Torvalds	bool
5061da177e4SLinus Torvalds
5071da177e4SLinus Torvaldsconfig CPU_CACHE_V4
5081da177e4SLinus Torvalds	bool
5091da177e4SLinus Torvalds
5101da177e4SLinus Torvaldsconfig CPU_CACHE_V4WT
5111da177e4SLinus Torvalds	bool
5121da177e4SLinus Torvalds
5131da177e4SLinus Torvaldsconfig CPU_CACHE_V4WB
5141da177e4SLinus Torvalds	bool
5151da177e4SLinus Torvalds
5161da177e4SLinus Torvaldsconfig CPU_CACHE_V6
5171da177e4SLinus Torvalds	bool
5181da177e4SLinus Torvalds
51923688e99SCatalin Marinasconfig CPU_CACHE_V7
52023688e99SCatalin Marinas	bool
52123688e99SCatalin Marinas
5221da177e4SLinus Torvaldsconfig CPU_CACHE_VIVT
5231da177e4SLinus Torvalds	bool
5241da177e4SLinus Torvalds
5251da177e4SLinus Torvaldsconfig CPU_CACHE_VIPT
5261da177e4SLinus Torvalds	bool
5271da177e4SLinus Torvalds
52828853ac8SPaulius Zaleckasconfig CPU_CACHE_FA
52928853ac8SPaulius Zaleckas	bool
53028853ac8SPaulius Zaleckas
531f9c21a6eSHyok S. Choiif MMU
5321da177e4SLinus Torvalds# The copy-page model
5331da177e4SLinus Torvaldsconfig CPU_COPY_V3
5341da177e4SLinus Torvalds	bool
5351da177e4SLinus Torvalds
5361da177e4SLinus Torvaldsconfig CPU_COPY_V4WT
5371da177e4SLinus Torvalds	bool
5381da177e4SLinus Torvalds
5391da177e4SLinus Torvaldsconfig CPU_COPY_V4WB
5401da177e4SLinus Torvalds	bool
5411da177e4SLinus Torvalds
5420ed15071SLennert Buytenhekconfig CPU_COPY_FEROCEON
5430ed15071SLennert Buytenhek	bool
5440ed15071SLennert Buytenhek
54528853ac8SPaulius Zaleckasconfig CPU_COPY_FA
54628853ac8SPaulius Zaleckas	bool
54728853ac8SPaulius Zaleckas
5481da177e4SLinus Torvaldsconfig CPU_COPY_V6
5491da177e4SLinus Torvalds	bool
5501da177e4SLinus Torvalds
5511da177e4SLinus Torvalds# This selects the TLB model
5521da177e4SLinus Torvaldsconfig CPU_TLB_V3
5531da177e4SLinus Torvalds	bool
5541da177e4SLinus Torvalds	help
5551da177e4SLinus Torvalds	  ARM Architecture Version 3 TLB.
5561da177e4SLinus Torvalds
5571da177e4SLinus Torvaldsconfig CPU_TLB_V4WT
5581da177e4SLinus Torvalds	bool
5591da177e4SLinus Torvalds	help
5601da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writethrough cache.
5611da177e4SLinus Torvalds
5621da177e4SLinus Torvaldsconfig CPU_TLB_V4WB
5631da177e4SLinus Torvalds	bool
5641da177e4SLinus Torvalds	help
5651da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writeback cache.
5661da177e4SLinus Torvalds
5671da177e4SLinus Torvaldsconfig CPU_TLB_V4WBI
5681da177e4SLinus Torvalds	bool
5691da177e4SLinus Torvalds	help
5701da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writeback cache and invalidate
5711da177e4SLinus Torvalds	  instruction cache entry.
5721da177e4SLinus Torvalds
57399c6dc11SLennert Buytenhekconfig CPU_TLB_FEROCEON
57499c6dc11SLennert Buytenhek	bool
57599c6dc11SLennert Buytenhek	help
57699c6dc11SLennert Buytenhek	  Feroceon TLB (v4wbi with non-outer-cachable page table walks).
57799c6dc11SLennert Buytenhek
57828853ac8SPaulius Zaleckasconfig CPU_TLB_FA
57928853ac8SPaulius Zaleckas	bool
58028853ac8SPaulius Zaleckas	help
58128853ac8SPaulius Zaleckas	  Faraday ARM FA526 architecture, unified TLB with writeback cache
58228853ac8SPaulius Zaleckas	  and invalidate instruction cache entry. Branch target buffer is
58328853ac8SPaulius Zaleckas	  also supported.
58428853ac8SPaulius Zaleckas
5851da177e4SLinus Torvaldsconfig CPU_TLB_V6
5861da177e4SLinus Torvalds	bool
5871da177e4SLinus Torvalds
5882ccdd1e7SCatalin Marinasconfig CPU_TLB_V7
5892ccdd1e7SCatalin Marinas	bool
5902ccdd1e7SCatalin Marinas
591e220ba60SDave Estesconfig VERIFY_PERMISSION_FAULT
592e220ba60SDave Estes	bool
593f9c21a6eSHyok S. Choiendif
594f9c21a6eSHyok S. Choi
595516793c6SRussell Kingconfig CPU_HAS_ASID
596516793c6SRussell King	bool
597516793c6SRussell King	help
598516793c6SRussell King	  This indicates whether the CPU has the ASID register; used to
599516793c6SRussell King	  tag TLB and possibly cache entries.
600516793c6SRussell King
601fefdaa06SHyok S. Choiconfig CPU_CP15
602fefdaa06SHyok S. Choi	bool
603fefdaa06SHyok S. Choi	help
604fefdaa06SHyok S. Choi	  Processor has the CP15 register.
605fefdaa06SHyok S. Choi
606fefdaa06SHyok S. Choiconfig CPU_CP15_MMU
607fefdaa06SHyok S. Choi	bool
608fefdaa06SHyok S. Choi	select CPU_CP15
609fefdaa06SHyok S. Choi	help
610fefdaa06SHyok S. Choi	  Processor has the CP15 register, which has MMU related registers.
611fefdaa06SHyok S. Choi
612fefdaa06SHyok S. Choiconfig CPU_CP15_MPU
613fefdaa06SHyok S. Choi	bool
614fefdaa06SHyok S. Choi	select CPU_CP15
615fefdaa06SHyok S. Choi	help
616fefdaa06SHyok S. Choi	  Processor has the CP15 register, which has MPU related registers.
617fefdaa06SHyok S. Choi
618247055aaSCatalin Marinasconfig CPU_USE_DOMAINS
619247055aaSCatalin Marinas	bool
620247055aaSCatalin Marinas	help
621247055aaSCatalin Marinas	  This option enables or disables the use of domain switching
622247055aaSCatalin Marinas	  via the set_fs() function.
623247055aaSCatalin Marinas
62423bdf86aSLennert Buytenhek#
62523bdf86aSLennert Buytenhek# CPU supports 36-bit I/O
62623bdf86aSLennert Buytenhek#
62723bdf86aSLennert Buytenhekconfig IO_36
62823bdf86aSLennert Buytenhek	bool
62923bdf86aSLennert Buytenhek
6301da177e4SLinus Torvaldscomment "Processor Features"
6311da177e4SLinus Torvalds
6321da177e4SLinus Torvaldsconfig ARM_THUMB
6331da177e4SLinus Torvalds	bool "Support Thumb user binaries"
634e399b1a4SRussell King	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
6351da177e4SLinus Torvalds	default y
6361da177e4SLinus Torvalds	help
6371da177e4SLinus Torvalds	  Say Y if you want to include kernel support for running user space
6381da177e4SLinus Torvalds	  Thumb binaries.
6391da177e4SLinus Torvalds
6401da177e4SLinus Torvalds	  The Thumb instruction set is a compressed form of the standard ARM
6411da177e4SLinus Torvalds	  instruction set resulting in smaller binaries at the expense of
6421da177e4SLinus Torvalds	  slightly less efficient code.
6431da177e4SLinus Torvalds
6441da177e4SLinus Torvalds	  If you don't know what this all is, saying Y is a safe choice.
6451da177e4SLinus Torvalds
646d7f864beSCatalin Marinasconfig ARM_THUMBEE
647d7f864beSCatalin Marinas	bool "Enable ThumbEE CPU extension"
648d7f864beSCatalin Marinas	depends on CPU_V7
649d7f864beSCatalin Marinas	help
650d7f864beSCatalin Marinas	  Say Y here if you have a CPU with the ThumbEE extension and code to
651d7f864beSCatalin Marinas	  make use of it. Say N for code that can run on CPUs without ThumbEE.
652d7f864beSCatalin Marinas
65364d2dc38SLeif Lindholmconfig SWP_EMULATE
65464d2dc38SLeif Lindholm	bool "Emulate SWP/SWPB instructions"
655581388c1SRussell King	depends on CPU_V7
65664d2dc38SLeif Lindholm	select HAVE_PROC_CPU if PROC_FS
65764d2dc38SLeif Lindholm	default y if SMP
65864d2dc38SLeif Lindholm	help
65964d2dc38SLeif Lindholm	  ARMv6 architecture deprecates use of the SWP/SWPB instructions.
66064d2dc38SLeif Lindholm	  ARMv7 multiprocessing extensions introduce the ability to disable
66164d2dc38SLeif Lindholm	  these instructions, triggering an undefined instruction exception
66264d2dc38SLeif Lindholm	  when executed. Say Y here to enable software emulation of these
66364d2dc38SLeif Lindholm	  instructions for userspace (not kernel) using LDREX/STREX.
66464d2dc38SLeif Lindholm	  Also creates /proc/cpu/swp_emulation for statistics.
66564d2dc38SLeif Lindholm
66664d2dc38SLeif Lindholm	  In some older versions of glibc [<=2.8] SWP is used during futex
66764d2dc38SLeif Lindholm	  trylock() operations with the assumption that the code will not
66864d2dc38SLeif Lindholm	  be preempted. This invalid assumption may be more likely to fail
66964d2dc38SLeif Lindholm	  with SWP emulation enabled, leading to deadlock of the user
67064d2dc38SLeif Lindholm	  application.
67164d2dc38SLeif Lindholm
67264d2dc38SLeif Lindholm	  NOTE: when accessing uncached shared regions, LDREX/STREX rely
67364d2dc38SLeif Lindholm	  on an external transaction monitoring block called a global
67464d2dc38SLeif Lindholm	  monitor to maintain update atomicity. If your system does not
67564d2dc38SLeif Lindholm	  implement a global monitor, this option can cause programs that
67664d2dc38SLeif Lindholm	  perform SWP operations to uncached memory to deadlock.
67764d2dc38SLeif Lindholm
67864d2dc38SLeif Lindholm	  If unsure, say Y.
67964d2dc38SLeif Lindholm
6801da177e4SLinus Torvaldsconfig CPU_BIG_ENDIAN
6811da177e4SLinus Torvalds	bool "Build big-endian kernel"
6821da177e4SLinus Torvalds	depends on ARCH_SUPPORTS_BIG_ENDIAN
6831da177e4SLinus Torvalds	help
6841da177e4SLinus Torvalds	  Say Y if you plan on running a kernel in big-endian mode.
6851da177e4SLinus Torvalds	  Note that your board must be properly built and your board
6861da177e4SLinus Torvalds	  port must properly enable any big-endian related features
6871da177e4SLinus Torvalds	  of your chipset/board/processor.
6881da177e4SLinus Torvalds
68926584853SCatalin Marinasconfig CPU_ENDIAN_BE8
69026584853SCatalin Marinas	bool
69126584853SCatalin Marinas	depends on CPU_BIG_ENDIAN
692e399b1a4SRussell King	default CPU_V6 || CPU_V6K || CPU_V7
69326584853SCatalin Marinas	help
69426584853SCatalin Marinas	  Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
69526584853SCatalin Marinas
69626584853SCatalin Marinasconfig CPU_ENDIAN_BE32
69726584853SCatalin Marinas	bool
69826584853SCatalin Marinas	depends on CPU_BIG_ENDIAN
69926584853SCatalin Marinas	default !CPU_ENDIAN_BE8
70026584853SCatalin Marinas	help
70126584853SCatalin Marinas	  Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
70226584853SCatalin Marinas
7036afd6faeSHyok S. Choiconfig CPU_HIGH_VECTOR
7046340aa61SRobert P. J. Day	depends on !MMU && CPU_CP15 && !CPU_ARM740T
7056afd6faeSHyok S. Choi	bool "Select the High exception vector"
7066afd6faeSHyok S. Choi	help
7076afd6faeSHyok S. Choi	  Say Y here to select high exception vector(0xFFFF0000~).
7086afd6faeSHyok S. Choi	  The exception vector can be vary depending on the platform
7096afd6faeSHyok S. Choi	  design in nommu mode. If your platform needs to select
7106afd6faeSHyok S. Choi	  high exception vector, say Y.
7116afd6faeSHyok S. Choi	  Otherwise or if you are unsure, say N, and the low exception
7126afd6faeSHyok S. Choi	  vector (0x00000000~) will be used.
7136afd6faeSHyok S. Choi
7141da177e4SLinus Torvaldsconfig CPU_ICACHE_DISABLE
715f12d0d7cSHyok S. Choi	bool "Disable I-Cache (I-bit)"
716f12d0d7cSHyok S. Choi	depends on CPU_CP15 && !(CPU_ARM610 || CPU_ARM710 || CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)
7171da177e4SLinus Torvalds	help
7181da177e4SLinus Torvalds	  Say Y here to disable the processor instruction cache. Unless
7191da177e4SLinus Torvalds	  you have a reason not to or are unsure, say N.
7201da177e4SLinus Torvalds
7211da177e4SLinus Torvaldsconfig CPU_DCACHE_DISABLE
722f12d0d7cSHyok S. Choi	bool "Disable D-Cache (C-bit)"
723f12d0d7cSHyok S. Choi	depends on CPU_CP15
7241da177e4SLinus Torvalds	help
7251da177e4SLinus Torvalds	  Say Y here to disable the processor data cache. Unless
7261da177e4SLinus Torvalds	  you have a reason not to or are unsure, say N.
7271da177e4SLinus Torvalds
728f37f46ebSHyok S. Choiconfig CPU_DCACHE_SIZE
729f37f46ebSHyok S. Choi	hex
730f37f46ebSHyok S. Choi	depends on CPU_ARM740T || CPU_ARM946E
731f37f46ebSHyok S. Choi	default 0x00001000 if CPU_ARM740T
732f37f46ebSHyok S. Choi	default 0x00002000 # default size for ARM946E-S
733f37f46ebSHyok S. Choi	help
734f37f46ebSHyok S. Choi	  Some cores are synthesizable to have various sized cache. For
735f37f46ebSHyok S. Choi	  ARM946E-S case, it can vary from 0KB to 1MB.
736f37f46ebSHyok S. Choi	  To support such cache operations, it is efficient to know the size
737f37f46ebSHyok S. Choi	  before compile time.
738f37f46ebSHyok S. Choi	  If your SoC is configured to have a different size, define the value
739f37f46ebSHyok S. Choi	  here with proper conditions.
740f37f46ebSHyok S. Choi
7411da177e4SLinus Torvaldsconfig CPU_DCACHE_WRITETHROUGH
7421da177e4SLinus Torvalds	bool "Force write through D-cache"
74328853ac8SPaulius Zaleckas	depends on (CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_FA526) && !CPU_DCACHE_DISABLE
7441da177e4SLinus Torvalds	default y if CPU_ARM925T
7451da177e4SLinus Torvalds	help
7461da177e4SLinus Torvalds	  Say Y here to use the data cache in writethrough mode. Unless you
7471da177e4SLinus Torvalds	  specifically require this or are unsure, say N.
7481da177e4SLinus Torvalds
7491da177e4SLinus Torvaldsconfig CPU_CACHE_ROUND_ROBIN
7501da177e4SLinus Torvalds	bool "Round robin I and D cache replacement algorithm"
751f37f46ebSHyok S. Choi	depends on (CPU_ARM926T || CPU_ARM946E || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
7521da177e4SLinus Torvalds	help
7531da177e4SLinus Torvalds	  Say Y here to use the predictable round-robin cache replacement
7541da177e4SLinus Torvalds	  policy.  Unless you specifically require this or are unsure, say N.
7551da177e4SLinus Torvalds
7561da177e4SLinus Torvaldsconfig CPU_BPREDICT_DISABLE
7571da177e4SLinus Torvalds	bool "Disable branch prediction"
758e399b1a4SRussell King	depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526
7591da177e4SLinus Torvalds	help
7601da177e4SLinus Torvalds	  Say Y here to disable branch prediction.  If unsure, say N.
7612d2669b6SNicolas Pitre
7624b0e07a5SNicolas Pitreconfig TLS_REG_EMUL
7634b0e07a5SNicolas Pitre	bool
7644b0e07a5SNicolas Pitre	help
76570489c88SNicolas Pitre	  An SMP system using a pre-ARMv6 processor (there are apparently
76670489c88SNicolas Pitre	  a few prototypes like that in existence) and therefore access to
76770489c88SNicolas Pitre	  that required register must be emulated.
7684b0e07a5SNicolas Pitre
769dcef1f63SNicolas Pitreconfig NEEDS_SYSCALL_FOR_CMPXCHG
770dcef1f63SNicolas Pitre	bool
771dcef1f63SNicolas Pitre	help
772dcef1f63SNicolas Pitre	  SMP on a pre-ARMv6 processor?  Well OK then.
773dcef1f63SNicolas Pitre	  Forget about fast user space cmpxchg support.
774dcef1f63SNicolas Pitre	  It is just not possible.
775dcef1f63SNicolas Pitre
776ad642d9fSCatalin Marinasconfig DMA_CACHE_RWFO
777ad642d9fSCatalin Marinas	bool "Enable read/write for ownership DMA cache maintenance"
778*3bc28c8eSRussell King	depends on CPU_V6K && SMP
779ad642d9fSCatalin Marinas	default y
780ad642d9fSCatalin Marinas	help
781ad642d9fSCatalin Marinas	  The Snoop Control Unit on ARM11MPCore does not detect the
782ad642d9fSCatalin Marinas	  cache maintenance operations and the dma_{map,unmap}_area()
783ad642d9fSCatalin Marinas	  functions may leave stale cache entries on other CPUs. By
784ad642d9fSCatalin Marinas	  enabling this option, Read or Write For Ownership in the ARMv6
785ad642d9fSCatalin Marinas	  DMA cache maintenance functions is performed. These LDR/STR
786ad642d9fSCatalin Marinas	  instructions change the cache line state to shared or modified
787ad642d9fSCatalin Marinas	  so that the cache operation has the desired effect.
788ad642d9fSCatalin Marinas
789ad642d9fSCatalin Marinas	  Note that the workaround is only valid on processors that do
790ad642d9fSCatalin Marinas	  not perform speculative loads into the D-cache. For such
791ad642d9fSCatalin Marinas	  processors, if cache maintenance operations are not broadcast
792ad642d9fSCatalin Marinas	  in hardware, other workarounds are needed (e.g. cache
793ad642d9fSCatalin Marinas	  maintenance broadcasting in software via FIQ).
794ad642d9fSCatalin Marinas
795953233dcSCatalin Marinasconfig OUTER_CACHE
796953233dcSCatalin Marinas	bool
797382266adSCatalin Marinas
798319f551aSCatalin Marinasconfig OUTER_CACHE_SYNC
799319f551aSCatalin Marinas	bool
800319f551aSCatalin Marinas	help
801319f551aSCatalin Marinas	  The outer cache has a outer_cache_fns.sync function pointer
802319f551aSCatalin Marinas	  that can be used to drain the write buffer of the outer cache.
803319f551aSCatalin Marinas
80499c6dc11SLennert Buytenhekconfig CACHE_FEROCEON_L2
80599c6dc11SLennert Buytenhek	bool "Enable the Feroceon L2 cache controller"
806794d15b2SStanislav Samsonov	depends on ARCH_KIRKWOOD || ARCH_MV78XX0
80799c6dc11SLennert Buytenhek	default y
808382266adSCatalin Marinas	select OUTER_CACHE
80999c6dc11SLennert Buytenhek	help
81099c6dc11SLennert Buytenhek	  This option enables the Feroceon L2 cache controller.
81199c6dc11SLennert Buytenhek
8124360bb41SRonen Shitritconfig CACHE_FEROCEON_L2_WRITETHROUGH
8134360bb41SRonen Shitrit	bool "Force Feroceon L2 cache write through"
8144360bb41SRonen Shitrit	depends on CACHE_FEROCEON_L2
8154360bb41SRonen Shitrit	help
8164360bb41SRonen Shitrit	  Say Y here to use the Feroceon L2 cache in writethrough mode.
8174360bb41SRonen Shitrit	  Unless you specifically require this, say N for writeback mode.
8184360bb41SRonen Shitrit
8191da177e4SLinus Torvaldsconfig CACHE_L2X0
820ba927951SCatalin Marinas	bool "Enable the L2x0 outer cache controller"
821cb88214dSSascha Hauer	depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \
8228e797a7eSSrinidhi Kasagar		   REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || \
8230b019a41SRussell King		   ARCH_NOMADIK || ARCH_OMAP4 || ARCH_S5PV310 || ARCH_TEGRA || \
8246d9598e2SMagnus Damm		   ARCH_U8500 || ARCH_VEXPRESS_CA9X4 || ARCH_SHMOBILE
825ba927951SCatalin Marinas	default y
8261da177e4SLinus Torvalds	select OUTER_CACHE
82723107c54SCatalin Marinas	select OUTER_CACHE_SYNC
828ba927951SCatalin Marinas	help
829ba927951SCatalin Marinas	  This option enables the L2x0 PrimeCell.
830905a09d5SEric Miao
8319a6655e4SCatalin Marinasconfig CACHE_PL310
8329a6655e4SCatalin Marinas	bool
8339a6655e4SCatalin Marinas	depends on CACHE_L2X0
834e399b1a4SRussell King	default y if CPU_V7 && !(CPU_V6 || CPU_V6K)
8359a6655e4SCatalin Marinas	help
8369a6655e4SCatalin Marinas	  This option enables optimisations for the PL310 cache
8379a6655e4SCatalin Marinas	  controller.
8389a6655e4SCatalin Marinas
839573a652fSLennert Buytenhekconfig CACHE_TAUROS2
840573a652fSLennert Buytenhek	bool "Enable the Tauros2 L2 cache controller"
8413f408fa0SHaojian Zhuang	depends on (ARCH_DOVE || ARCH_MMP || CPU_PJ4)
842573a652fSLennert Buytenhek	default y
843573a652fSLennert Buytenhek	select OUTER_CACHE
844573a652fSLennert Buytenhek	help
845573a652fSLennert Buytenhek	  This option enables the Tauros2 L2 cache controller (as
846573a652fSLennert Buytenhek	  found on PJ1/PJ4).
847573a652fSLennert Buytenhek
848905a09d5SEric Miaoconfig CACHE_XSC3L2
849905a09d5SEric Miao	bool "Enable the L2 cache on XScale3"
850905a09d5SEric Miao	depends on CPU_XSC3
851905a09d5SEric Miao	default y
852905a09d5SEric Miao	select OUTER_CACHE
853905a09d5SEric Miao	help
854905a09d5SEric Miao	  This option enables the L2 cache on XScale3.
855910a17e5SKirill A. Shutemov
856910a17e5SKirill A. Shutemovconfig ARM_L1_CACHE_SHIFT
857910a17e5SKirill A. Shutemov	int
858d6d502faSKukjin Kim	default 6 if ARM_L1_CACHE_SHIFT_6
859910a17e5SKirill A. Shutemov	default 5
86047ab0deeSRussell King
86147ab0deeSRussell Kingconfig ARM_DMA_MEM_BUFFERABLE
862e399b1a4SRussell King	bool "Use non-cacheable memory for DMA" if (CPU_V6 || CPU_V6K) && !CPU_V7
86342c4dafeSCatalin Marinas	depends on !(MACH_REALVIEW_PB1176 || REALVIEW_EB_ARM11MP || \
86442c4dafeSCatalin Marinas		     MACH_REALVIEW_PB11MP)
865e399b1a4SRussell King	default y if CPU_V6 || CPU_V6K || CPU_V7
86647ab0deeSRussell King	help
86747ab0deeSRussell King	  Historically, the kernel has used strongly ordered mappings to
86847ab0deeSRussell King	  provide DMA coherent memory.  With the advent of ARMv7, mapping
86947ab0deeSRussell King	  memory with differing types results in unpredictable behaviour,
87047ab0deeSRussell King	  so on these CPUs, this option is forced on.
87147ab0deeSRussell King
87247ab0deeSRussell King	  Multiple mappings with differing attributes is also unpredictable
87347ab0deeSRussell King	  on ARMv6 CPUs, but since they do not have aggressive speculative
87447ab0deeSRussell King	  prefetch, no harm appears to occur.
87547ab0deeSRussell King
87647ab0deeSRussell King	  However, drivers may be missing the necessary barriers for ARMv6,
87747ab0deeSRussell King	  and therefore turning this on may result in unpredictable driver
87847ab0deeSRussell King	  behaviour.  Therefore, we offer this as an option.
87947ab0deeSRussell King
88047ab0deeSRussell King	  You are recommended say 'Y' here and debug any affected drivers.
881ac1d426eSRussell King
882e7c5650fSCatalin Marinasconfig ARCH_HAS_BARRIERS
883e7c5650fSCatalin Marinas	bool
884e7c5650fSCatalin Marinas	help
885e7c5650fSCatalin Marinas	  This option allows the use of custom mandatory barriers
886e7c5650fSCatalin Marinas	  included via the mach/barriers.h file.
887