xref: /linux/arch/arm/mm/Kconfig (revision 357c9c1f07d4546bc3fbc0fd1044d96b114d14ed)
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
707e0da78SHyok S. Choi# ARM7TDMI
807e0da78SHyok S. Choiconfig CPU_ARM7TDMI
907e0da78SHyok S. Choi	bool "Support ARM7TDMI processor"
106b237a35SRussell King	depends on !MMU
1107e0da78SHyok S. Choi	select CPU_32v4T
1207e0da78SHyok S. Choi	select CPU_ABRT_LV4T
134fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
1407e0da78SHyok S. Choi	select CPU_CACHE_V4
1507e0da78SHyok S. Choi	help
1607e0da78SHyok S. Choi	  A 32-bit RISC microprocessor based on the ARM7 processor core
1707e0da78SHyok S. Choi	  which has no memory control unit and cache.
1807e0da78SHyok S. Choi
1907e0da78SHyok S. Choi	  Say Y if you want support for the ARM7TDMI processor.
2007e0da78SHyok S. Choi	  Otherwise, say N.
2107e0da78SHyok S. Choi
221da177e4SLinus Torvalds# ARM720T
231da177e4SLinus Torvaldsconfig CPU_ARM720T
24c750815eSRussell King	bool "Support ARM720T processor" if ARCH_INTEGRATOR
25260e98edSLennert Buytenhek	select CPU_32v4T
261da177e4SLinus Torvalds	select CPU_ABRT_LV4T
274fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
281da177e4SLinus Torvalds	select CPU_CACHE_V4
291da177e4SLinus Torvalds	select CPU_CACHE_VIVT
30fefdaa06SHyok S. Choi	select CPU_CP15_MMU
31f9c21a6eSHyok S. Choi	select CPU_COPY_V4WT if MMU
32f9c21a6eSHyok S. Choi	select CPU_TLB_V4WT if MMU
331da177e4SLinus Torvalds	help
341da177e4SLinus Torvalds	  A 32-bit RISC processor with 8kByte Cache, Write Buffer and
351da177e4SLinus Torvalds	  MMU built around an ARM7TDMI core.
361da177e4SLinus Torvalds
371da177e4SLinus Torvalds	  Say Y if you want support for the ARM720T processor.
381da177e4SLinus Torvalds	  Otherwise, say N.
391da177e4SLinus Torvalds
40b731c311SHyok S. Choi# ARM740T
41b731c311SHyok S. Choiconfig CPU_ARM740T
42b731c311SHyok S. Choi	bool "Support ARM740T processor" if ARCH_INTEGRATOR
436b237a35SRussell King	depends on !MMU
44b731c311SHyok S. Choi	select CPU_32v4T
45b731c311SHyok S. Choi	select CPU_ABRT_LV4T
464fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
47b731c311SHyok S. Choi	select CPU_CACHE_V3	# although the core is v4t
48b731c311SHyok S. Choi	select CPU_CP15_MPU
49b731c311SHyok S. Choi	help
50b731c311SHyok S. Choi	  A 32-bit RISC processor with 8KB cache or 4KB variants,
51b731c311SHyok S. Choi	  write buffer and MPU(Protection Unit) built around
52b731c311SHyok S. Choi	  an ARM7TDMI core.
53b731c311SHyok S. Choi
54b731c311SHyok S. Choi	  Say Y if you want support for the ARM740T processor.
55b731c311SHyok S. Choi	  Otherwise, say N.
56b731c311SHyok S. Choi
5743f5f014SHyok S. Choi# ARM9TDMI
5843f5f014SHyok S. Choiconfig CPU_ARM9TDMI
5943f5f014SHyok S. Choi	bool "Support ARM9TDMI processor"
606b237a35SRussell King	depends on !MMU
6143f5f014SHyok S. Choi	select CPU_32v4T
620f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
634fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
6443f5f014SHyok S. Choi	select CPU_CACHE_V4
6543f5f014SHyok S. Choi	help
6643f5f014SHyok S. Choi	  A 32-bit RISC microprocessor based on the ARM9 processor core
6743f5f014SHyok S. Choi	  which has no memory control unit and cache.
6843f5f014SHyok S. Choi
6943f5f014SHyok S. Choi	  Say Y if you want support for the ARM9TDMI processor.
7043f5f014SHyok S. Choi	  Otherwise, say N.
7143f5f014SHyok S. Choi
721da177e4SLinus Torvalds# ARM920T
731da177e4SLinus Torvaldsconfig CPU_ARM920T
74c750815eSRussell King	bool "Support ARM920T processor" if ARCH_INTEGRATOR
75260e98edSLennert Buytenhek	select CPU_32v4T
761da177e4SLinus Torvalds	select CPU_ABRT_EV4T
774fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
781da177e4SLinus Torvalds	select CPU_CACHE_V4WT
791da177e4SLinus Torvalds	select CPU_CACHE_VIVT
80fefdaa06SHyok S. Choi	select CPU_CP15_MMU
81f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
82f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
831da177e4SLinus Torvalds	help
841da177e4SLinus Torvalds	  The ARM920T is licensed to be produced by numerous vendors,
85c768e676SHartley Sweeten	  and is used in the Cirrus EP93xx and the Samsung S3C2410.
861da177e4SLinus Torvalds
871da177e4SLinus Torvalds	  Say Y if you want support for the ARM920T processor.
881da177e4SLinus Torvalds	  Otherwise, say N.
891da177e4SLinus Torvalds
901da177e4SLinus Torvalds# ARM922T
911da177e4SLinus Torvaldsconfig CPU_ARM922T
921da177e4SLinus Torvalds	bool "Support ARM922T processor" if ARCH_INTEGRATOR
93260e98edSLennert Buytenhek	select CPU_32v4T
941da177e4SLinus Torvalds	select CPU_ABRT_EV4T
954fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
961da177e4SLinus Torvalds	select CPU_CACHE_V4WT
971da177e4SLinus Torvalds	select CPU_CACHE_VIVT
98fefdaa06SHyok S. Choi	select CPU_CP15_MMU
99f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
100f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1011da177e4SLinus Torvalds	help
1021da177e4SLinus Torvalds	  The ARM922T is a version of the ARM920T, but with smaller
1031da177e4SLinus Torvalds	  instruction and data caches. It is used in Altera's
104c53c9cf6SAndrew Victor	  Excalibur XA device family and Micrel's KS8695 Centaur.
1051da177e4SLinus Torvalds
1061da177e4SLinus Torvalds	  Say Y if you want support for the ARM922T processor.
1071da177e4SLinus Torvalds	  Otherwise, say N.
1081da177e4SLinus Torvalds
1091da177e4SLinus Torvalds# ARM925T
1101da177e4SLinus Torvaldsconfig CPU_ARM925T
111b288f75fSTony Lindgren 	bool "Support ARM925T processor" if ARCH_OMAP1
112260e98edSLennert Buytenhek	select CPU_32v4T
1131da177e4SLinus Torvalds	select CPU_ABRT_EV4T
1144fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
1151da177e4SLinus Torvalds	select CPU_CACHE_V4WT
1161da177e4SLinus Torvalds	select CPU_CACHE_VIVT
117fefdaa06SHyok S. Choi	select CPU_CP15_MMU
118f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
119f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1201da177e4SLinus Torvalds 	help
1211da177e4SLinus Torvalds 	  The ARM925T is a mix between the ARM920T and ARM926T, but with
1221da177e4SLinus Torvalds	  different instruction and data caches. It is used in TI's OMAP
1231da177e4SLinus Torvalds 	  device family.
1241da177e4SLinus Torvalds
1251da177e4SLinus Torvalds 	  Say Y if you want support for the ARM925T processor.
1261da177e4SLinus Torvalds 	  Otherwise, say N.
1271da177e4SLinus Torvalds
1281da177e4SLinus Torvalds# ARM926T
1291da177e4SLinus Torvaldsconfig CPU_ARM926T
130c750815eSRussell King	bool "Support ARM926T processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB
1311da177e4SLinus Torvalds	select CPU_32v5
1321da177e4SLinus Torvalds	select CPU_ABRT_EV5TJ
1334fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
1341da177e4SLinus Torvalds	select CPU_CACHE_VIVT
135fefdaa06SHyok S. Choi	select CPU_CP15_MMU
136f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
137f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1381da177e4SLinus Torvalds	help
1391da177e4SLinus Torvalds	  This is a variant of the ARM920.  It has slightly different
1401da177e4SLinus Torvalds	  instruction sequences for cache and TLB operations.  Curiously,
1411da177e4SLinus Torvalds	  there is no documentation on it at the ARM corporate website.
1421da177e4SLinus Torvalds
1431da177e4SLinus Torvalds	  Say Y if you want support for the ARM926T processor.
1441da177e4SLinus Torvalds	  Otherwise, say N.
1451da177e4SLinus Torvalds
14628853ac8SPaulius Zaleckas# FA526
14728853ac8SPaulius Zaleckasconfig CPU_FA526
14828853ac8SPaulius Zaleckas	bool
14928853ac8SPaulius Zaleckas	select CPU_32v4
15028853ac8SPaulius Zaleckas	select CPU_ABRT_EV4
1514fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
15228853ac8SPaulius Zaleckas	select CPU_CACHE_VIVT
15328853ac8SPaulius Zaleckas	select CPU_CP15_MMU
15428853ac8SPaulius Zaleckas	select CPU_CACHE_FA
15528853ac8SPaulius Zaleckas	select CPU_COPY_FA if MMU
15628853ac8SPaulius Zaleckas	select CPU_TLB_FA if MMU
15728853ac8SPaulius Zaleckas	help
15828853ac8SPaulius Zaleckas	  The FA526 is a version of the ARMv4 compatible processor with
15928853ac8SPaulius Zaleckas	  Branch Target Buffer, Unified TLB and cache line size 16.
16028853ac8SPaulius Zaleckas
16128853ac8SPaulius Zaleckas	  Say Y if you want support for the FA526 processor.
16228853ac8SPaulius Zaleckas	  Otherwise, say N.
16328853ac8SPaulius Zaleckas
164d60674ebSHyok S. Choi# ARM940T
165d60674ebSHyok S. Choiconfig CPU_ARM940T
166d60674ebSHyok S. Choi	bool "Support ARM940T processor" if ARCH_INTEGRATOR
1676b237a35SRussell King	depends on !MMU
168d60674ebSHyok S. Choi	select CPU_32v4T
1690f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
1704fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
171d60674ebSHyok S. Choi	select CPU_CACHE_VIVT
172d60674ebSHyok S. Choi	select CPU_CP15_MPU
173d60674ebSHyok S. Choi	help
174d60674ebSHyok S. Choi	  ARM940T is a member of the ARM9TDMI family of general-
1753cb2fcccSMatt LaPlante	  purpose microprocessors with MPU and separate 4KB
176d60674ebSHyok S. Choi	  instruction and 4KB data cases, each with a 4-word line
177d60674ebSHyok S. Choi	  length.
178d60674ebSHyok S. Choi
179d60674ebSHyok S. Choi	  Say Y if you want support for the ARM940T processor.
180d60674ebSHyok S. Choi	  Otherwise, say N.
181d60674ebSHyok S. Choi
182f37f46ebSHyok S. Choi# ARM946E-S
183f37f46ebSHyok S. Choiconfig CPU_ARM946E
184f37f46ebSHyok S. Choi	bool "Support ARM946E-S processor" if ARCH_INTEGRATOR
1856b237a35SRussell King	depends on !MMU
186f37f46ebSHyok S. Choi	select CPU_32v5
1870f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
1884fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
189f37f46ebSHyok S. Choi	select CPU_CACHE_VIVT
190f37f46ebSHyok S. Choi	select CPU_CP15_MPU
191f37f46ebSHyok S. Choi	help
192f37f46ebSHyok S. Choi	  ARM946E-S is a member of the ARM9E-S family of high-
193f37f46ebSHyok S. Choi	  performance, 32-bit system-on-chip processor solutions.
194f37f46ebSHyok S. Choi	  The TCM and ARMv5TE 32-bit instruction set is supported.
195f37f46ebSHyok S. Choi
196f37f46ebSHyok S. Choi	  Say Y if you want support for the ARM946E-S processor.
197f37f46ebSHyok S. Choi	  Otherwise, say N.
198f37f46ebSHyok S. Choi
1991da177e4SLinus Torvalds# ARM1020 - needs validating
2001da177e4SLinus Torvaldsconfig CPU_ARM1020
201c750815eSRussell King	bool "Support ARM1020T (rev 0) processor" if ARCH_INTEGRATOR
2021da177e4SLinus Torvalds	select CPU_32v5
2031da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2044fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2051da177e4SLinus Torvalds	select CPU_CACHE_V4WT
2061da177e4SLinus Torvalds	select CPU_CACHE_VIVT
207fefdaa06SHyok S. Choi	select CPU_CP15_MMU
208f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
209f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2101da177e4SLinus Torvalds	help
2111da177e4SLinus Torvalds	  The ARM1020 is the 32K cached version of the ARM10 processor,
2121da177e4SLinus Torvalds	  with an addition of a floating-point unit.
2131da177e4SLinus Torvalds
2141da177e4SLinus Torvalds	  Say Y if you want support for the ARM1020 processor.
2151da177e4SLinus Torvalds	  Otherwise, say N.
2161da177e4SLinus Torvalds
2171da177e4SLinus Torvalds# ARM1020E - needs validating
2181da177e4SLinus Torvaldsconfig CPU_ARM1020E
219c750815eSRussell King	bool "Support ARM1020E processor" if ARCH_INTEGRATOR
2201da177e4SLinus Torvalds	select CPU_32v5
2211da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2224fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2231da177e4SLinus Torvalds	select CPU_CACHE_V4WT
2241da177e4SLinus Torvalds	select CPU_CACHE_VIVT
225fefdaa06SHyok S. Choi	select CPU_CP15_MMU
226f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
227f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2281da177e4SLinus Torvalds	depends on n
2291da177e4SLinus Torvalds
2301da177e4SLinus Torvalds# ARM1022E
2311da177e4SLinus Torvaldsconfig CPU_ARM1022
232c750815eSRussell King	bool "Support ARM1022E processor" if ARCH_INTEGRATOR
2331da177e4SLinus Torvalds	select CPU_32v5
2341da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2354fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2361da177e4SLinus Torvalds	select CPU_CACHE_VIVT
237fefdaa06SHyok S. Choi	select CPU_CP15_MMU
238f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU # can probably do better
239f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2401da177e4SLinus Torvalds	help
2411da177e4SLinus Torvalds	  The ARM1022E is an implementation of the ARMv5TE architecture
2421da177e4SLinus Torvalds	  based upon the ARM10 integer core with a 16KiB L1 Harvard cache,
2431da177e4SLinus Torvalds	  embedded trace macrocell, and a floating-point unit.
2441da177e4SLinus Torvalds
2451da177e4SLinus Torvalds	  Say Y if you want support for the ARM1022E processor.
2461da177e4SLinus Torvalds	  Otherwise, say N.
2471da177e4SLinus Torvalds
2481da177e4SLinus Torvalds# ARM1026EJ-S
2491da177e4SLinus Torvaldsconfig CPU_ARM1026
250c750815eSRussell King	bool "Support ARM1026EJ-S processor" if ARCH_INTEGRATOR
2511da177e4SLinus Torvalds	select CPU_32v5
2521da177e4SLinus Torvalds	select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10
2534fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2541da177e4SLinus Torvalds	select CPU_CACHE_VIVT
255fefdaa06SHyok S. Choi	select CPU_CP15_MMU
256f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU # can probably do better
257f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2581da177e4SLinus Torvalds	help
2591da177e4SLinus Torvalds	  The ARM1026EJ-S is an implementation of the ARMv5TEJ architecture
2601da177e4SLinus Torvalds	  based upon the ARM10 integer core.
2611da177e4SLinus Torvalds
2621da177e4SLinus Torvalds	  Say Y if you want support for the ARM1026EJ-S processor.
2631da177e4SLinus Torvalds	  Otherwise, say N.
2641da177e4SLinus Torvalds
2651da177e4SLinus Torvalds# SA110
2661da177e4SLinus Torvaldsconfig CPU_SA110
267c750815eSRussell King	bool "Support StrongARM(R) SA-110 processor" if ARCH_RPC
2681da177e4SLinus Torvalds	select CPU_32v3 if ARCH_RPC
2691da177e4SLinus Torvalds	select CPU_32v4 if !ARCH_RPC
2701da177e4SLinus Torvalds	select CPU_ABRT_EV4
2714fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2721da177e4SLinus Torvalds	select CPU_CACHE_V4WB
2731da177e4SLinus Torvalds	select CPU_CACHE_VIVT
274fefdaa06SHyok S. Choi	select CPU_CP15_MMU
275f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
276f9c21a6eSHyok S. Choi	select CPU_TLB_V4WB if MMU
2771da177e4SLinus Torvalds	help
2781da177e4SLinus Torvalds	  The Intel StrongARM(R) SA-110 is a 32-bit microprocessor and
2791da177e4SLinus Torvalds	  is available at five speeds ranging from 100 MHz to 233 MHz.
2801da177e4SLinus Torvalds	  More information is available at
2811da177e4SLinus Torvalds	  <http://developer.intel.com/design/strong/sa110.htm>.
2821da177e4SLinus Torvalds
2831da177e4SLinus Torvalds	  Say Y if you want support for the SA-110 processor.
2841da177e4SLinus Torvalds	  Otherwise, say N.
2851da177e4SLinus Torvalds
2861da177e4SLinus Torvalds# SA1100
2871da177e4SLinus Torvaldsconfig CPU_SA1100
2881da177e4SLinus Torvalds	bool
2891da177e4SLinus Torvalds	select CPU_32v4
2901da177e4SLinus Torvalds	select CPU_ABRT_EV4
2914fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
2921da177e4SLinus Torvalds	select CPU_CACHE_V4WB
2931da177e4SLinus Torvalds	select CPU_CACHE_VIVT
294fefdaa06SHyok S. Choi	select CPU_CP15_MMU
295f9c21a6eSHyok S. Choi	select CPU_TLB_V4WB if MMU
2961da177e4SLinus Torvalds
2971da177e4SLinus Torvalds# XScale
2981da177e4SLinus Torvaldsconfig CPU_XSCALE
2991da177e4SLinus Torvalds	bool
3001da177e4SLinus Torvalds	select CPU_32v5
3011da177e4SLinus Torvalds	select CPU_ABRT_EV5T
3024fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
3031da177e4SLinus Torvalds	select CPU_CACHE_VIVT
304fefdaa06SHyok S. Choi	select CPU_CP15_MMU
305f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
3061da177e4SLinus Torvalds
30723bdf86aSLennert Buytenhek# XScale Core Version 3
30823bdf86aSLennert Buytenhekconfig CPU_XSC3
30923bdf86aSLennert Buytenhek	bool
31023bdf86aSLennert Buytenhek	select CPU_32v5
31123bdf86aSLennert Buytenhek	select CPU_ABRT_EV5T
3124fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
31323bdf86aSLennert Buytenhek	select CPU_CACHE_VIVT
314fefdaa06SHyok S. Choi	select CPU_CP15_MMU
315f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
31623bdf86aSLennert Buytenhek	select IO_36
31723bdf86aSLennert Buytenhek
31849cbe786SEric Miao# Marvell PJ1 (Mohawk)
31949cbe786SEric Miaoconfig CPU_MOHAWK
32049cbe786SEric Miao	bool
32149cbe786SEric Miao	select CPU_32v5
32249cbe786SEric Miao	select CPU_ABRT_EV5T
3234fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
32449cbe786SEric Miao	select CPU_CACHE_VIVT
32549cbe786SEric Miao	select CPU_CP15_MMU
32649cbe786SEric Miao	select CPU_TLB_V4WBI if MMU
32749cbe786SEric Miao	select CPU_COPY_V4WB if MMU
32849cbe786SEric Miao
329e50d6409SAssaf Hoffman# Feroceon
330e50d6409SAssaf Hoffmanconfig CPU_FEROCEON
331e50d6409SAssaf Hoffman	bool
332e50d6409SAssaf Hoffman	select CPU_32v5
333e50d6409SAssaf Hoffman	select CPU_ABRT_EV5T
3344fb28474SKirill A. Shutemov	select CPU_PABRT_LEGACY
335e50d6409SAssaf Hoffman	select CPU_CACHE_VIVT
336e50d6409SAssaf Hoffman	select CPU_CP15_MMU
3370ed15071SLennert Buytenhek	select CPU_COPY_FEROCEON if MMU
33899c6dc11SLennert Buytenhek	select CPU_TLB_FEROCEON if MMU
339e50d6409SAssaf Hoffman
340d910a0aaSTzachi Perelsteinconfig CPU_FEROCEON_OLD_ID
341d910a0aaSTzachi Perelstein	bool "Accept early Feroceon cores with an ARM926 ID"
342d910a0aaSTzachi Perelstein	depends on CPU_FEROCEON && !CPU_ARM926T
343d910a0aaSTzachi Perelstein	default y
344d910a0aaSTzachi Perelstein	help
345d910a0aaSTzachi Perelstein	  This enables the usage of some old Feroceon cores
346d910a0aaSTzachi Perelstein	  for which the CPU ID is equal to the ARM926 ID.
347d910a0aaSTzachi Perelstein	  Relevant for Feroceon-1850 and early Feroceon-2850.
348d910a0aaSTzachi Perelstein
349a4553358SHaojian Zhuang# Marvell PJ4
350a4553358SHaojian Zhuangconfig CPU_PJ4
351a4553358SHaojian Zhuang	bool
352a4553358SHaojian Zhuang	select CPU_V7
353a4553358SHaojian Zhuang	select ARM_THUMBEE
354a4553358SHaojian Zhuang
3551da177e4SLinus Torvalds# ARMv6
3561da177e4SLinus Torvaldsconfig CPU_V6
357c786282eSRussell King	bool "Support ARM V6 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
3581da177e4SLinus Torvalds	select CPU_32v6
3591da177e4SLinus Torvalds	select CPU_ABRT_EV6
3604fb28474SKirill A. Shutemov	select CPU_PABRT_V6
3611da177e4SLinus Torvalds	select CPU_CACHE_V6
3621da177e4SLinus Torvalds	select CPU_CACHE_VIPT
363fefdaa06SHyok S. Choi	select CPU_CP15_MMU
3647b4c965aSCatalin Marinas	select CPU_HAS_ASID if MMU
365f9c21a6eSHyok S. Choi	select CPU_COPY_V6 if MMU
366f9c21a6eSHyok S. Choi	select CPU_TLB_V6 if MMU
3671da177e4SLinus Torvalds
3684a5f79e7SRussell King# ARMv6k
369e399b1a4SRussell Kingconfig CPU_V6K
370c786282eSRussell King	bool "Support ARM V6K processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
371e399b1a4SRussell King	select CPU_32v6
37260799c6dSRussell King	select CPU_32v6K
373e399b1a4SRussell King	select CPU_ABRT_EV6
374e399b1a4SRussell King	select CPU_PABRT_V6
375e399b1a4SRussell King	select CPU_CACHE_V6
376e399b1a4SRussell King	select CPU_CACHE_VIPT
377e399b1a4SRussell King	select CPU_CP15_MMU
378e399b1a4SRussell King	select CPU_HAS_ASID if MMU
379e399b1a4SRussell King	select CPU_COPY_V6 if MMU
380e399b1a4SRussell King	select CPU_TLB_V6 if MMU
3814a5f79e7SRussell King
38223688e99SCatalin Marinas# ARMv7
38323688e99SCatalin Marinasconfig CPU_V7
3841b504bbeSColin Tuckley	bool "Support ARM V7 processor" if ARCH_INTEGRATOR || MACH_REALVIEW_EB || MACH_REALVIEW_PBX
38515490ef8SRussell King	select CPU_32v6K
38623688e99SCatalin Marinas	select CPU_32v7
38723688e99SCatalin Marinas	select CPU_ABRT_EV7
3884fb28474SKirill A. Shutemov	select CPU_PABRT_V7
38923688e99SCatalin Marinas	select CPU_CACHE_V7
39023688e99SCatalin Marinas	select CPU_CACHE_VIPT
39123688e99SCatalin Marinas	select CPU_CP15_MMU
3922eb8c82bSCatalin Marinas	select CPU_HAS_ASID if MMU
39323688e99SCatalin Marinas	select CPU_COPY_V6 if MMU
3942ccdd1e7SCatalin Marinas	select CPU_TLB_V7 if MMU
39523688e99SCatalin Marinas
3961da177e4SLinus Torvalds# Figure out what processor architecture version we should be using.
3971da177e4SLinus Torvalds# This defines the compiler instruction set which depends on the machine type.
3981da177e4SLinus Torvaldsconfig CPU_32v3
3991da177e4SLinus Torvalds	bool
40060b6cf68SRussell King	select TLS_REG_EMUL if SMP || !MMU
40148fa14f7SRussell King	select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
4028762df4dSRussell King	select CPU_USE_DOMAINS if MMU
4031da177e4SLinus Torvalds
4041da177e4SLinus Torvaldsconfig CPU_32v4
4051da177e4SLinus Torvalds	bool
40660b6cf68SRussell King	select TLS_REG_EMUL if SMP || !MMU
40748fa14f7SRussell King	select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
4088762df4dSRussell King	select CPU_USE_DOMAINS if MMU
4091da177e4SLinus Torvalds
410260e98edSLennert Buytenhekconfig CPU_32v4T
411260e98edSLennert Buytenhek	bool
412260e98edSLennert Buytenhek	select TLS_REG_EMUL if SMP || !MMU
413260e98edSLennert Buytenhek	select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
4148762df4dSRussell King	select CPU_USE_DOMAINS if MMU
415260e98edSLennert Buytenhek
4161da177e4SLinus Torvaldsconfig CPU_32v5
4171da177e4SLinus Torvalds	bool
41860b6cf68SRussell King	select TLS_REG_EMUL if SMP || !MMU
41948fa14f7SRussell King	select NEEDS_SYSCALL_FOR_CMPXCHG if SMP
4208762df4dSRussell King	select CPU_USE_DOMAINS if MMU
4211da177e4SLinus Torvalds
4221da177e4SLinus Torvaldsconfig CPU_32v6
4231da177e4SLinus Torvalds	bool
424367afaf8SCatalin Marinas	select TLS_REG_EMUL if !CPU_32v6K && !MMU
4258762df4dSRussell King	select CPU_USE_DOMAINS if CPU_V6 && MMU
4261da177e4SLinus Torvalds
427e399b1a4SRussell Kingconfig CPU_32v6K
42860799c6dSRussell King	bool
4291da177e4SLinus Torvalds
43023688e99SCatalin Marinasconfig CPU_32v7
43123688e99SCatalin Marinas	bool
43223688e99SCatalin Marinas
4331da177e4SLinus Torvalds# The abort model
4340f45d7f3SHyok S. Choiconfig CPU_ABRT_NOMMU
4350f45d7f3SHyok S. Choi	bool
4360f45d7f3SHyok S. Choi
4371da177e4SLinus Torvaldsconfig CPU_ABRT_EV4
4381da177e4SLinus Torvalds	bool
4391da177e4SLinus Torvalds
4401da177e4SLinus Torvaldsconfig CPU_ABRT_EV4T
4411da177e4SLinus Torvalds	bool
4421da177e4SLinus Torvalds
4431da177e4SLinus Torvaldsconfig CPU_ABRT_LV4T
4441da177e4SLinus Torvalds	bool
4451da177e4SLinus Torvalds
4461da177e4SLinus Torvaldsconfig CPU_ABRT_EV5T
4471da177e4SLinus Torvalds	bool
4481da177e4SLinus Torvalds
4491da177e4SLinus Torvaldsconfig CPU_ABRT_EV5TJ
4501da177e4SLinus Torvalds	bool
4511da177e4SLinus Torvalds
4521da177e4SLinus Torvaldsconfig CPU_ABRT_EV6
4531da177e4SLinus Torvalds	bool
4541da177e4SLinus Torvalds
45523688e99SCatalin Marinasconfig CPU_ABRT_EV7
45623688e99SCatalin Marinas	bool
45723688e99SCatalin Marinas
4584fb28474SKirill A. Shutemovconfig CPU_PABRT_LEGACY
45948d7927bSPaul Brook	bool
46048d7927bSPaul Brook
4614fb28474SKirill A. Shutemovconfig CPU_PABRT_V6
4624fb28474SKirill A. Shutemov	bool
4634fb28474SKirill A. Shutemov
4644fb28474SKirill A. Shutemovconfig CPU_PABRT_V7
46548d7927bSPaul Brook	bool
46648d7927bSPaul Brook
4671da177e4SLinus Torvalds# The cache model
4681da177e4SLinus Torvaldsconfig CPU_CACHE_V3
4691da177e4SLinus Torvalds	bool
4701da177e4SLinus Torvalds
4711da177e4SLinus Torvaldsconfig CPU_CACHE_V4
4721da177e4SLinus Torvalds	bool
4731da177e4SLinus Torvalds
4741da177e4SLinus Torvaldsconfig CPU_CACHE_V4WT
4751da177e4SLinus Torvalds	bool
4761da177e4SLinus Torvalds
4771da177e4SLinus Torvaldsconfig CPU_CACHE_V4WB
4781da177e4SLinus Torvalds	bool
4791da177e4SLinus Torvalds
4801da177e4SLinus Torvaldsconfig CPU_CACHE_V6
4811da177e4SLinus Torvalds	bool
4821da177e4SLinus Torvalds
48323688e99SCatalin Marinasconfig CPU_CACHE_V7
48423688e99SCatalin Marinas	bool
48523688e99SCatalin Marinas
4861da177e4SLinus Torvaldsconfig CPU_CACHE_VIVT
4871da177e4SLinus Torvalds	bool
4881da177e4SLinus Torvalds
4891da177e4SLinus Torvaldsconfig CPU_CACHE_VIPT
4901da177e4SLinus Torvalds	bool
4911da177e4SLinus Torvalds
49228853ac8SPaulius Zaleckasconfig CPU_CACHE_FA
49328853ac8SPaulius Zaleckas	bool
49428853ac8SPaulius Zaleckas
495f9c21a6eSHyok S. Choiif MMU
4961da177e4SLinus Torvalds# The copy-page model
4971da177e4SLinus Torvaldsconfig CPU_COPY_V4WT
4981da177e4SLinus Torvalds	bool
4991da177e4SLinus Torvalds
5001da177e4SLinus Torvaldsconfig CPU_COPY_V4WB
5011da177e4SLinus Torvalds	bool
5021da177e4SLinus Torvalds
5030ed15071SLennert Buytenhekconfig CPU_COPY_FEROCEON
5040ed15071SLennert Buytenhek	bool
5050ed15071SLennert Buytenhek
50628853ac8SPaulius Zaleckasconfig CPU_COPY_FA
50728853ac8SPaulius Zaleckas	bool
50828853ac8SPaulius Zaleckas
5091da177e4SLinus Torvaldsconfig CPU_COPY_V6
5101da177e4SLinus Torvalds	bool
5111da177e4SLinus Torvalds
5121da177e4SLinus Torvalds# This selects the TLB model
5131da177e4SLinus Torvaldsconfig CPU_TLB_V4WT
5141da177e4SLinus Torvalds	bool
5151da177e4SLinus Torvalds	help
5161da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writethrough cache.
5171da177e4SLinus Torvalds
5181da177e4SLinus Torvaldsconfig CPU_TLB_V4WB
5191da177e4SLinus Torvalds	bool
5201da177e4SLinus Torvalds	help
5211da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writeback cache.
5221da177e4SLinus Torvalds
5231da177e4SLinus Torvaldsconfig CPU_TLB_V4WBI
5241da177e4SLinus Torvalds	bool
5251da177e4SLinus Torvalds	help
5261da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writeback cache and invalidate
5271da177e4SLinus Torvalds	  instruction cache entry.
5281da177e4SLinus Torvalds
52999c6dc11SLennert Buytenhekconfig CPU_TLB_FEROCEON
53099c6dc11SLennert Buytenhek	bool
53199c6dc11SLennert Buytenhek	help
53299c6dc11SLennert Buytenhek	  Feroceon TLB (v4wbi with non-outer-cachable page table walks).
53399c6dc11SLennert Buytenhek
53428853ac8SPaulius Zaleckasconfig CPU_TLB_FA
53528853ac8SPaulius Zaleckas	bool
53628853ac8SPaulius Zaleckas	help
53728853ac8SPaulius Zaleckas	  Faraday ARM FA526 architecture, unified TLB with writeback cache
53828853ac8SPaulius Zaleckas	  and invalidate instruction cache entry. Branch target buffer is
53928853ac8SPaulius Zaleckas	  also supported.
54028853ac8SPaulius Zaleckas
5411da177e4SLinus Torvaldsconfig CPU_TLB_V6
5421da177e4SLinus Torvalds	bool
5431da177e4SLinus Torvalds
5442ccdd1e7SCatalin Marinasconfig CPU_TLB_V7
5452ccdd1e7SCatalin Marinas	bool
5462ccdd1e7SCatalin Marinas
547e220ba60SDave Estesconfig VERIFY_PERMISSION_FAULT
548e220ba60SDave Estes	bool
549f9c21a6eSHyok S. Choiendif
550f9c21a6eSHyok S. Choi
551516793c6SRussell Kingconfig CPU_HAS_ASID
552516793c6SRussell King	bool
553516793c6SRussell King	help
554516793c6SRussell King	  This indicates whether the CPU has the ASID register; used to
555516793c6SRussell King	  tag TLB and possibly cache entries.
556516793c6SRussell King
557fefdaa06SHyok S. Choiconfig CPU_CP15
558fefdaa06SHyok S. Choi	bool
559fefdaa06SHyok S. Choi	help
560fefdaa06SHyok S. Choi	  Processor has the CP15 register.
561fefdaa06SHyok S. Choi
562fefdaa06SHyok S. Choiconfig CPU_CP15_MMU
563fefdaa06SHyok S. Choi	bool
564fefdaa06SHyok S. Choi	select CPU_CP15
565fefdaa06SHyok S. Choi	help
566fefdaa06SHyok S. Choi	  Processor has the CP15 register, which has MMU related registers.
567fefdaa06SHyok S. Choi
568fefdaa06SHyok S. Choiconfig CPU_CP15_MPU
569fefdaa06SHyok S. Choi	bool
570fefdaa06SHyok S. Choi	select CPU_CP15
571fefdaa06SHyok S. Choi	help
572fefdaa06SHyok S. Choi	  Processor has the CP15 register, which has MPU related registers.
573fefdaa06SHyok S. Choi
574247055aaSCatalin Marinasconfig CPU_USE_DOMAINS
575247055aaSCatalin Marinas	bool
576247055aaSCatalin Marinas	help
577247055aaSCatalin Marinas	  This option enables or disables the use of domain switching
578247055aaSCatalin Marinas	  via the set_fs() function.
579247055aaSCatalin Marinas
58023bdf86aSLennert Buytenhek#
58123bdf86aSLennert Buytenhek# CPU supports 36-bit I/O
58223bdf86aSLennert Buytenhek#
58323bdf86aSLennert Buytenhekconfig IO_36
58423bdf86aSLennert Buytenhek	bool
58523bdf86aSLennert Buytenhek
5861da177e4SLinus Torvaldscomment "Processor Features"
5871da177e4SLinus Torvalds
588497b7e94SCatalin Marinasconfig ARM_LPAE
589497b7e94SCatalin Marinas	bool "Support for the Large Physical Address Extension"
59008a183f0SCatalin Marinas	depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \
59108a183f0SCatalin Marinas		!CPU_32v4 && !CPU_32v3
592497b7e94SCatalin Marinas	help
593497b7e94SCatalin Marinas	  Say Y if you have an ARMv7 processor supporting the LPAE page
594497b7e94SCatalin Marinas	  table format and you would like to access memory beyond the
595497b7e94SCatalin Marinas	  4GB limit. The resulting kernel image will not run on
596497b7e94SCatalin Marinas	  processors without the LPA extension.
597497b7e94SCatalin Marinas
598497b7e94SCatalin Marinas	  If unsure, say N.
599497b7e94SCatalin Marinas
600497b7e94SCatalin Marinasconfig ARCH_PHYS_ADDR_T_64BIT
601497b7e94SCatalin Marinas	def_bool ARM_LPAE
602497b7e94SCatalin Marinas
603497b7e94SCatalin Marinasconfig ARCH_DMA_ADDR_T_64BIT
604497b7e94SCatalin Marinas	bool
605497b7e94SCatalin Marinas
6061da177e4SLinus Torvaldsconfig ARM_THUMB
6071da177e4SLinus Torvalds	bool "Support Thumb user binaries"
608e399b1a4SRussell 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
6091da177e4SLinus Torvalds	default y
6101da177e4SLinus Torvalds	help
6111da177e4SLinus Torvalds	  Say Y if you want to include kernel support for running user space
6121da177e4SLinus Torvalds	  Thumb binaries.
6131da177e4SLinus Torvalds
6141da177e4SLinus Torvalds	  The Thumb instruction set is a compressed form of the standard ARM
6151da177e4SLinus Torvalds	  instruction set resulting in smaller binaries at the expense of
6161da177e4SLinus Torvalds	  slightly less efficient code.
6171da177e4SLinus Torvalds
6181da177e4SLinus Torvalds	  If you don't know what this all is, saying Y is a safe choice.
6191da177e4SLinus Torvalds
620d7f864beSCatalin Marinasconfig ARM_THUMBEE
621d7f864beSCatalin Marinas	bool "Enable ThumbEE CPU extension"
622d7f864beSCatalin Marinas	depends on CPU_V7
623d7f864beSCatalin Marinas	help
624d7f864beSCatalin Marinas	  Say Y here if you have a CPU with the ThumbEE extension and code to
625d7f864beSCatalin Marinas	  make use of it. Say N for code that can run on CPUs without ThumbEE.
626d7f864beSCatalin Marinas
62764d2dc38SLeif Lindholmconfig SWP_EMULATE
62864d2dc38SLeif Lindholm	bool "Emulate SWP/SWPB instructions"
629bd1274dcSRussell King	depends on !CPU_USE_DOMAINS && CPU_V7
63064d2dc38SLeif Lindholm	select HAVE_PROC_CPU if PROC_FS
63164d2dc38SLeif Lindholm	default y if SMP
63264d2dc38SLeif Lindholm	help
63364d2dc38SLeif Lindholm	  ARMv6 architecture deprecates use of the SWP/SWPB instructions.
63464d2dc38SLeif Lindholm	  ARMv7 multiprocessing extensions introduce the ability to disable
63564d2dc38SLeif Lindholm	  these instructions, triggering an undefined instruction exception
63664d2dc38SLeif Lindholm	  when executed. Say Y here to enable software emulation of these
63764d2dc38SLeif Lindholm	  instructions for userspace (not kernel) using LDREX/STREX.
63864d2dc38SLeif Lindholm	  Also creates /proc/cpu/swp_emulation for statistics.
63964d2dc38SLeif Lindholm
64064d2dc38SLeif Lindholm	  In some older versions of glibc [<=2.8] SWP is used during futex
64164d2dc38SLeif Lindholm	  trylock() operations with the assumption that the code will not
64264d2dc38SLeif Lindholm	  be preempted. This invalid assumption may be more likely to fail
64364d2dc38SLeif Lindholm	  with SWP emulation enabled, leading to deadlock of the user
64464d2dc38SLeif Lindholm	  application.
64564d2dc38SLeif Lindholm
64664d2dc38SLeif Lindholm	  NOTE: when accessing uncached shared regions, LDREX/STREX rely
64764d2dc38SLeif Lindholm	  on an external transaction monitoring block called a global
64864d2dc38SLeif Lindholm	  monitor to maintain update atomicity. If your system does not
64964d2dc38SLeif Lindholm	  implement a global monitor, this option can cause programs that
65064d2dc38SLeif Lindholm	  perform SWP operations to uncached memory to deadlock.
65164d2dc38SLeif Lindholm
65264d2dc38SLeif Lindholm	  If unsure, say Y.
65364d2dc38SLeif Lindholm
6541da177e4SLinus Torvaldsconfig CPU_BIG_ENDIAN
6551da177e4SLinus Torvalds	bool "Build big-endian kernel"
6561da177e4SLinus Torvalds	depends on ARCH_SUPPORTS_BIG_ENDIAN
6571da177e4SLinus Torvalds	help
6581da177e4SLinus Torvalds	  Say Y if you plan on running a kernel in big-endian mode.
6591da177e4SLinus Torvalds	  Note that your board must be properly built and your board
6601da177e4SLinus Torvalds	  port must properly enable any big-endian related features
6611da177e4SLinus Torvalds	  of your chipset/board/processor.
6621da177e4SLinus Torvalds
66326584853SCatalin Marinasconfig CPU_ENDIAN_BE8
66426584853SCatalin Marinas	bool
66526584853SCatalin Marinas	depends on CPU_BIG_ENDIAN
666e399b1a4SRussell King	default CPU_V6 || CPU_V6K || CPU_V7
66726584853SCatalin Marinas	help
66826584853SCatalin Marinas	  Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
66926584853SCatalin Marinas
67026584853SCatalin Marinasconfig CPU_ENDIAN_BE32
67126584853SCatalin Marinas	bool
67226584853SCatalin Marinas	depends on CPU_BIG_ENDIAN
67326584853SCatalin Marinas	default !CPU_ENDIAN_BE8
67426584853SCatalin Marinas	help
67526584853SCatalin Marinas	  Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
67626584853SCatalin Marinas
6776afd6faeSHyok S. Choiconfig CPU_HIGH_VECTOR
6786340aa61SRobert P. J. Day	depends on !MMU && CPU_CP15 && !CPU_ARM740T
6796afd6faeSHyok S. Choi	bool "Select the High exception vector"
6806afd6faeSHyok S. Choi	help
6816afd6faeSHyok S. Choi	  Say Y here to select high exception vector(0xFFFF0000~).
6829b7333a9SWill Deacon	  The exception vector can vary depending on the platform
6836afd6faeSHyok S. Choi	  design in nommu mode. If your platform needs to select
6846afd6faeSHyok S. Choi	  high exception vector, say Y.
6856afd6faeSHyok S. Choi	  Otherwise or if you are unsure, say N, and the low exception
6866afd6faeSHyok S. Choi	  vector (0x00000000~) will be used.
6876afd6faeSHyok S. Choi
6881da177e4SLinus Torvaldsconfig CPU_ICACHE_DISABLE
689f12d0d7cSHyok S. Choi	bool "Disable I-Cache (I-bit)"
690*357c9c1fSRussell King	depends on CPU_CP15 && !(CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)
6911da177e4SLinus Torvalds	help
6921da177e4SLinus Torvalds	  Say Y here to disable the processor instruction cache. Unless
6931da177e4SLinus Torvalds	  you have a reason not to or are unsure, say N.
6941da177e4SLinus Torvalds
6951da177e4SLinus Torvaldsconfig CPU_DCACHE_DISABLE
696f12d0d7cSHyok S. Choi	bool "Disable D-Cache (C-bit)"
697f12d0d7cSHyok S. Choi	depends on CPU_CP15
6981da177e4SLinus Torvalds	help
6991da177e4SLinus Torvalds	  Say Y here to disable the processor data cache. Unless
7001da177e4SLinus Torvalds	  you have a reason not to or are unsure, say N.
7011da177e4SLinus Torvalds
702f37f46ebSHyok S. Choiconfig CPU_DCACHE_SIZE
703f37f46ebSHyok S. Choi	hex
704f37f46ebSHyok S. Choi	depends on CPU_ARM740T || CPU_ARM946E
705f37f46ebSHyok S. Choi	default 0x00001000 if CPU_ARM740T
706f37f46ebSHyok S. Choi	default 0x00002000 # default size for ARM946E-S
707f37f46ebSHyok S. Choi	help
708f37f46ebSHyok S. Choi	  Some cores are synthesizable to have various sized cache. For
709f37f46ebSHyok S. Choi	  ARM946E-S case, it can vary from 0KB to 1MB.
710f37f46ebSHyok S. Choi	  To support such cache operations, it is efficient to know the size
711f37f46ebSHyok S. Choi	  before compile time.
712f37f46ebSHyok S. Choi	  If your SoC is configured to have a different size, define the value
713f37f46ebSHyok S. Choi	  here with proper conditions.
714f37f46ebSHyok S. Choi
7151da177e4SLinus Torvaldsconfig CPU_DCACHE_WRITETHROUGH
7161da177e4SLinus Torvalds	bool "Force write through D-cache"
71728853ac8SPaulius Zaleckas	depends on (CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_FA526) && !CPU_DCACHE_DISABLE
7181da177e4SLinus Torvalds	default y if CPU_ARM925T
7191da177e4SLinus Torvalds	help
7201da177e4SLinus Torvalds	  Say Y here to use the data cache in writethrough mode. Unless you
7211da177e4SLinus Torvalds	  specifically require this or are unsure, say N.
7221da177e4SLinus Torvalds
7231da177e4SLinus Torvaldsconfig CPU_CACHE_ROUND_ROBIN
7241da177e4SLinus Torvalds	bool "Round robin I and D cache replacement algorithm"
725f37f46ebSHyok S. Choi	depends on (CPU_ARM926T || CPU_ARM946E || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
7261da177e4SLinus Torvalds	help
7271da177e4SLinus Torvalds	  Say Y here to use the predictable round-robin cache replacement
7281da177e4SLinus Torvalds	  policy.  Unless you specifically require this or are unsure, say N.
7291da177e4SLinus Torvalds
7301da177e4SLinus Torvaldsconfig CPU_BPREDICT_DISABLE
7311da177e4SLinus Torvalds	bool "Disable branch prediction"
732e399b1a4SRussell King	depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526
7331da177e4SLinus Torvalds	help
7341da177e4SLinus Torvalds	  Say Y here to disable branch prediction.  If unsure, say N.
7352d2669b6SNicolas Pitre
7364b0e07a5SNicolas Pitreconfig TLS_REG_EMUL
7374b0e07a5SNicolas Pitre	bool
7384b0e07a5SNicolas Pitre	help
73970489c88SNicolas Pitre	  An SMP system using a pre-ARMv6 processor (there are apparently
74070489c88SNicolas Pitre	  a few prototypes like that in existence) and therefore access to
74170489c88SNicolas Pitre	  that required register must be emulated.
7424b0e07a5SNicolas Pitre
743dcef1f63SNicolas Pitreconfig NEEDS_SYSCALL_FOR_CMPXCHG
744dcef1f63SNicolas Pitre	bool
745dcef1f63SNicolas Pitre	help
746dcef1f63SNicolas Pitre	  SMP on a pre-ARMv6 processor?  Well OK then.
747dcef1f63SNicolas Pitre	  Forget about fast user space cmpxchg support.
748dcef1f63SNicolas Pitre	  It is just not possible.
749dcef1f63SNicolas Pitre
750ad642d9fSCatalin Marinasconfig DMA_CACHE_RWFO
751ad642d9fSCatalin Marinas	bool "Enable read/write for ownership DMA cache maintenance"
7523bc28c8eSRussell King	depends on CPU_V6K && SMP
753ad642d9fSCatalin Marinas	default y
754ad642d9fSCatalin Marinas	help
755ad642d9fSCatalin Marinas	  The Snoop Control Unit on ARM11MPCore does not detect the
756ad642d9fSCatalin Marinas	  cache maintenance operations and the dma_{map,unmap}_area()
757ad642d9fSCatalin Marinas	  functions may leave stale cache entries on other CPUs. By
758ad642d9fSCatalin Marinas	  enabling this option, Read or Write For Ownership in the ARMv6
759ad642d9fSCatalin Marinas	  DMA cache maintenance functions is performed. These LDR/STR
760ad642d9fSCatalin Marinas	  instructions change the cache line state to shared or modified
761ad642d9fSCatalin Marinas	  so that the cache operation has the desired effect.
762ad642d9fSCatalin Marinas
763ad642d9fSCatalin Marinas	  Note that the workaround is only valid on processors that do
764ad642d9fSCatalin Marinas	  not perform speculative loads into the D-cache. For such
765ad642d9fSCatalin Marinas	  processors, if cache maintenance operations are not broadcast
766ad642d9fSCatalin Marinas	  in hardware, other workarounds are needed (e.g. cache
767ad642d9fSCatalin Marinas	  maintenance broadcasting in software via FIQ).
768ad642d9fSCatalin Marinas
769953233dcSCatalin Marinasconfig OUTER_CACHE
770953233dcSCatalin Marinas	bool
771382266adSCatalin Marinas
772319f551aSCatalin Marinasconfig OUTER_CACHE_SYNC
773319f551aSCatalin Marinas	bool
774319f551aSCatalin Marinas	help
775319f551aSCatalin Marinas	  The outer cache has a outer_cache_fns.sync function pointer
776319f551aSCatalin Marinas	  that can be used to drain the write buffer of the outer cache.
777319f551aSCatalin Marinas
77899c6dc11SLennert Buytenhekconfig CACHE_FEROCEON_L2
77999c6dc11SLennert Buytenhek	bool "Enable the Feroceon L2 cache controller"
780794d15b2SStanislav Samsonov	depends on ARCH_KIRKWOOD || ARCH_MV78XX0
78199c6dc11SLennert Buytenhek	default y
782382266adSCatalin Marinas	select OUTER_CACHE
78399c6dc11SLennert Buytenhek	help
78499c6dc11SLennert Buytenhek	  This option enables the Feroceon L2 cache controller.
78599c6dc11SLennert Buytenhek
7864360bb41SRonen Shitritconfig CACHE_FEROCEON_L2_WRITETHROUGH
7874360bb41SRonen Shitrit	bool "Force Feroceon L2 cache write through"
7884360bb41SRonen Shitrit	depends on CACHE_FEROCEON_L2
7894360bb41SRonen Shitrit	help
7904360bb41SRonen Shitrit	  Say Y here to use the Feroceon L2 cache in writethrough mode.
7914360bb41SRonen Shitrit	  Unless you specifically require this, say N for writeback mode.
7924360bb41SRonen Shitrit
793ce5ea9f3SDave Martinconfig MIGHT_HAVE_CACHE_L2X0
794ce5ea9f3SDave Martin	bool
795ce5ea9f3SDave Martin	help
796ce5ea9f3SDave Martin	  This option should be selected by machines which have a L2x0
797ce5ea9f3SDave Martin	  or PL310 cache controller, but where its use is optional.
798ce5ea9f3SDave Martin
799ce5ea9f3SDave Martin	  The only effect of this option is to make CACHE_L2X0 and
800ce5ea9f3SDave Martin	  related options available to the user for configuration.
801ce5ea9f3SDave Martin
802ce5ea9f3SDave Martin	  Boards or SoCs which always require the cache controller
803ce5ea9f3SDave Martin	  support to be present should select CACHE_L2X0 directly
804ce5ea9f3SDave Martin	  instead of this option, thus preventing the user from
805ce5ea9f3SDave Martin	  inadvertently configuring a broken kernel.
806ce5ea9f3SDave Martin
8071da177e4SLinus Torvaldsconfig CACHE_L2X0
808ce5ea9f3SDave Martin	bool "Enable the L2x0 outer cache controller" if MIGHT_HAVE_CACHE_L2X0
809ce5ea9f3SDave Martin	default MIGHT_HAVE_CACHE_L2X0
8101da177e4SLinus Torvalds	select OUTER_CACHE
81123107c54SCatalin Marinas	select OUTER_CACHE_SYNC
812ba927951SCatalin Marinas	help
813ba927951SCatalin Marinas	  This option enables the L2x0 PrimeCell.
814905a09d5SEric Miao
8159a6655e4SCatalin Marinasconfig CACHE_PL310
8169a6655e4SCatalin Marinas	bool
8179a6655e4SCatalin Marinas	depends on CACHE_L2X0
818e399b1a4SRussell King	default y if CPU_V7 && !(CPU_V6 || CPU_V6K)
8199a6655e4SCatalin Marinas	help
8209a6655e4SCatalin Marinas	  This option enables optimisations for the PL310 cache
8219a6655e4SCatalin Marinas	  controller.
8229a6655e4SCatalin Marinas
823573a652fSLennert Buytenhekconfig CACHE_TAUROS2
824573a652fSLennert Buytenhek	bool "Enable the Tauros2 L2 cache controller"
8253f408fa0SHaojian Zhuang	depends on (ARCH_DOVE || ARCH_MMP || CPU_PJ4)
826573a652fSLennert Buytenhek	default y
827573a652fSLennert Buytenhek	select OUTER_CACHE
828573a652fSLennert Buytenhek	help
829573a652fSLennert Buytenhek	  This option enables the Tauros2 L2 cache controller (as
830573a652fSLennert Buytenhek	  found on PJ1/PJ4).
831573a652fSLennert Buytenhek
832905a09d5SEric Miaoconfig CACHE_XSC3L2
833905a09d5SEric Miao	bool "Enable the L2 cache on XScale3"
834905a09d5SEric Miao	depends on CPU_XSC3
835905a09d5SEric Miao	default y
836905a09d5SEric Miao	select OUTER_CACHE
837905a09d5SEric Miao	help
838905a09d5SEric Miao	  This option enables the L2 cache on XScale3.
839910a17e5SKirill A. Shutemov
8405637a126SRussell Kingconfig ARM_L1_CACHE_SHIFT_6
8415637a126SRussell King	bool
842a092f2b1SWill Deacon	default y if CPU_V7
8435637a126SRussell King	help
8445637a126SRussell King	  Setting ARM L1 cache line size to 64 Bytes.
8455637a126SRussell King
846910a17e5SKirill A. Shutemovconfig ARM_L1_CACHE_SHIFT
847910a17e5SKirill A. Shutemov	int
848d6d502faSKukjin Kim	default 6 if ARM_L1_CACHE_SHIFT_6
849910a17e5SKirill A. Shutemov	default 5
85047ab0deeSRussell King
85147ab0deeSRussell Kingconfig ARM_DMA_MEM_BUFFERABLE
852e399b1a4SRussell King	bool "Use non-cacheable memory for DMA" if (CPU_V6 || CPU_V6K) && !CPU_V7
85342c4dafeSCatalin Marinas	depends on !(MACH_REALVIEW_PB1176 || REALVIEW_EB_ARM11MP || \
85442c4dafeSCatalin Marinas		     MACH_REALVIEW_PB11MP)
855e399b1a4SRussell King	default y if CPU_V6 || CPU_V6K || CPU_V7
85647ab0deeSRussell King	help
85747ab0deeSRussell King	  Historically, the kernel has used strongly ordered mappings to
85847ab0deeSRussell King	  provide DMA coherent memory.  With the advent of ARMv7, mapping
85947ab0deeSRussell King	  memory with differing types results in unpredictable behaviour,
86047ab0deeSRussell King	  so on these CPUs, this option is forced on.
86147ab0deeSRussell King
86247ab0deeSRussell King	  Multiple mappings with differing attributes is also unpredictable
86347ab0deeSRussell King	  on ARMv6 CPUs, but since they do not have aggressive speculative
86447ab0deeSRussell King	  prefetch, no harm appears to occur.
86547ab0deeSRussell King
86647ab0deeSRussell King	  However, drivers may be missing the necessary barriers for ARMv6,
86747ab0deeSRussell King	  and therefore turning this on may result in unpredictable driver
86847ab0deeSRussell King	  behaviour.  Therefore, we offer this as an option.
86947ab0deeSRussell King
87047ab0deeSRussell King	  You are recommended say 'Y' here and debug any affected drivers.
871ac1d426eSRussell King
872e7c5650fSCatalin Marinasconfig ARCH_HAS_BARRIERS
873e7c5650fSCatalin Marinas	bool
874e7c5650fSCatalin Marinas	help
875e7c5650fSCatalin Marinas	  This option allows the use of custom mandatory barriers
876e7c5650fSCatalin Marinas	  included via the mach/barriers.h file.
877