xref: /linux/arch/arm/mm/Kconfig (revision fff7fb0b2d908dec779783d8eaf3d7725230f75e)
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
9c32b7655SArnd Bergmann	bool
106b237a35SRussell King	depends on !MMU
1107e0da78SHyok S. Choi	select CPU_32v4T
1207e0da78SHyok S. Choi	select CPU_ABRT_LV4T
1307e0da78SHyok S. Choi	select CPU_CACHE_V4
14b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
2417d44d7dSArnd Bergmann	bool
25260e98edSLennert Buytenhek	select CPU_32v4T
261da177e4SLinus Torvalds	select CPU_ABRT_LV4T
271da177e4SLinus Torvalds	select CPU_CACHE_V4
281da177e4SLinus Torvalds	select CPU_CACHE_VIVT
29f9c21a6eSHyok S. Choi	select CPU_COPY_V4WT if MMU
30b1b3f49cSRussell King	select CPU_CP15_MMU
31b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
4217d44d7dSArnd Bergmann	bool
436b237a35SRussell King	depends on !MMU
44b731c311SHyok S. Choi	select CPU_32v4T
45b731c311SHyok S. Choi	select CPU_ABRT_LV4T
4682d9b0d0SWill Deacon	select CPU_CACHE_V4
47b731c311SHyok S. Choi	select CPU_CP15_MPU
48b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
59c32b7655SArnd Bergmann	bool
606b237a35SRussell King	depends on !MMU
6143f5f014SHyok S. Choi	select CPU_32v4T
620f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
6343f5f014SHyok S. Choi	select CPU_CACHE_V4
64b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
7417d44d7dSArnd Bergmann	bool
75260e98edSLennert Buytenhek	select CPU_32v4T
761da177e4SLinus Torvalds	select CPU_ABRT_EV4T
771da177e4SLinus Torvalds	select CPU_CACHE_V4WT
781da177e4SLinus Torvalds	select CPU_CACHE_VIVT
79f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
80b1b3f49cSRussell King	select CPU_CP15_MMU
81b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
9217d44d7dSArnd Bergmann	bool
93260e98edSLennert Buytenhek	select CPU_32v4T
941da177e4SLinus Torvalds	select CPU_ABRT_EV4T
951da177e4SLinus Torvalds	select CPU_CACHE_V4WT
961da177e4SLinus Torvalds	select CPU_CACHE_VIVT
97f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
98b1b3f49cSRussell King	select CPU_CP15_MMU
99b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
11117d44d7dSArnd Bergmann	bool
112260e98edSLennert Buytenhek	select CPU_32v4T
1131da177e4SLinus Torvalds	select CPU_ABRT_EV4T
1141da177e4SLinus Torvalds	select CPU_CACHE_V4WT
1151da177e4SLinus Torvalds	select CPU_CACHE_VIVT
116f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
117b1b3f49cSRussell King	select CPU_CP15_MMU
118b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
13017d44d7dSArnd Bergmann	bool
1311da177e4SLinus Torvalds	select CPU_32v5
1321da177e4SLinus Torvalds	select CPU_ABRT_EV5TJ
1331da177e4SLinus Torvalds	select CPU_CACHE_VIVT
134f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
135b1b3f49cSRussell King	select CPU_CP15_MMU
136b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
15128853ac8SPaulius Zaleckas	select CPU_CACHE_FA
152b1b3f49cSRussell King	select CPU_CACHE_VIVT
15328853ac8SPaulius Zaleckas	select CPU_COPY_FA if MMU
154b1b3f49cSRussell King	select CPU_CP15_MMU
155b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
16617d44d7dSArnd Bergmann	bool
1676b237a35SRussell King	depends on !MMU
168d60674ebSHyok S. Choi	select CPU_32v4T
1690f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
170d60674ebSHyok S. Choi	select CPU_CACHE_VIVT
171d60674ebSHyok S. Choi	select CPU_CP15_MPU
172b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
18417d44d7dSArnd Bergmann	bool
1856b237a35SRussell King	depends on !MMU
186f37f46ebSHyok S. Choi	select CPU_32v5
1870f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
188f37f46ebSHyok S. Choi	select CPU_CACHE_VIVT
189f37f46ebSHyok S. Choi	select CPU_CP15_MPU
190b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
20117d44d7dSArnd Bergmann	bool
2021da177e4SLinus Torvalds	select CPU_32v5
2031da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2041da177e4SLinus Torvalds	select CPU_CACHE_V4WT
2051da177e4SLinus Torvalds	select CPU_CACHE_VIVT
206f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
207b1b3f49cSRussell King	select CPU_CP15_MMU
208b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
21917d44d7dSArnd Bergmann	bool
220b1b3f49cSRussell King	depends on n
2211da177e4SLinus Torvalds	select CPU_32v5
2221da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2231da177e4SLinus Torvalds	select CPU_CACHE_V4WT
2241da177e4SLinus Torvalds	select CPU_CACHE_VIVT
225f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
226b1b3f49cSRussell King	select CPU_CP15_MMU
227b1b3f49cSRussell King	select CPU_PABRT_LEGACY
228f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2291da177e4SLinus Torvalds
2301da177e4SLinus Torvalds# ARM1022E
2311da177e4SLinus Torvaldsconfig CPU_ARM1022
23217d44d7dSArnd Bergmann	bool
2331da177e4SLinus Torvalds	select CPU_32v5
2341da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2351da177e4SLinus Torvalds	select CPU_CACHE_VIVT
236f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU # can probably do better
237b1b3f49cSRussell King	select CPU_CP15_MMU
238b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
25017d44d7dSArnd Bergmann	bool
2511da177e4SLinus Torvalds	select CPU_32v5
2521da177e4SLinus Torvalds	select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10
2531da177e4SLinus Torvalds	select CPU_CACHE_VIVT
254f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU # can probably do better
255b1b3f49cSRussell King	select CPU_CP15_MMU
256b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
267fa04e209SArnd Bergmann	bool
2681da177e4SLinus Torvalds	select CPU_32v3 if ARCH_RPC
2691da177e4SLinus Torvalds	select CPU_32v4 if !ARCH_RPC
2701da177e4SLinus Torvalds	select CPU_ABRT_EV4
2711da177e4SLinus Torvalds	select CPU_CACHE_V4WB
2721da177e4SLinus Torvalds	select CPU_CACHE_VIVT
273f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
274b1b3f49cSRussell King	select CPU_CP15_MMU
275b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
2911da177e4SLinus Torvalds	select CPU_CACHE_V4WB
2921da177e4SLinus Torvalds	select CPU_CACHE_VIVT
293fefdaa06SHyok S. Choi	select CPU_CP15_MMU
294b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
3021da177e4SLinus Torvalds	select CPU_CACHE_VIVT
303fefdaa06SHyok S. Choi	select CPU_CP15_MMU
304b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
31223bdf86aSLennert Buytenhek	select CPU_CACHE_VIVT
313fefdaa06SHyok S. Choi	select CPU_CP15_MMU
314b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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
32349cbe786SEric Miao	select CPU_CACHE_VIVT
32449cbe786SEric Miao	select CPU_COPY_V4WB if MMU
325b1b3f49cSRussell King	select CPU_CP15_MMU
326b1b3f49cSRussell King	select CPU_PABRT_LEGACY
327b1b3f49cSRussell King	select CPU_TLB_V4WBI 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
334e50d6409SAssaf Hoffman	select CPU_CACHE_VIVT
3350ed15071SLennert Buytenhek	select CPU_COPY_FEROCEON if MMU
336b1b3f49cSRussell King	select CPU_CP15_MMU
337b1b3f49cSRussell King	select CPU_PABRT_LEGACY
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 ARM_THUMBEE
353b1b3f49cSRussell King	select CPU_V7
354a4553358SHaojian Zhuang
355de490193SGregory CLEMENTconfig CPU_PJ4B
356de490193SGregory CLEMENT	bool
357de490193SGregory CLEMENT	select CPU_V7
358de490193SGregory CLEMENT
3591da177e4SLinus Torvalds# ARMv6
3601da177e4SLinus Torvaldsconfig CPU_V6
36117d44d7dSArnd Bergmann	bool
3621da177e4SLinus Torvalds	select CPU_32v6
3631da177e4SLinus Torvalds	select CPU_ABRT_EV6
3641da177e4SLinus Torvalds	select CPU_CACHE_V6
3651da177e4SLinus Torvalds	select CPU_CACHE_VIPT
366b1b3f49cSRussell King	select CPU_COPY_V6 if MMU
367fefdaa06SHyok S. Choi	select CPU_CP15_MMU
3687b4c965aSCatalin Marinas	select CPU_HAS_ASID if MMU
369b1b3f49cSRussell King	select CPU_PABRT_V6
370f9c21a6eSHyok S. Choi	select CPU_TLB_V6 if MMU
3711da177e4SLinus Torvalds
3724a5f79e7SRussell King# ARMv6k
373e399b1a4SRussell Kingconfig CPU_V6K
37417d44d7dSArnd Bergmann	bool
375e399b1a4SRussell King	select CPU_32v6
37660799c6dSRussell King	select CPU_32v6K
377e399b1a4SRussell King	select CPU_ABRT_EV6
378e399b1a4SRussell King	select CPU_CACHE_V6
379e399b1a4SRussell King	select CPU_CACHE_VIPT
380b1b3f49cSRussell King	select CPU_COPY_V6 if MMU
381e399b1a4SRussell King	select CPU_CP15_MMU
382e399b1a4SRussell King	select CPU_HAS_ASID if MMU
383b1b3f49cSRussell King	select CPU_PABRT_V6
384e399b1a4SRussell King	select CPU_TLB_V6 if MMU
3854a5f79e7SRussell King
38623688e99SCatalin Marinas# ARMv7
38723688e99SCatalin Marinasconfig CPU_V7
38817d44d7dSArnd Bergmann	bool
38915490ef8SRussell King	select CPU_32v6K
39023688e99SCatalin Marinas	select CPU_32v7
39123688e99SCatalin Marinas	select CPU_ABRT_EV7
39223688e99SCatalin Marinas	select CPU_CACHE_V7
39323688e99SCatalin Marinas	select CPU_CACHE_VIPT
394b1b3f49cSRussell King	select CPU_COPY_V6 if MMU
39566567618SJonathan Austin	select CPU_CP15_MMU if MMU
39666567618SJonathan Austin	select CPU_CP15_MPU if !MMU
3972eb8c82bSCatalin Marinas	select CPU_HAS_ASID if MMU
398b1b3f49cSRussell King	select CPU_PABRT_V7
3992ccdd1e7SCatalin Marinas	select CPU_TLB_V7 if MMU
40023688e99SCatalin Marinas
4014477ca45SUwe Kleine-König# ARMv7M
4024477ca45SUwe Kleine-Königconfig CPU_V7M
4034477ca45SUwe Kleine-König	bool
4044477ca45SUwe Kleine-König	select CPU_32v7M
4054477ca45SUwe Kleine-König	select CPU_ABRT_NOMMU
4064477ca45SUwe Kleine-König	select CPU_CACHE_NOP
4074477ca45SUwe Kleine-König	select CPU_PABRT_LEGACY
4084477ca45SUwe Kleine-König	select CPU_THUMBONLY
4094477ca45SUwe Kleine-König
410bc7dea00SUwe Kleine-Königconfig CPU_THUMBONLY
411bc7dea00SUwe Kleine-König	bool
412bc7dea00SUwe Kleine-König	# There are no CPUs available with MMU that don't implement an ARM ISA:
413bc7dea00SUwe Kleine-König	depends on !MMU
414bc7dea00SUwe Kleine-König	help
415bc7dea00SUwe Kleine-König	  Select this if your CPU doesn't support the 32 bit ARM instructions.
416bc7dea00SUwe Kleine-König
4171da177e4SLinus Torvalds# Figure out what processor architecture version we should be using.
4181da177e4SLinus Torvalds# This defines the compiler instruction set which depends on the machine type.
4191da177e4SLinus Torvaldsconfig CPU_32v3
4201da177e4SLinus Torvalds	bool
4218762df4dSRussell King	select CPU_USE_DOMAINS if MMU
422f6f91b0dSRussell King	select NEED_KUSER_HELPERS
42351aaf81fSRussell King	select TLS_REG_EMUL if SMP || !MMU
424*fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
4251da177e4SLinus Torvalds
4261da177e4SLinus Torvaldsconfig CPU_32v4
4271da177e4SLinus Torvalds	bool
4288762df4dSRussell King	select CPU_USE_DOMAINS if MMU
429f6f91b0dSRussell King	select NEED_KUSER_HELPERS
43051aaf81fSRussell King	select TLS_REG_EMUL if SMP || !MMU
431*fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
4321da177e4SLinus Torvalds
433260e98edSLennert Buytenhekconfig CPU_32v4T
434260e98edSLennert Buytenhek	bool
4358762df4dSRussell King	select CPU_USE_DOMAINS if MMU
436f6f91b0dSRussell King	select NEED_KUSER_HELPERS
43751aaf81fSRussell King	select TLS_REG_EMUL if SMP || !MMU
438*fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
439260e98edSLennert Buytenhek
4401da177e4SLinus Torvaldsconfig CPU_32v5
4411da177e4SLinus Torvalds	bool
4428762df4dSRussell King	select CPU_USE_DOMAINS if MMU
443f6f91b0dSRussell King	select NEED_KUSER_HELPERS
44451aaf81fSRussell King	select TLS_REG_EMUL if SMP || !MMU
4451da177e4SLinus Torvalds
4461da177e4SLinus Torvaldsconfig CPU_32v6
4471da177e4SLinus Torvalds	bool
448b1b3f49cSRussell King	select TLS_REG_EMUL if !CPU_32v6K && !MMU
4491da177e4SLinus Torvalds
450e399b1a4SRussell Kingconfig CPU_32v6K
45160799c6dSRussell King	bool
4521da177e4SLinus Torvalds
45323688e99SCatalin Marinasconfig CPU_32v7
45423688e99SCatalin Marinas	bool
45523688e99SCatalin Marinas
4564477ca45SUwe Kleine-Königconfig CPU_32v7M
4574477ca45SUwe Kleine-König	bool
4584477ca45SUwe Kleine-König
4591da177e4SLinus Torvalds# The abort model
4600f45d7f3SHyok S. Choiconfig CPU_ABRT_NOMMU
4610f45d7f3SHyok S. Choi	bool
4620f45d7f3SHyok S. Choi
4631da177e4SLinus Torvaldsconfig CPU_ABRT_EV4
4641da177e4SLinus Torvalds	bool
4651da177e4SLinus Torvalds
4661da177e4SLinus Torvaldsconfig CPU_ABRT_EV4T
4671da177e4SLinus Torvalds	bool
4681da177e4SLinus Torvalds
4691da177e4SLinus Torvaldsconfig CPU_ABRT_LV4T
4701da177e4SLinus Torvalds	bool
4711da177e4SLinus Torvalds
4721da177e4SLinus Torvaldsconfig CPU_ABRT_EV5T
4731da177e4SLinus Torvalds	bool
4741da177e4SLinus Torvalds
4751da177e4SLinus Torvaldsconfig CPU_ABRT_EV5TJ
4761da177e4SLinus Torvalds	bool
4771da177e4SLinus Torvalds
4781da177e4SLinus Torvaldsconfig CPU_ABRT_EV6
4791da177e4SLinus Torvalds	bool
4801da177e4SLinus Torvalds
48123688e99SCatalin Marinasconfig CPU_ABRT_EV7
48223688e99SCatalin Marinas	bool
48323688e99SCatalin Marinas
4844fb28474SKirill A. Shutemovconfig CPU_PABRT_LEGACY
48548d7927bSPaul Brook	bool
48648d7927bSPaul Brook
4874fb28474SKirill A. Shutemovconfig CPU_PABRT_V6
4884fb28474SKirill A. Shutemov	bool
4894fb28474SKirill A. Shutemov
4904fb28474SKirill A. Shutemovconfig CPU_PABRT_V7
49148d7927bSPaul Brook	bool
49248d7927bSPaul Brook
4931da177e4SLinus Torvalds# The cache model
4941da177e4SLinus Torvaldsconfig CPU_CACHE_V4
4951da177e4SLinus Torvalds	bool
4961da177e4SLinus Torvalds
4971da177e4SLinus Torvaldsconfig CPU_CACHE_V4WT
4981da177e4SLinus Torvalds	bool
4991da177e4SLinus Torvalds
5001da177e4SLinus Torvaldsconfig CPU_CACHE_V4WB
5011da177e4SLinus Torvalds	bool
5021da177e4SLinus Torvalds
5031da177e4SLinus Torvaldsconfig CPU_CACHE_V6
5041da177e4SLinus Torvalds	bool
5051da177e4SLinus Torvalds
50623688e99SCatalin Marinasconfig CPU_CACHE_V7
50723688e99SCatalin Marinas	bool
50823688e99SCatalin Marinas
5094477ca45SUwe Kleine-Königconfig CPU_CACHE_NOP
5104477ca45SUwe Kleine-König	bool
5114477ca45SUwe Kleine-König
5121da177e4SLinus Torvaldsconfig CPU_CACHE_VIVT
5131da177e4SLinus Torvalds	bool
5141da177e4SLinus Torvalds
5151da177e4SLinus Torvaldsconfig CPU_CACHE_VIPT
5161da177e4SLinus Torvalds	bool
5171da177e4SLinus Torvalds
51828853ac8SPaulius Zaleckasconfig CPU_CACHE_FA
51928853ac8SPaulius Zaleckas	bool
52028853ac8SPaulius Zaleckas
521f9c21a6eSHyok S. Choiif MMU
5221da177e4SLinus Torvalds# The copy-page model
5231da177e4SLinus Torvaldsconfig CPU_COPY_V4WT
5241da177e4SLinus Torvalds	bool
5251da177e4SLinus Torvalds
5261da177e4SLinus Torvaldsconfig CPU_COPY_V4WB
5271da177e4SLinus Torvalds	bool
5281da177e4SLinus Torvalds
5290ed15071SLennert Buytenhekconfig CPU_COPY_FEROCEON
5300ed15071SLennert Buytenhek	bool
5310ed15071SLennert Buytenhek
53228853ac8SPaulius Zaleckasconfig CPU_COPY_FA
53328853ac8SPaulius Zaleckas	bool
53428853ac8SPaulius Zaleckas
5351da177e4SLinus Torvaldsconfig CPU_COPY_V6
5361da177e4SLinus Torvalds	bool
5371da177e4SLinus Torvalds
5381da177e4SLinus Torvalds# This selects the TLB model
5391da177e4SLinus Torvaldsconfig CPU_TLB_V4WT
5401da177e4SLinus Torvalds	bool
5411da177e4SLinus Torvalds	help
5421da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writethrough cache.
5431da177e4SLinus Torvalds
5441da177e4SLinus Torvaldsconfig CPU_TLB_V4WB
5451da177e4SLinus Torvalds	bool
5461da177e4SLinus Torvalds	help
5471da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writeback cache.
5481da177e4SLinus Torvalds
5491da177e4SLinus Torvaldsconfig CPU_TLB_V4WBI
5501da177e4SLinus Torvalds	bool
5511da177e4SLinus Torvalds	help
5521da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writeback cache and invalidate
5531da177e4SLinus Torvalds	  instruction cache entry.
5541da177e4SLinus Torvalds
55599c6dc11SLennert Buytenhekconfig CPU_TLB_FEROCEON
55699c6dc11SLennert Buytenhek	bool
55799c6dc11SLennert Buytenhek	help
55899c6dc11SLennert Buytenhek	  Feroceon TLB (v4wbi with non-outer-cachable page table walks).
55999c6dc11SLennert Buytenhek
56028853ac8SPaulius Zaleckasconfig CPU_TLB_FA
56128853ac8SPaulius Zaleckas	bool
56228853ac8SPaulius Zaleckas	help
56328853ac8SPaulius Zaleckas	  Faraday ARM FA526 architecture, unified TLB with writeback cache
56428853ac8SPaulius Zaleckas	  and invalidate instruction cache entry. Branch target buffer is
56528853ac8SPaulius Zaleckas	  also supported.
56628853ac8SPaulius Zaleckas
5671da177e4SLinus Torvaldsconfig CPU_TLB_V6
5681da177e4SLinus Torvalds	bool
5691da177e4SLinus Torvalds
5702ccdd1e7SCatalin Marinasconfig CPU_TLB_V7
5712ccdd1e7SCatalin Marinas	bool
5722ccdd1e7SCatalin Marinas
573e220ba60SDave Estesconfig VERIFY_PERMISSION_FAULT
574e220ba60SDave Estes	bool
575f9c21a6eSHyok S. Choiendif
576f9c21a6eSHyok S. Choi
577516793c6SRussell Kingconfig CPU_HAS_ASID
578516793c6SRussell King	bool
579516793c6SRussell King	help
580516793c6SRussell King	  This indicates whether the CPU has the ASID register; used to
581516793c6SRussell King	  tag TLB and possibly cache entries.
582516793c6SRussell King
583fefdaa06SHyok S. Choiconfig CPU_CP15
584fefdaa06SHyok S. Choi	bool
585fefdaa06SHyok S. Choi	help
586fefdaa06SHyok S. Choi	  Processor has the CP15 register.
587fefdaa06SHyok S. Choi
588fefdaa06SHyok S. Choiconfig CPU_CP15_MMU
589fefdaa06SHyok S. Choi	bool
590fefdaa06SHyok S. Choi	select CPU_CP15
591fefdaa06SHyok S. Choi	help
592fefdaa06SHyok S. Choi	  Processor has the CP15 register, which has MMU related registers.
593fefdaa06SHyok S. Choi
594fefdaa06SHyok S. Choiconfig CPU_CP15_MPU
595fefdaa06SHyok S. Choi	bool
596fefdaa06SHyok S. Choi	select CPU_CP15
597fefdaa06SHyok S. Choi	help
598fefdaa06SHyok S. Choi	  Processor has the CP15 register, which has MPU related registers.
599fefdaa06SHyok S. Choi
600247055aaSCatalin Marinasconfig CPU_USE_DOMAINS
601247055aaSCatalin Marinas	bool
602247055aaSCatalin Marinas	help
603247055aaSCatalin Marinas	  This option enables or disables the use of domain switching
604247055aaSCatalin Marinas	  via the set_fs() function.
605247055aaSCatalin Marinas
6066b1814cdSMaxime Coquelin stm32config CPU_V7M_NUM_IRQ
6076b1814cdSMaxime Coquelin stm32	int "Number of external interrupts connected to the NVIC"
6086b1814cdSMaxime Coquelin stm32	depends on CPU_V7M
6096b1814cdSMaxime Coquelin stm32	default 90 if ARCH_STM32
6106b1814cdSMaxime Coquelin stm32	default 38 if ARCH_EFM32
61145b0fa09SStefan Agner	default 112 if SOC_VF610
6126b1814cdSMaxime Coquelin stm32	default 240
6136b1814cdSMaxime Coquelin stm32	help
6146b1814cdSMaxime Coquelin stm32	  This option indicates the number of interrupts connected to the NVIC.
6156b1814cdSMaxime Coquelin stm32	  The value can be larger than the real number of interrupts supported
6166b1814cdSMaxime Coquelin stm32	  by the system, but must not be lower.
6176b1814cdSMaxime Coquelin stm32	  The default value is 240, corresponding to the maximum number of
6186b1814cdSMaxime Coquelin stm32	  interrupts supported by the NVIC on Cortex-M family.
6196b1814cdSMaxime Coquelin stm32
6206b1814cdSMaxime Coquelin stm32	  If unsure, keep default value.
6216b1814cdSMaxime Coquelin stm32
62223bdf86aSLennert Buytenhek#
62323bdf86aSLennert Buytenhek# CPU supports 36-bit I/O
62423bdf86aSLennert Buytenhek#
62523bdf86aSLennert Buytenhekconfig IO_36
62623bdf86aSLennert Buytenhek	bool
62723bdf86aSLennert Buytenhek
6281da177e4SLinus Torvaldscomment "Processor Features"
6291da177e4SLinus Torvalds
630497b7e94SCatalin Marinasconfig ARM_LPAE
631497b7e94SCatalin Marinas	bool "Support for the Large Physical Address Extension"
63208a183f0SCatalin Marinas	depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \
63308a183f0SCatalin Marinas		!CPU_32v4 && !CPU_32v3
634497b7e94SCatalin Marinas	help
635497b7e94SCatalin Marinas	  Say Y if you have an ARMv7 processor supporting the LPAE page
636497b7e94SCatalin Marinas	  table format and you would like to access memory beyond the
637497b7e94SCatalin Marinas	  4GB limit. The resulting kernel image will not run on
638497b7e94SCatalin Marinas	  processors without the LPA extension.
639497b7e94SCatalin Marinas
640497b7e94SCatalin Marinas	  If unsure, say N.
641497b7e94SCatalin Marinas
642d8dc7fbdSRussell Kingconfig ARM_PV_FIXUP
643d8dc7fbdSRussell King	def_bool y
644d8dc7fbdSRussell King	depends on ARM_LPAE && ARM_PATCH_PHYS_VIRT && ARCH_KEYSTONE
645d8dc7fbdSRussell King
646497b7e94SCatalin Marinasconfig ARCH_PHYS_ADDR_T_64BIT
647497b7e94SCatalin Marinas	def_bool ARM_LPAE
648497b7e94SCatalin Marinas
649497b7e94SCatalin Marinasconfig ARCH_DMA_ADDR_T_64BIT
650497b7e94SCatalin Marinas	bool
651497b7e94SCatalin Marinas
6521da177e4SLinus Torvaldsconfig ARM_THUMB
653bc7dea00SUwe Kleine-König	bool "Support Thumb user binaries" if !CPU_THUMBONLY
6544477ca45SUwe Kleine-König	depends on CPU_ARM720T || CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || \
6554477ca45SUwe Kleine-König		CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || \
6564477ca45SUwe Kleine-König		CPU_ARM1020 || CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \
6574477ca45SUwe Kleine-König		CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_V6 || CPU_V6K || \
6584477ca45SUwe Kleine-König		CPU_V7 || CPU_FEROCEON || CPU_V7M
6591da177e4SLinus Torvalds	default y
6601da177e4SLinus Torvalds	help
6611da177e4SLinus Torvalds	  Say Y if you want to include kernel support for running user space
6621da177e4SLinus Torvalds	  Thumb binaries.
6631da177e4SLinus Torvalds
6641da177e4SLinus Torvalds	  The Thumb instruction set is a compressed form of the standard ARM
6651da177e4SLinus Torvalds	  instruction set resulting in smaller binaries at the expense of
6661da177e4SLinus Torvalds	  slightly less efficient code.
6671da177e4SLinus Torvalds
6681da177e4SLinus Torvalds	  If you don't know what this all is, saying Y is a safe choice.
6691da177e4SLinus Torvalds
670d7f864beSCatalin Marinasconfig ARM_THUMBEE
671d7f864beSCatalin Marinas	bool "Enable ThumbEE CPU extension"
672d7f864beSCatalin Marinas	depends on CPU_V7
673d7f864beSCatalin Marinas	help
674d7f864beSCatalin Marinas	  Say Y here if you have a CPU with the ThumbEE extension and code to
675d7f864beSCatalin Marinas	  make use of it. Say N for code that can run on CPUs without ThumbEE.
676d7f864beSCatalin Marinas
6775b6728d4SDave Martinconfig ARM_VIRT_EXT
678651134b0SWill Deacon	bool
679651134b0SWill Deacon	depends on MMU
680651134b0SWill Deacon	default y if CPU_V7
6815b6728d4SDave Martin	help
6825b6728d4SDave Martin	  Enable the kernel to make use of the ARM Virtualization
6835b6728d4SDave Martin	  Extensions to install hypervisors without run-time firmware
6845b6728d4SDave Martin	  assistance.
6855b6728d4SDave Martin
6865b6728d4SDave Martin	  A compliant bootloader is required in order to make maximum
6875b6728d4SDave Martin	  use of this feature.  Refer to Documentation/arm/Booting for
6885b6728d4SDave Martin	  details.
6895b6728d4SDave Martin
69064d2dc38SLeif Lindholmconfig SWP_EMULATE
691a11dd731SRussell King	bool "Emulate SWP/SWPB instructions" if !SMP
692b6ccb980SWill Deacon	depends on CPU_V7
69364d2dc38SLeif Lindholm	default y if SMP
694b1b3f49cSRussell King	select HAVE_PROC_CPU if PROC_FS
69564d2dc38SLeif Lindholm	help
69664d2dc38SLeif Lindholm	  ARMv6 architecture deprecates use of the SWP/SWPB instructions.
69764d2dc38SLeif Lindholm	  ARMv7 multiprocessing extensions introduce the ability to disable
69864d2dc38SLeif Lindholm	  these instructions, triggering an undefined instruction exception
69964d2dc38SLeif Lindholm	  when executed. Say Y here to enable software emulation of these
70064d2dc38SLeif Lindholm	  instructions for userspace (not kernel) using LDREX/STREX.
70164d2dc38SLeif Lindholm	  Also creates /proc/cpu/swp_emulation for statistics.
70264d2dc38SLeif Lindholm
70364d2dc38SLeif Lindholm	  In some older versions of glibc [<=2.8] SWP is used during futex
70464d2dc38SLeif Lindholm	  trylock() operations with the assumption that the code will not
70564d2dc38SLeif Lindholm	  be preempted. This invalid assumption may be more likely to fail
70664d2dc38SLeif Lindholm	  with SWP emulation enabled, leading to deadlock of the user
70764d2dc38SLeif Lindholm	  application.
70864d2dc38SLeif Lindholm
70964d2dc38SLeif Lindholm	  NOTE: when accessing uncached shared regions, LDREX/STREX rely
71064d2dc38SLeif Lindholm	  on an external transaction monitoring block called a global
71164d2dc38SLeif Lindholm	  monitor to maintain update atomicity. If your system does not
71264d2dc38SLeif Lindholm	  implement a global monitor, this option can cause programs that
71364d2dc38SLeif Lindholm	  perform SWP operations to uncached memory to deadlock.
71464d2dc38SLeif Lindholm
71564d2dc38SLeif Lindholm	  If unsure, say Y.
71664d2dc38SLeif Lindholm
7171da177e4SLinus Torvaldsconfig CPU_BIG_ENDIAN
7181da177e4SLinus Torvalds	bool "Build big-endian kernel"
7191da177e4SLinus Torvalds	depends on ARCH_SUPPORTS_BIG_ENDIAN
7201da177e4SLinus Torvalds	help
7211da177e4SLinus Torvalds	  Say Y if you plan on running a kernel in big-endian mode.
7221da177e4SLinus Torvalds	  Note that your board must be properly built and your board
7231da177e4SLinus Torvalds	  port must properly enable any big-endian related features
7241da177e4SLinus Torvalds	  of your chipset/board/processor.
7251da177e4SLinus Torvalds
72626584853SCatalin Marinasconfig CPU_ENDIAN_BE8
72726584853SCatalin Marinas	bool
72826584853SCatalin Marinas	depends on CPU_BIG_ENDIAN
729e399b1a4SRussell King	default CPU_V6 || CPU_V6K || CPU_V7
73026584853SCatalin Marinas	help
73126584853SCatalin Marinas	  Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
73226584853SCatalin Marinas
73326584853SCatalin Marinasconfig CPU_ENDIAN_BE32
73426584853SCatalin Marinas	bool
73526584853SCatalin Marinas	depends on CPU_BIG_ENDIAN
73626584853SCatalin Marinas	default !CPU_ENDIAN_BE8
73726584853SCatalin Marinas	help
73826584853SCatalin Marinas	  Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
73926584853SCatalin Marinas
7406afd6faeSHyok S. Choiconfig CPU_HIGH_VECTOR
7416340aa61SRobert P. J. Day	depends on !MMU && CPU_CP15 && !CPU_ARM740T
7426afd6faeSHyok S. Choi	bool "Select the High exception vector"
7436afd6faeSHyok S. Choi	help
7446afd6faeSHyok S. Choi	  Say Y here to select high exception vector(0xFFFF0000~).
7459b7333a9SWill Deacon	  The exception vector can vary depending on the platform
7466afd6faeSHyok S. Choi	  design in nommu mode. If your platform needs to select
7476afd6faeSHyok S. Choi	  high exception vector, say Y.
7486afd6faeSHyok S. Choi	  Otherwise or if you are unsure, say N, and the low exception
7496afd6faeSHyok S. Choi	  vector (0x00000000~) will be used.
7506afd6faeSHyok S. Choi
7511da177e4SLinus Torvaldsconfig CPU_ICACHE_DISABLE
752f12d0d7cSHyok S. Choi	bool "Disable I-Cache (I-bit)"
753357c9c1fSRussell King	depends on CPU_CP15 && !(CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)
7541da177e4SLinus Torvalds	help
7551da177e4SLinus Torvalds	  Say Y here to disable the processor instruction cache. Unless
7561da177e4SLinus Torvalds	  you have a reason not to or are unsure, say N.
7571da177e4SLinus Torvalds
7581da177e4SLinus Torvaldsconfig CPU_DCACHE_DISABLE
759f12d0d7cSHyok S. Choi	bool "Disable D-Cache (C-bit)"
760e1e2f6e4SFlorian Fainelli	depends on CPU_CP15 && !SMP
7611da177e4SLinus Torvalds	help
7621da177e4SLinus Torvalds	  Say Y here to disable the processor data cache. Unless
7631da177e4SLinus Torvalds	  you have a reason not to or are unsure, say N.
7641da177e4SLinus Torvalds
765f37f46ebSHyok S. Choiconfig CPU_DCACHE_SIZE
766f37f46ebSHyok S. Choi	hex
767f37f46ebSHyok S. Choi	depends on CPU_ARM740T || CPU_ARM946E
768f37f46ebSHyok S. Choi	default 0x00001000 if CPU_ARM740T
769f37f46ebSHyok S. Choi	default 0x00002000 # default size for ARM946E-S
770f37f46ebSHyok S. Choi	help
771f37f46ebSHyok S. Choi	  Some cores are synthesizable to have various sized cache. For
772f37f46ebSHyok S. Choi	  ARM946E-S case, it can vary from 0KB to 1MB.
773f37f46ebSHyok S. Choi	  To support such cache operations, it is efficient to know the size
774f37f46ebSHyok S. Choi	  before compile time.
775f37f46ebSHyok S. Choi	  If your SoC is configured to have a different size, define the value
776f37f46ebSHyok S. Choi	  here with proper conditions.
777f37f46ebSHyok S. Choi
7781da177e4SLinus Torvaldsconfig CPU_DCACHE_WRITETHROUGH
7791da177e4SLinus Torvalds	bool "Force write through D-cache"
78028853ac8SPaulius Zaleckas	depends on (CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_FA526) && !CPU_DCACHE_DISABLE
7811da177e4SLinus Torvalds	default y if CPU_ARM925T
7821da177e4SLinus Torvalds	help
7831da177e4SLinus Torvalds	  Say Y here to use the data cache in writethrough mode. Unless you
7841da177e4SLinus Torvalds	  specifically require this or are unsure, say N.
7851da177e4SLinus Torvalds
7861da177e4SLinus Torvaldsconfig CPU_CACHE_ROUND_ROBIN
7871da177e4SLinus Torvalds	bool "Round robin I and D cache replacement algorithm"
788f37f46ebSHyok S. Choi	depends on (CPU_ARM926T || CPU_ARM946E || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
7891da177e4SLinus Torvalds	help
7901da177e4SLinus Torvalds	  Say Y here to use the predictable round-robin cache replacement
7911da177e4SLinus Torvalds	  policy.  Unless you specifically require this or are unsure, say N.
7921da177e4SLinus Torvalds
7931da177e4SLinus Torvaldsconfig CPU_BPREDICT_DISABLE
7941da177e4SLinus Torvalds	bool "Disable branch prediction"
795e399b1a4SRussell King	depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526
7961da177e4SLinus Torvalds	help
7971da177e4SLinus Torvalds	  Say Y here to disable branch prediction.  If unsure, say N.
7982d2669b6SNicolas Pitre
7994b0e07a5SNicolas Pitreconfig TLS_REG_EMUL
8004b0e07a5SNicolas Pitre	bool
801f6f91b0dSRussell King	select NEED_KUSER_HELPERS
8024b0e07a5SNicolas Pitre	help
80370489c88SNicolas Pitre	  An SMP system using a pre-ARMv6 processor (there are apparently
80470489c88SNicolas Pitre	  a few prototypes like that in existence) and therefore access to
80570489c88SNicolas Pitre	  that required register must be emulated.
8064b0e07a5SNicolas Pitre
807f6f91b0dSRussell Kingconfig NEED_KUSER_HELPERS
808f6f91b0dSRussell King	bool
809f6f91b0dSRussell King
810f6f91b0dSRussell Kingconfig KUSER_HELPERS
811f6f91b0dSRussell King	bool "Enable kuser helpers in vector page" if !NEED_KUSER_HELPERS
81208b964ffSNathan Lynch	depends on MMU
813f6f91b0dSRussell King	default y
814f6f91b0dSRussell King	help
815f6f91b0dSRussell King	  Warning: disabling this option may break user programs.
816f6f91b0dSRussell King
817f6f91b0dSRussell King	  Provide kuser helpers in the vector page.  The kernel provides
818f6f91b0dSRussell King	  helper code to userspace in read only form at a fixed location
819f6f91b0dSRussell King	  in the high vector page to allow userspace to be independent of
820f6f91b0dSRussell King	  the CPU type fitted to the system.  This permits binaries to be
821f6f91b0dSRussell King	  run on ARMv4 through to ARMv7 without modification.
822f6f91b0dSRussell King
823ac124504SNicolas Pitre	  See Documentation/arm/kernel_user_helpers.txt for details.
824ac124504SNicolas Pitre
825f6f91b0dSRussell King	  However, the fixed address nature of these helpers can be used
826f6f91b0dSRussell King	  by ROP (return orientated programming) authors when creating
827f6f91b0dSRussell King	  exploits.
828f6f91b0dSRussell King
829f6f91b0dSRussell King	  If all of the binaries and libraries which run on your platform
830f6f91b0dSRussell King	  are built specifically for your platform, and make no use of
831ac124504SNicolas Pitre	  these helpers, then you can turn this option off to hinder
832ac124504SNicolas Pitre	  such exploits. However, in that case, if a binary or library
833ac124504SNicolas Pitre	  relying on those helpers is run, it will receive a SIGILL signal,
834ac124504SNicolas Pitre	  which will terminate the program.
835f6f91b0dSRussell King
836f6f91b0dSRussell King	  Say N here only if you are absolutely certain that you do not
837f6f91b0dSRussell King	  need these helpers; otherwise, the safe option is to say Y.
838f6f91b0dSRussell King
839e5b61debSNathan Lynchconfig VDSO
840e5b61debSNathan Lynch	bool "Enable VDSO for acceleration of some system calls"
8415d38000bSNathan Lynch	depends on AEABI && MMU && CPU_V7
842e5b61debSNathan Lynch	default y if ARM_ARCH_TIMER
843e5b61debSNathan Lynch	select GENERIC_TIME_VSYSCALL
844e5b61debSNathan Lynch	help
845e5b61debSNathan Lynch	  Place in the process address space an ELF shared object
846e5b61debSNathan Lynch	  providing fast implementations of gettimeofday and
847e5b61debSNathan Lynch	  clock_gettime.  Systems that implement the ARM architected
848e5b61debSNathan Lynch	  timer will receive maximum benefit.
849e5b61debSNathan Lynch
850e5b61debSNathan Lynch	  You must have glibc 2.22 or later for programs to seamlessly
851e5b61debSNathan Lynch	  take advantage of this.
852e5b61debSNathan Lynch
853ad642d9fSCatalin Marinasconfig DMA_CACHE_RWFO
854ad642d9fSCatalin Marinas	bool "Enable read/write for ownership DMA cache maintenance"
8553bc28c8eSRussell King	depends on CPU_V6K && SMP
856ad642d9fSCatalin Marinas	default y
857ad642d9fSCatalin Marinas	help
858ad642d9fSCatalin Marinas	  The Snoop Control Unit on ARM11MPCore does not detect the
859ad642d9fSCatalin Marinas	  cache maintenance operations and the dma_{map,unmap}_area()
860ad642d9fSCatalin Marinas	  functions may leave stale cache entries on other CPUs. By
861ad642d9fSCatalin Marinas	  enabling this option, Read or Write For Ownership in the ARMv6
862ad642d9fSCatalin Marinas	  DMA cache maintenance functions is performed. These LDR/STR
863ad642d9fSCatalin Marinas	  instructions change the cache line state to shared or modified
864ad642d9fSCatalin Marinas	  so that the cache operation has the desired effect.
865ad642d9fSCatalin Marinas
866ad642d9fSCatalin Marinas	  Note that the workaround is only valid on processors that do
867ad642d9fSCatalin Marinas	  not perform speculative loads into the D-cache. For such
868ad642d9fSCatalin Marinas	  processors, if cache maintenance operations are not broadcast
869ad642d9fSCatalin Marinas	  in hardware, other workarounds are needed (e.g. cache
870ad642d9fSCatalin Marinas	  maintenance broadcasting in software via FIQ).
871ad642d9fSCatalin Marinas
872953233dcSCatalin Marinasconfig OUTER_CACHE
873953233dcSCatalin Marinas	bool
874382266adSCatalin Marinas
875319f551aSCatalin Marinasconfig OUTER_CACHE_SYNC
876319f551aSCatalin Marinas	bool
877f8130906SRussell King	select ARM_HEAVY_MB
878319f551aSCatalin Marinas	help
879319f551aSCatalin Marinas	  The outer cache has a outer_cache_fns.sync function pointer
880319f551aSCatalin Marinas	  that can be used to drain the write buffer of the outer cache.
881319f551aSCatalin Marinas
88299c6dc11SLennert Buytenhekconfig CACHE_FEROCEON_L2
88399c6dc11SLennert Buytenhek	bool "Enable the Feroceon L2 cache controller"
884ba364fc7SAndrew Lunn	depends on ARCH_MV78XX0 || ARCH_MVEBU
88599c6dc11SLennert Buytenhek	default y
886382266adSCatalin Marinas	select OUTER_CACHE
88799c6dc11SLennert Buytenhek	help
88899c6dc11SLennert Buytenhek	  This option enables the Feroceon L2 cache controller.
88999c6dc11SLennert Buytenhek
8904360bb41SRonen Shitritconfig CACHE_FEROCEON_L2_WRITETHROUGH
8914360bb41SRonen Shitrit	bool "Force Feroceon L2 cache write through"
8924360bb41SRonen Shitrit	depends on CACHE_FEROCEON_L2
8934360bb41SRonen Shitrit	help
8944360bb41SRonen Shitrit	  Say Y here to use the Feroceon L2 cache in writethrough mode.
8954360bb41SRonen Shitrit	  Unless you specifically require this, say N for writeback mode.
8964360bb41SRonen Shitrit
897ce5ea9f3SDave Martinconfig MIGHT_HAVE_CACHE_L2X0
898ce5ea9f3SDave Martin	bool
899ce5ea9f3SDave Martin	help
900ce5ea9f3SDave Martin	  This option should be selected by machines which have a L2x0
901ce5ea9f3SDave Martin	  or PL310 cache controller, but where its use is optional.
902ce5ea9f3SDave Martin
903ce5ea9f3SDave Martin	  The only effect of this option is to make CACHE_L2X0 and
904ce5ea9f3SDave Martin	  related options available to the user for configuration.
905ce5ea9f3SDave Martin
906ce5ea9f3SDave Martin	  Boards or SoCs which always require the cache controller
907ce5ea9f3SDave Martin	  support to be present should select CACHE_L2X0 directly
908ce5ea9f3SDave Martin	  instead of this option, thus preventing the user from
909ce5ea9f3SDave Martin	  inadvertently configuring a broken kernel.
910ce5ea9f3SDave Martin
9111da177e4SLinus Torvaldsconfig CACHE_L2X0
912ce5ea9f3SDave Martin	bool "Enable the L2x0 outer cache controller" if MIGHT_HAVE_CACHE_L2X0
913ce5ea9f3SDave Martin	default MIGHT_HAVE_CACHE_L2X0
9141da177e4SLinus Torvalds	select OUTER_CACHE
91523107c54SCatalin Marinas	select OUTER_CACHE_SYNC
916ba927951SCatalin Marinas	help
917ba927951SCatalin Marinas	  This option enables the L2x0 PrimeCell.
918905a09d5SEric Miao
919a641f3a6SRussell Kingif CACHE_L2X0
920a641f3a6SRussell King
921c0fe18baSRussell Kingconfig PL310_ERRATA_588369
922c0fe18baSRussell King	bool "PL310 errata: Clean & Invalidate maintenance operations do not invalidate clean lines"
923c0fe18baSRussell King	help
924c0fe18baSRussell King	   The PL310 L2 cache controller implements three types of Clean &
925c0fe18baSRussell King	   Invalidate maintenance operations: by Physical Address
926c0fe18baSRussell King	   (offset 0x7F0), by Index/Way (0x7F8) and by Way (0x7FC).
927c0fe18baSRussell King	   They are architecturally defined to behave as the execution of a
928c0fe18baSRussell King	   clean operation followed immediately by an invalidate operation,
929c0fe18baSRussell King	   both performing to the same memory location. This functionality
93080d3cb91SShawn Guo	   is not correctly implemented in PL310 prior to r2p0 (fixed in r2p0)
93180d3cb91SShawn Guo	   as clean lines are not invalidated as a result of these operations.
932c0fe18baSRussell King
933c0fe18baSRussell Kingconfig PL310_ERRATA_727915
934c0fe18baSRussell King	bool "PL310 errata: Background Clean & Invalidate by Way operation can cause data corruption"
935c0fe18baSRussell King	help
936c0fe18baSRussell King	  PL310 implements the Clean & Invalidate by Way L2 cache maintenance
937c0fe18baSRussell King	  operation (offset 0x7FC). This operation runs in background so that
938c0fe18baSRussell King	  PL310 can handle normal accesses while it is in progress. Under very
939c0fe18baSRussell King	  rare circumstances, due to this erratum, write data can be lost when
940c0fe18baSRussell King	  PL310 treats a cacheable write transaction during a Clean &
94180d3cb91SShawn Guo	  Invalidate by Way operation.  Revisions prior to r3p1 are affected by
94280d3cb91SShawn Guo	  this errata (fixed in r3p1).
943c0fe18baSRussell King
944c0fe18baSRussell Kingconfig PL310_ERRATA_753970
945c0fe18baSRussell King	bool "PL310 errata: cache sync operation may be faulty"
946c0fe18baSRussell King	help
947c0fe18baSRussell King	  This option enables the workaround for the 753970 PL310 (r3p0) erratum.
948c0fe18baSRussell King
949c0fe18baSRussell King	  Under some condition the effect of cache sync operation on
950c0fe18baSRussell King	  the store buffer still remains when the operation completes.
951c0fe18baSRussell King	  This means that the store buffer is always asked to drain and
952c0fe18baSRussell King	  this prevents it from merging any further writes. The workaround
953c0fe18baSRussell King	  is to replace the normal offset of cache sync operation (0x730)
954c0fe18baSRussell King	  by another offset targeting an unmapped PL310 register 0x740.
955c0fe18baSRussell King	  This has the same effect as the cache sync operation: store buffer
956c0fe18baSRussell King	  drain and waiting for all buffers empty.
957c0fe18baSRussell King
958c0fe18baSRussell Kingconfig PL310_ERRATA_769419
959c0fe18baSRussell King	bool "PL310 errata: no automatic Store Buffer drain"
960c0fe18baSRussell King	help
961c0fe18baSRussell King	  On revisions of the PL310 prior to r3p2, the Store Buffer does
962c0fe18baSRussell King	  not automatically drain. This can cause normal, non-cacheable
963c0fe18baSRussell King	  writes to be retained when the memory system is idle, leading
964c0fe18baSRussell King	  to suboptimal I/O performance for drivers using coherent DMA.
965c0fe18baSRussell King	  This option adds a write barrier to the cpu_idle loop so that,
966c0fe18baSRussell King	  on systems with an outer cache, the store buffer is drained
967c0fe18baSRussell King	  explicitly.
968c0fe18baSRussell King
969a641f3a6SRussell Kingendif
970a641f3a6SRussell King
971573a652fSLennert Buytenhekconfig CACHE_TAUROS2
972573a652fSLennert Buytenhek	bool "Enable the Tauros2 L2 cache controller"
9733f408fa0SHaojian Zhuang	depends on (ARCH_DOVE || ARCH_MMP || CPU_PJ4)
974573a652fSLennert Buytenhek	default y
975573a652fSLennert Buytenhek	select OUTER_CACHE
976573a652fSLennert Buytenhek	help
977573a652fSLennert Buytenhek	  This option enables the Tauros2 L2 cache controller (as
978573a652fSLennert Buytenhek	  found on PJ1/PJ4).
979573a652fSLennert Buytenhek
980e7ecbc05SMasahiro Yamadaconfig CACHE_UNIPHIER
981e7ecbc05SMasahiro Yamada	bool "Enable the UniPhier outer cache controller"
982e7ecbc05SMasahiro Yamada	depends on ARCH_UNIPHIER
983e7ecbc05SMasahiro Yamada	default y
984e7ecbc05SMasahiro Yamada	select OUTER_CACHE
985e7ecbc05SMasahiro Yamada	select OUTER_CACHE_SYNC
986e7ecbc05SMasahiro Yamada	help
987e7ecbc05SMasahiro Yamada	  This option enables the UniPhier outer cache (system cache)
988e7ecbc05SMasahiro Yamada	  controller.
989e7ecbc05SMasahiro Yamada
990905a09d5SEric Miaoconfig CACHE_XSC3L2
991905a09d5SEric Miao	bool "Enable the L2 cache on XScale3"
992905a09d5SEric Miao	depends on CPU_XSC3
993905a09d5SEric Miao	default y
994905a09d5SEric Miao	select OUTER_CACHE
995905a09d5SEric Miao	help
996905a09d5SEric Miao	  This option enables the L2 cache on XScale3.
997910a17e5SKirill A. Shutemov
9985637a126SRussell Kingconfig ARM_L1_CACHE_SHIFT_6
9995637a126SRussell King	bool
1000a092f2b1SWill Deacon	default y if CPU_V7
10015637a126SRussell King	help
10025637a126SRussell King	  Setting ARM L1 cache line size to 64 Bytes.
10035637a126SRussell King
1004910a17e5SKirill A. Shutemovconfig ARM_L1_CACHE_SHIFT
1005910a17e5SKirill A. Shutemov	int
1006d6d502faSKukjin Kim	default 6 if ARM_L1_CACHE_SHIFT_6
1007910a17e5SKirill A. Shutemov	default 5
100847ab0deeSRussell King
100947ab0deeSRussell Kingconfig ARM_DMA_MEM_BUFFERABLE
1010e399b1a4SRussell King	bool "Use non-cacheable memory for DMA" if (CPU_V6 || CPU_V6K) && !CPU_V7
1011e399b1a4SRussell King	default y if CPU_V6 || CPU_V6K || CPU_V7
101247ab0deeSRussell King	help
101347ab0deeSRussell King	  Historically, the kernel has used strongly ordered mappings to
101447ab0deeSRussell King	  provide DMA coherent memory.  With the advent of ARMv7, mapping
101547ab0deeSRussell King	  memory with differing types results in unpredictable behaviour,
101647ab0deeSRussell King	  so on these CPUs, this option is forced on.
101747ab0deeSRussell King
101847ab0deeSRussell King	  Multiple mappings with differing attributes is also unpredictable
101947ab0deeSRussell King	  on ARMv6 CPUs, but since they do not have aggressive speculative
102047ab0deeSRussell King	  prefetch, no harm appears to occur.
102147ab0deeSRussell King
102247ab0deeSRussell King	  However, drivers may be missing the necessary barriers for ARMv6,
102347ab0deeSRussell King	  and therefore turning this on may result in unpredictable driver
102447ab0deeSRussell King	  behaviour.  Therefore, we offer this as an option.
102547ab0deeSRussell King
102647ab0deeSRussell King	  You are recommended say 'Y' here and debug any affected drivers.
1027ac1d426eSRussell King
1028e7c5650fSCatalin Marinasconfig ARCH_HAS_BARRIERS
1029e7c5650fSCatalin Marinas	bool
1030e7c5650fSCatalin Marinas	help
1031e7c5650fSCatalin Marinas	  This option allows the use of custom mandatory barriers
1032e7c5650fSCatalin Marinas	  included via the mach/barriers.h file.
1033d10d2d48SBen Dooks
1034f8130906SRussell Kingconfig ARM_HEAVY_MB
1035f8130906SRussell King	bool
1036f8130906SRussell King
1037d10d2d48SBen Dooksconfig ARCH_SUPPORTS_BIG_ENDIAN
1038d10d2d48SBen Dooks	bool
1039d10d2d48SBen Dooks	help
1040d10d2d48SBen Dooks	  This option specifies the architecture can support big endian
1041d10d2d48SBen Dooks	  operation.
10421e6b4811SKees Cook
104380d6b0c2SKees Cookconfig DEBUG_RODATA
104480d6b0c2SKees Cook	bool "Make kernel text and rodata read-only"
1045ac96680dSArnd Bergmann	depends on MMU && !XIP_KERNEL
104625362dc4SKees Cook	default y if CPU_V7
104725362dc4SKees Cook	help
104825362dc4SKees Cook	  If this is set, kernel text and rodata memory will be made
104925362dc4SKees Cook	  read-only, and non-text kernel memory will be made non-executable.
105025362dc4SKees Cook	  The tradeoff is that each region is padded to section-size (1MiB)
105125362dc4SKees Cook	  boundaries (because their permissions are different and splitting
105225362dc4SKees Cook	  the 1M pages into 4K ones causes TLB performance problems), which
105325362dc4SKees Cook	  can waste memory.
105425362dc4SKees Cook
105525362dc4SKees Cookconfig DEBUG_ALIGN_RODATA
105625362dc4SKees Cook	bool "Make rodata strictly non-executable"
105725362dc4SKees Cook	depends on DEBUG_RODATA
105880d6b0c2SKees Cook	default y
105980d6b0c2SKees Cook	help
106025362dc4SKees Cook	  If this is set, rodata will be made explicitly non-executable. This
106125362dc4SKees Cook	  provides protection on the rare chance that attackers might find and
106225362dc4SKees Cook	  use ROP gadgets that exist in the rodata section. This adds an
106325362dc4SKees Cook	  additional section-aligned split of rodata from kernel text so it
106425362dc4SKees Cook	  can be made explicitly non-executable. This padding may waste memory
106525362dc4SKees Cook	  space to gain the additional protection.
1066