xref: /linux/arch/arm/mm/Kconfig (revision b9baf5c8c5c356757f4f9d8180b5e9d234065bc3)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvaldscomment "Processor Type"
31da177e4SLinus Torvalds
41da177e4SLinus Torvalds# Select CPU types depending on the architecture selected.  This selects
51da177e4SLinus Torvalds# which CPUs we support in the kernel image, and the compiler instruction
61da177e4SLinus Torvalds# optimiser behaviour.
71da177e4SLinus Torvalds
807e0da78SHyok S. Choi# ARM7TDMI
907e0da78SHyok S. Choiconfig CPU_ARM7TDMI
10c32b7655SArnd Bergmann	bool
116b237a35SRussell King	depends on !MMU
1207e0da78SHyok S. Choi	select CPU_32v4T
1307e0da78SHyok S. Choi	select CPU_ABRT_LV4T
1407e0da78SHyok S. Choi	select CPU_CACHE_V4
15b1b3f49cSRussell King	select CPU_PABRT_LEGACY
1607e0da78SHyok S. Choi	help
1707e0da78SHyok S. Choi	  A 32-bit RISC microprocessor based on the ARM7 processor core
1807e0da78SHyok S. Choi	  which has no memory control unit and cache.
1907e0da78SHyok S. Choi
2007e0da78SHyok S. Choi	  Say Y if you want support for the ARM7TDMI processor.
2107e0da78SHyok S. Choi	  Otherwise, say N.
2207e0da78SHyok S. Choi
231da177e4SLinus Torvalds# ARM720T
241da177e4SLinus Torvaldsconfig CPU_ARM720T
2517d44d7dSArnd Bergmann	bool
26260e98edSLennert Buytenhek	select CPU_32v4T
271da177e4SLinus Torvalds	select CPU_ABRT_LV4T
281da177e4SLinus Torvalds	select CPU_CACHE_V4
291da177e4SLinus Torvalds	select CPU_CACHE_VIVT
30f9c21a6eSHyok S. Choi	select CPU_COPY_V4WT if MMU
31b1b3f49cSRussell King	select CPU_CP15_MMU
32b1b3f49cSRussell King	select CPU_PABRT_LEGACY
33c466bda6SRussell King	select CPU_THUMB_CAPABLE
34f9c21a6eSHyok S. Choi	select CPU_TLB_V4WT if MMU
351da177e4SLinus Torvalds	help
361da177e4SLinus Torvalds	  A 32-bit RISC processor with 8kByte Cache, Write Buffer and
371da177e4SLinus Torvalds	  MMU built around an ARM7TDMI core.
381da177e4SLinus Torvalds
391da177e4SLinus Torvalds	  Say Y if you want support for the ARM720T processor.
401da177e4SLinus Torvalds	  Otherwise, say N.
411da177e4SLinus Torvalds
42b731c311SHyok S. Choi# ARM740T
43b731c311SHyok S. Choiconfig CPU_ARM740T
4417d44d7dSArnd Bergmann	bool
456b237a35SRussell King	depends on !MMU
46b731c311SHyok S. Choi	select CPU_32v4T
47b731c311SHyok S. Choi	select CPU_ABRT_LV4T
4882d9b0d0SWill Deacon	select CPU_CACHE_V4
49b731c311SHyok S. Choi	select CPU_CP15_MPU
50b1b3f49cSRussell King	select CPU_PABRT_LEGACY
51c466bda6SRussell King	select CPU_THUMB_CAPABLE
52b731c311SHyok S. Choi	help
53b731c311SHyok S. Choi	  A 32-bit RISC processor with 8KB cache or 4KB variants,
54b731c311SHyok S. Choi	  write buffer and MPU(Protection Unit) built around
55b731c311SHyok S. Choi	  an ARM7TDMI core.
56b731c311SHyok S. Choi
57b731c311SHyok S. Choi	  Say Y if you want support for the ARM740T processor.
58b731c311SHyok S. Choi	  Otherwise, say N.
59b731c311SHyok S. Choi
6043f5f014SHyok S. Choi# ARM9TDMI
6143f5f014SHyok S. Choiconfig CPU_ARM9TDMI
62c32b7655SArnd Bergmann	bool
636b237a35SRussell King	depends on !MMU
6443f5f014SHyok S. Choi	select CPU_32v4T
650f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
6643f5f014SHyok S. Choi	select CPU_CACHE_V4
67b1b3f49cSRussell King	select CPU_PABRT_LEGACY
6843f5f014SHyok S. Choi	help
6943f5f014SHyok S. Choi	  A 32-bit RISC microprocessor based on the ARM9 processor core
7043f5f014SHyok S. Choi	  which has no memory control unit and cache.
7143f5f014SHyok S. Choi
7243f5f014SHyok S. Choi	  Say Y if you want support for the ARM9TDMI processor.
7343f5f014SHyok S. Choi	  Otherwise, say N.
7443f5f014SHyok S. Choi
751da177e4SLinus Torvalds# ARM920T
761da177e4SLinus Torvaldsconfig CPU_ARM920T
7717d44d7dSArnd Bergmann	bool
78260e98edSLennert Buytenhek	select CPU_32v4T
791da177e4SLinus Torvalds	select CPU_ABRT_EV4T
801da177e4SLinus Torvalds	select CPU_CACHE_V4WT
811da177e4SLinus Torvalds	select CPU_CACHE_VIVT
82f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
83b1b3f49cSRussell King	select CPU_CP15_MMU
84b1b3f49cSRussell King	select CPU_PABRT_LEGACY
85c466bda6SRussell King	select CPU_THUMB_CAPABLE
86f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
871da177e4SLinus Torvalds	help
881da177e4SLinus Torvalds	  The ARM920T is licensed to be produced by numerous vendors,
89c768e676SHartley Sweeten	  and is used in the Cirrus EP93xx and the Samsung S3C2410.
901da177e4SLinus Torvalds
911da177e4SLinus Torvalds	  Say Y if you want support for the ARM920T processor.
921da177e4SLinus Torvalds	  Otherwise, say N.
931da177e4SLinus Torvalds
941da177e4SLinus Torvalds# ARM922T
951da177e4SLinus Torvaldsconfig CPU_ARM922T
9617d44d7dSArnd Bergmann	bool
97260e98edSLennert Buytenhek	select CPU_32v4T
981da177e4SLinus Torvalds	select CPU_ABRT_EV4T
991da177e4SLinus Torvalds	select CPU_CACHE_V4WT
1001da177e4SLinus Torvalds	select CPU_CACHE_VIVT
101f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
102b1b3f49cSRussell King	select CPU_CP15_MMU
103b1b3f49cSRussell King	select CPU_PABRT_LEGACY
104c466bda6SRussell King	select CPU_THUMB_CAPABLE
105f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1061da177e4SLinus Torvalds	help
1071da177e4SLinus Torvalds	  The ARM922T is a version of the ARM920T, but with smaller
1081da177e4SLinus Torvalds	  instruction and data caches. It is used in Altera's
109c68b2669SArnd Bergmann	  Excalibur XA device family and the ARM Integrator.
1101da177e4SLinus Torvalds
1111da177e4SLinus Torvalds	  Say Y if you want support for the ARM922T processor.
1121da177e4SLinus Torvalds	  Otherwise, say N.
1131da177e4SLinus Torvalds
1141da177e4SLinus Torvalds# ARM925T
1151da177e4SLinus Torvaldsconfig CPU_ARM925T
11617d44d7dSArnd Bergmann	bool
117260e98edSLennert Buytenhek	select CPU_32v4T
1181da177e4SLinus Torvalds	select CPU_ABRT_EV4T
1191da177e4SLinus Torvalds	select CPU_CACHE_V4WT
1201da177e4SLinus Torvalds	select CPU_CACHE_VIVT
121f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
122b1b3f49cSRussell King	select CPU_CP15_MMU
123b1b3f49cSRussell King	select CPU_PABRT_LEGACY
124c466bda6SRussell King	select CPU_THUMB_CAPABLE
125f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1261da177e4SLinus Torvalds 	help
1271da177e4SLinus Torvalds 	  The ARM925T is a mix between the ARM920T and ARM926T, but with
1281da177e4SLinus Torvalds	  different instruction and data caches. It is used in TI's OMAP
1291da177e4SLinus Torvalds 	  device family.
1301da177e4SLinus Torvalds
1311da177e4SLinus Torvalds 	  Say Y if you want support for the ARM925T processor.
1321da177e4SLinus Torvalds 	  Otherwise, say N.
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvalds# ARM926T
1351da177e4SLinus Torvaldsconfig CPU_ARM926T
13617d44d7dSArnd Bergmann	bool
1371da177e4SLinus Torvalds	select CPU_32v5
1381da177e4SLinus Torvalds	select CPU_ABRT_EV5TJ
1391da177e4SLinus Torvalds	select CPU_CACHE_VIVT
140f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
141b1b3f49cSRussell King	select CPU_CP15_MMU
142b1b3f49cSRussell King	select CPU_PABRT_LEGACY
143c466bda6SRussell King	select CPU_THUMB_CAPABLE
144f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
1451da177e4SLinus Torvalds	help
1461da177e4SLinus Torvalds	  This is a variant of the ARM920.  It has slightly different
1471da177e4SLinus Torvalds	  instruction sequences for cache and TLB operations.  Curiously,
1481da177e4SLinus Torvalds	  there is no documentation on it at the ARM corporate website.
1491da177e4SLinus Torvalds
1501da177e4SLinus Torvalds	  Say Y if you want support for the ARM926T processor.
1511da177e4SLinus Torvalds	  Otherwise, say N.
1521da177e4SLinus Torvalds
15328853ac8SPaulius Zaleckas# FA526
15428853ac8SPaulius Zaleckasconfig CPU_FA526
15528853ac8SPaulius Zaleckas	bool
15628853ac8SPaulius Zaleckas	select CPU_32v4
15728853ac8SPaulius Zaleckas	select CPU_ABRT_EV4
15828853ac8SPaulius Zaleckas	select CPU_CACHE_FA
159b1b3f49cSRussell King	select CPU_CACHE_VIVT
16028853ac8SPaulius Zaleckas	select CPU_COPY_FA if MMU
161b1b3f49cSRussell King	select CPU_CP15_MMU
162b1b3f49cSRussell King	select CPU_PABRT_LEGACY
16328853ac8SPaulius Zaleckas	select CPU_TLB_FA if MMU
16428853ac8SPaulius Zaleckas	help
16528853ac8SPaulius Zaleckas	  The FA526 is a version of the ARMv4 compatible processor with
16628853ac8SPaulius Zaleckas	  Branch Target Buffer, Unified TLB and cache line size 16.
16728853ac8SPaulius Zaleckas
16828853ac8SPaulius Zaleckas	  Say Y if you want support for the FA526 processor.
16928853ac8SPaulius Zaleckas	  Otherwise, say N.
17028853ac8SPaulius Zaleckas
171d60674ebSHyok S. Choi# ARM940T
172d60674ebSHyok S. Choiconfig CPU_ARM940T
17317d44d7dSArnd Bergmann	bool
1746b237a35SRussell King	depends on !MMU
175d60674ebSHyok S. Choi	select CPU_32v4T
1760f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
177d60674ebSHyok S. Choi	select CPU_CACHE_VIVT
178d60674ebSHyok S. Choi	select CPU_CP15_MPU
179b1b3f49cSRussell King	select CPU_PABRT_LEGACY
180c466bda6SRussell King	select CPU_THUMB_CAPABLE
181d60674ebSHyok S. Choi	help
182d60674ebSHyok S. Choi	  ARM940T is a member of the ARM9TDMI family of general-
1833cb2fcccSMatt LaPlante	  purpose microprocessors with MPU and separate 4KB
184d60674ebSHyok S. Choi	  instruction and 4KB data cases, each with a 4-word line
185d60674ebSHyok S. Choi	  length.
186d60674ebSHyok S. Choi
187d60674ebSHyok S. Choi	  Say Y if you want support for the ARM940T processor.
188d60674ebSHyok S. Choi	  Otherwise, say N.
189d60674ebSHyok S. Choi
190f37f46ebSHyok S. Choi# ARM946E-S
191f37f46ebSHyok S. Choiconfig CPU_ARM946E
19217d44d7dSArnd Bergmann	bool
1936b237a35SRussell King	depends on !MMU
194f37f46ebSHyok S. Choi	select CPU_32v5
1950f45d7f3SHyok S. Choi	select CPU_ABRT_NOMMU
196f37f46ebSHyok S. Choi	select CPU_CACHE_VIVT
197f37f46ebSHyok S. Choi	select CPU_CP15_MPU
198b1b3f49cSRussell King	select CPU_PABRT_LEGACY
199c466bda6SRussell King	select CPU_THUMB_CAPABLE
200f37f46ebSHyok S. Choi	help
201f37f46ebSHyok S. Choi	  ARM946E-S is a member of the ARM9E-S family of high-
202f37f46ebSHyok S. Choi	  performance, 32-bit system-on-chip processor solutions.
203f37f46ebSHyok S. Choi	  The TCM and ARMv5TE 32-bit instruction set is supported.
204f37f46ebSHyok S. Choi
205f37f46ebSHyok S. Choi	  Say Y if you want support for the ARM946E-S processor.
206f37f46ebSHyok S. Choi	  Otherwise, say N.
207f37f46ebSHyok S. Choi
2081da177e4SLinus Torvalds# ARM1020 - needs validating
2091da177e4SLinus Torvaldsconfig CPU_ARM1020
21017d44d7dSArnd Bergmann	bool
2111da177e4SLinus Torvalds	select CPU_32v5
2121da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2131da177e4SLinus Torvalds	select CPU_CACHE_V4WT
2141da177e4SLinus Torvalds	select CPU_CACHE_VIVT
215f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
216b1b3f49cSRussell King	select CPU_CP15_MMU
217b1b3f49cSRussell King	select CPU_PABRT_LEGACY
218c466bda6SRussell King	select CPU_THUMB_CAPABLE
219f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2201da177e4SLinus Torvalds	help
2211da177e4SLinus Torvalds	  The ARM1020 is the 32K cached version of the ARM10 processor,
2221da177e4SLinus Torvalds	  with an addition of a floating-point unit.
2231da177e4SLinus Torvalds
2241da177e4SLinus Torvalds	  Say Y if you want support for the ARM1020 processor.
2251da177e4SLinus Torvalds	  Otherwise, say N.
2261da177e4SLinus Torvalds
2271da177e4SLinus Torvalds# ARM1020E - needs validating
2281da177e4SLinus Torvaldsconfig CPU_ARM1020E
22917d44d7dSArnd Bergmann	bool
230b1b3f49cSRussell King	depends on n
2311da177e4SLinus Torvalds	select CPU_32v5
2321da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2331da177e4SLinus Torvalds	select CPU_CACHE_V4WT
2341da177e4SLinus Torvalds	select CPU_CACHE_VIVT
235f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
236b1b3f49cSRussell King	select CPU_CP15_MMU
237b1b3f49cSRussell King	select CPU_PABRT_LEGACY
238c466bda6SRussell King	select CPU_THUMB_CAPABLE
239f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2401da177e4SLinus Torvalds
2411da177e4SLinus Torvalds# ARM1022E
2421da177e4SLinus Torvaldsconfig CPU_ARM1022
24317d44d7dSArnd Bergmann	bool
2441da177e4SLinus Torvalds	select CPU_32v5
2451da177e4SLinus Torvalds	select CPU_ABRT_EV4T
2461da177e4SLinus Torvalds	select CPU_CACHE_VIVT
247f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU # can probably do better
248b1b3f49cSRussell King	select CPU_CP15_MMU
249b1b3f49cSRussell King	select CPU_PABRT_LEGACY
250c466bda6SRussell King	select CPU_THUMB_CAPABLE
251f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2521da177e4SLinus Torvalds	help
2531da177e4SLinus Torvalds	  The ARM1022E is an implementation of the ARMv5TE architecture
2541da177e4SLinus Torvalds	  based upon the ARM10 integer core with a 16KiB L1 Harvard cache,
2551da177e4SLinus Torvalds	  embedded trace macrocell, and a floating-point unit.
2561da177e4SLinus Torvalds
2571da177e4SLinus Torvalds	  Say Y if you want support for the ARM1022E processor.
2581da177e4SLinus Torvalds	  Otherwise, say N.
2591da177e4SLinus Torvalds
2601da177e4SLinus Torvalds# ARM1026EJ-S
2611da177e4SLinus Torvaldsconfig CPU_ARM1026
26217d44d7dSArnd Bergmann	bool
2631da177e4SLinus Torvalds	select CPU_32v5
2641da177e4SLinus Torvalds	select CPU_ABRT_EV5T # But need Jazelle, but EV5TJ ignores bit 10
2651da177e4SLinus Torvalds	select CPU_CACHE_VIVT
266f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU # can probably do better
267b1b3f49cSRussell King	select CPU_CP15_MMU
268b1b3f49cSRussell King	select CPU_PABRT_LEGACY
269c466bda6SRussell King	select CPU_THUMB_CAPABLE
270f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
2711da177e4SLinus Torvalds	help
2721da177e4SLinus Torvalds	  The ARM1026EJ-S is an implementation of the ARMv5TEJ architecture
2731da177e4SLinus Torvalds	  based upon the ARM10 integer core.
2741da177e4SLinus Torvalds
2751da177e4SLinus Torvalds	  Say Y if you want support for the ARM1026EJ-S processor.
2761da177e4SLinus Torvalds	  Otherwise, say N.
2771da177e4SLinus Torvalds
2781da177e4SLinus Torvalds# SA110
2791da177e4SLinus Torvaldsconfig CPU_SA110
280fa04e209SArnd Bergmann	bool
2811da177e4SLinus Torvalds	select CPU_32v3 if ARCH_RPC
2821da177e4SLinus Torvalds	select CPU_32v4 if !ARCH_RPC
2831da177e4SLinus Torvalds	select CPU_ABRT_EV4
2841da177e4SLinus Torvalds	select CPU_CACHE_V4WB
2851da177e4SLinus Torvalds	select CPU_CACHE_VIVT
286f9c21a6eSHyok S. Choi	select CPU_COPY_V4WB if MMU
287b1b3f49cSRussell King	select CPU_CP15_MMU
288b1b3f49cSRussell King	select CPU_PABRT_LEGACY
289f9c21a6eSHyok S. Choi	select CPU_TLB_V4WB if MMU
2901da177e4SLinus Torvalds	help
2911da177e4SLinus Torvalds	  The Intel StrongARM(R) SA-110 is a 32-bit microprocessor and
2921da177e4SLinus Torvalds	  is available at five speeds ranging from 100 MHz to 233 MHz.
2931da177e4SLinus Torvalds	  More information is available at
2941da177e4SLinus Torvalds	  <http://developer.intel.com/design/strong/sa110.htm>.
2951da177e4SLinus Torvalds
2961da177e4SLinus Torvalds	  Say Y if you want support for the SA-110 processor.
2971da177e4SLinus Torvalds	  Otherwise, say N.
2981da177e4SLinus Torvalds
2991da177e4SLinus Torvalds# SA1100
3001da177e4SLinus Torvaldsconfig CPU_SA1100
3011da177e4SLinus Torvalds	bool
3021da177e4SLinus Torvalds	select CPU_32v4
3031da177e4SLinus Torvalds	select CPU_ABRT_EV4
3041da177e4SLinus Torvalds	select CPU_CACHE_V4WB
3051da177e4SLinus Torvalds	select CPU_CACHE_VIVT
306fefdaa06SHyok S. Choi	select CPU_CP15_MMU
307b1b3f49cSRussell King	select CPU_PABRT_LEGACY
308f9c21a6eSHyok S. Choi	select CPU_TLB_V4WB if MMU
3091da177e4SLinus Torvalds
3101da177e4SLinus Torvalds# XScale
3111da177e4SLinus Torvaldsconfig CPU_XSCALE
3121da177e4SLinus Torvalds	bool
3131da177e4SLinus Torvalds	select CPU_32v5
3141da177e4SLinus Torvalds	select CPU_ABRT_EV5T
3151da177e4SLinus Torvalds	select CPU_CACHE_VIVT
316fefdaa06SHyok S. Choi	select CPU_CP15_MMU
317b1b3f49cSRussell King	select CPU_PABRT_LEGACY
318c466bda6SRussell King	select CPU_THUMB_CAPABLE
319f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
3201da177e4SLinus Torvalds
32123bdf86aSLennert Buytenhek# XScale Core Version 3
32223bdf86aSLennert Buytenhekconfig CPU_XSC3
32323bdf86aSLennert Buytenhek	bool
32423bdf86aSLennert Buytenhek	select CPU_32v5
32523bdf86aSLennert Buytenhek	select CPU_ABRT_EV5T
32623bdf86aSLennert Buytenhek	select CPU_CACHE_VIVT
327fefdaa06SHyok S. Choi	select CPU_CP15_MMU
328b1b3f49cSRussell King	select CPU_PABRT_LEGACY
329c466bda6SRussell King	select CPU_THUMB_CAPABLE
330f9c21a6eSHyok S. Choi	select CPU_TLB_V4WBI if MMU
33123bdf86aSLennert Buytenhek	select IO_36
33223bdf86aSLennert Buytenhek
33349cbe786SEric Miao# Marvell PJ1 (Mohawk)
33449cbe786SEric Miaoconfig CPU_MOHAWK
33549cbe786SEric Miao	bool
33649cbe786SEric Miao	select CPU_32v5
33749cbe786SEric Miao	select CPU_ABRT_EV5T
33849cbe786SEric Miao	select CPU_CACHE_VIVT
33949cbe786SEric Miao	select CPU_COPY_V4WB if MMU
340b1b3f49cSRussell King	select CPU_CP15_MMU
341b1b3f49cSRussell King	select CPU_PABRT_LEGACY
342c466bda6SRussell King	select CPU_THUMB_CAPABLE
343b1b3f49cSRussell King	select CPU_TLB_V4WBI if MMU
34449cbe786SEric Miao
345e50d6409SAssaf Hoffman# Feroceon
346e50d6409SAssaf Hoffmanconfig CPU_FEROCEON
347e50d6409SAssaf Hoffman	bool
348e50d6409SAssaf Hoffman	select CPU_32v5
349e50d6409SAssaf Hoffman	select CPU_ABRT_EV5T
350e50d6409SAssaf Hoffman	select CPU_CACHE_VIVT
3510ed15071SLennert Buytenhek	select CPU_COPY_FEROCEON if MMU
352b1b3f49cSRussell King	select CPU_CP15_MMU
353b1b3f49cSRussell King	select CPU_PABRT_LEGACY
354c466bda6SRussell King	select CPU_THUMB_CAPABLE
35599c6dc11SLennert Buytenhek	select CPU_TLB_FEROCEON if MMU
356e50d6409SAssaf Hoffman
357d910a0aaSTzachi Perelsteinconfig CPU_FEROCEON_OLD_ID
358d910a0aaSTzachi Perelstein	bool "Accept early Feroceon cores with an ARM926 ID"
359d910a0aaSTzachi Perelstein	depends on CPU_FEROCEON && !CPU_ARM926T
360d910a0aaSTzachi Perelstein	default y
361d910a0aaSTzachi Perelstein	help
362d910a0aaSTzachi Perelstein	  This enables the usage of some old Feroceon cores
363d910a0aaSTzachi Perelstein	  for which the CPU ID is equal to the ARM926 ID.
364d910a0aaSTzachi Perelstein	  Relevant for Feroceon-1850 and early Feroceon-2850.
365d910a0aaSTzachi Perelstein
366a4553358SHaojian Zhuang# Marvell PJ4
367a4553358SHaojian Zhuangconfig CPU_PJ4
368a4553358SHaojian Zhuang	bool
369a4553358SHaojian Zhuang	select ARM_THUMBEE
370b1b3f49cSRussell King	select CPU_V7
371a4553358SHaojian Zhuang
372de490193SGregory CLEMENTconfig CPU_PJ4B
373de490193SGregory CLEMENT	bool
374de490193SGregory CLEMENT	select CPU_V7
375de490193SGregory CLEMENT
3761da177e4SLinus Torvalds# ARMv6
3771da177e4SLinus Torvaldsconfig CPU_V6
37817d44d7dSArnd Bergmann	bool
3791da177e4SLinus Torvalds	select CPU_32v6
3801da177e4SLinus Torvalds	select CPU_ABRT_EV6
3811da177e4SLinus Torvalds	select CPU_CACHE_V6
3821da177e4SLinus Torvalds	select CPU_CACHE_VIPT
383b1b3f49cSRussell King	select CPU_COPY_V6 if MMU
384fefdaa06SHyok S. Choi	select CPU_CP15_MMU
3857b4c965aSCatalin Marinas	select CPU_HAS_ASID if MMU
386b1b3f49cSRussell King	select CPU_PABRT_V6
387c466bda6SRussell King	select CPU_THUMB_CAPABLE
388f9c21a6eSHyok S. Choi	select CPU_TLB_V6 if MMU
3891da177e4SLinus Torvalds
3904a5f79e7SRussell King# ARMv6k
391e399b1a4SRussell Kingconfig CPU_V6K
39217d44d7dSArnd Bergmann	bool
393e399b1a4SRussell King	select CPU_32v6
39460799c6dSRussell King	select CPU_32v6K
395e399b1a4SRussell King	select CPU_ABRT_EV6
396e399b1a4SRussell King	select CPU_CACHE_V6
397e399b1a4SRussell King	select CPU_CACHE_VIPT
398b1b3f49cSRussell King	select CPU_COPY_V6 if MMU
399e399b1a4SRussell King	select CPU_CP15_MMU
400e399b1a4SRussell King	select CPU_HAS_ASID if MMU
401b1b3f49cSRussell King	select CPU_PABRT_V6
402c466bda6SRussell King	select CPU_THUMB_CAPABLE
403e399b1a4SRussell King	select CPU_TLB_V6 if MMU
4044a5f79e7SRussell King
40523688e99SCatalin Marinas# ARMv7
40623688e99SCatalin Marinasconfig CPU_V7
40717d44d7dSArnd Bergmann	bool
40815490ef8SRussell King	select CPU_32v6K
40923688e99SCatalin Marinas	select CPU_32v7
41023688e99SCatalin Marinas	select CPU_ABRT_EV7
41123688e99SCatalin Marinas	select CPU_CACHE_V7
41223688e99SCatalin Marinas	select CPU_CACHE_VIPT
413b1b3f49cSRussell King	select CPU_COPY_V6 if MMU
41466567618SJonathan Austin	select CPU_CP15_MMU if MMU
41566567618SJonathan Austin	select CPU_CP15_MPU if !MMU
4162eb8c82bSCatalin Marinas	select CPU_HAS_ASID if MMU
417b1b3f49cSRussell King	select CPU_PABRT_V7
418c58d237dSRussell King	select CPU_SPECTRE if MMU
419c466bda6SRussell King	select CPU_THUMB_CAPABLE
4202ccdd1e7SCatalin Marinas	select CPU_TLB_V7 if MMU
42123688e99SCatalin Marinas
4224477ca45SUwe Kleine-König# ARMv7M
4234477ca45SUwe Kleine-Königconfig CPU_V7M
4244477ca45SUwe Kleine-König	bool
4254477ca45SUwe Kleine-König	select CPU_32v7M
4264477ca45SUwe Kleine-König	select CPU_ABRT_NOMMU
427bc0ee9d2SJonathan Austin	select CPU_CACHE_V7M
4284477ca45SUwe Kleine-König	select CPU_CACHE_NOP
4294477ca45SUwe Kleine-König	select CPU_PABRT_LEGACY
4304477ca45SUwe Kleine-König	select CPU_THUMBONLY
4314477ca45SUwe Kleine-König
432bc7dea00SUwe Kleine-Königconfig CPU_THUMBONLY
433bc7dea00SUwe Kleine-König	bool
434c466bda6SRussell King	select CPU_THUMB_CAPABLE
435bc7dea00SUwe Kleine-König	# There are no CPUs available with MMU that don't implement an ARM ISA:
436bc7dea00SUwe Kleine-König	depends on !MMU
437bc7dea00SUwe Kleine-König	help
438bc7dea00SUwe Kleine-König	  Select this if your CPU doesn't support the 32 bit ARM instructions.
439bc7dea00SUwe Kleine-König
440c466bda6SRussell Kingconfig CPU_THUMB_CAPABLE
441c466bda6SRussell King	bool
442c466bda6SRussell King	help
443c466bda6SRussell King	  Select this if your CPU can support Thumb mode.
444c466bda6SRussell King
4451da177e4SLinus Torvalds# Figure out what processor architecture version we should be using.
4461da177e4SLinus Torvalds# This defines the compiler instruction set which depends on the machine type.
4471da177e4SLinus Torvaldsconfig CPU_32v3
4481da177e4SLinus Torvalds	bool
4498762df4dSRussell King	select CPU_USE_DOMAINS if MMU
450f6f91b0dSRussell King	select NEED_KUSER_HELPERS
45151aaf81fSRussell King	select TLS_REG_EMUL if SMP || !MMU
452fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
4531da177e4SLinus Torvalds
4541da177e4SLinus Torvaldsconfig CPU_32v4
4551da177e4SLinus Torvalds	bool
4568762df4dSRussell King	select CPU_USE_DOMAINS if MMU
457f6f91b0dSRussell King	select NEED_KUSER_HELPERS
45851aaf81fSRussell King	select TLS_REG_EMUL if SMP || !MMU
459fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
4601da177e4SLinus Torvalds
461260e98edSLennert Buytenhekconfig CPU_32v4T
462260e98edSLennert Buytenhek	bool
4638762df4dSRussell King	select CPU_USE_DOMAINS if MMU
464f6f91b0dSRussell King	select NEED_KUSER_HELPERS
46551aaf81fSRussell King	select TLS_REG_EMUL if SMP || !MMU
466fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS
467260e98edSLennert Buytenhek
4681da177e4SLinus Torvaldsconfig CPU_32v5
4691da177e4SLinus Torvalds	bool
4708762df4dSRussell King	select CPU_USE_DOMAINS if MMU
471f6f91b0dSRussell King	select NEED_KUSER_HELPERS
47251aaf81fSRussell King	select TLS_REG_EMUL if SMP || !MMU
4731da177e4SLinus Torvalds
4741da177e4SLinus Torvaldsconfig CPU_32v6
4751da177e4SLinus Torvalds	bool
476b1b3f49cSRussell King	select TLS_REG_EMUL if !CPU_32v6K && !MMU
4771da177e4SLinus Torvalds
478e399b1a4SRussell Kingconfig CPU_32v6K
47960799c6dSRussell King	bool
4801da177e4SLinus Torvalds
48123688e99SCatalin Marinasconfig CPU_32v7
48223688e99SCatalin Marinas	bool
48323688e99SCatalin Marinas
4844477ca45SUwe Kleine-Königconfig CPU_32v7M
4854477ca45SUwe Kleine-König	bool
4864477ca45SUwe Kleine-König
4871da177e4SLinus Torvalds# The abort model
4880f45d7f3SHyok S. Choiconfig CPU_ABRT_NOMMU
4890f45d7f3SHyok S. Choi	bool
4900f45d7f3SHyok S. Choi
4911da177e4SLinus Torvaldsconfig CPU_ABRT_EV4
4921da177e4SLinus Torvalds	bool
4931da177e4SLinus Torvalds
4941da177e4SLinus Torvaldsconfig CPU_ABRT_EV4T
4951da177e4SLinus Torvalds	bool
4961da177e4SLinus Torvalds
4971da177e4SLinus Torvaldsconfig CPU_ABRT_LV4T
4981da177e4SLinus Torvalds	bool
4991da177e4SLinus Torvalds
5001da177e4SLinus Torvaldsconfig CPU_ABRT_EV5T
5011da177e4SLinus Torvalds	bool
5021da177e4SLinus Torvalds
5031da177e4SLinus Torvaldsconfig CPU_ABRT_EV5TJ
5041da177e4SLinus Torvalds	bool
5051da177e4SLinus Torvalds
5061da177e4SLinus Torvaldsconfig CPU_ABRT_EV6
5071da177e4SLinus Torvalds	bool
5081da177e4SLinus Torvalds
50923688e99SCatalin Marinasconfig CPU_ABRT_EV7
51023688e99SCatalin Marinas	bool
51123688e99SCatalin Marinas
5124fb28474SKirill A. Shutemovconfig CPU_PABRT_LEGACY
51348d7927bSPaul Brook	bool
51448d7927bSPaul Brook
5154fb28474SKirill A. Shutemovconfig CPU_PABRT_V6
5164fb28474SKirill A. Shutemov	bool
5174fb28474SKirill A. Shutemov
5184fb28474SKirill A. Shutemovconfig CPU_PABRT_V7
51948d7927bSPaul Brook	bool
52048d7927bSPaul Brook
5211da177e4SLinus Torvalds# The cache model
5221da177e4SLinus Torvaldsconfig CPU_CACHE_V4
5231da177e4SLinus Torvalds	bool
5241da177e4SLinus Torvalds
5251da177e4SLinus Torvaldsconfig CPU_CACHE_V4WT
5261da177e4SLinus Torvalds	bool
5271da177e4SLinus Torvalds
5281da177e4SLinus Torvaldsconfig CPU_CACHE_V4WB
5291da177e4SLinus Torvalds	bool
5301da177e4SLinus Torvalds
5311da177e4SLinus Torvaldsconfig CPU_CACHE_V6
5321da177e4SLinus Torvalds	bool
5331da177e4SLinus Torvalds
53423688e99SCatalin Marinasconfig CPU_CACHE_V7
53523688e99SCatalin Marinas	bool
53623688e99SCatalin Marinas
5374477ca45SUwe Kleine-Königconfig CPU_CACHE_NOP
5384477ca45SUwe Kleine-König	bool
5394477ca45SUwe Kleine-König
5401da177e4SLinus Torvaldsconfig CPU_CACHE_VIVT
5411da177e4SLinus Torvalds	bool
5421da177e4SLinus Torvalds
5431da177e4SLinus Torvaldsconfig CPU_CACHE_VIPT
5441da177e4SLinus Torvalds	bool
5451da177e4SLinus Torvalds
54628853ac8SPaulius Zaleckasconfig CPU_CACHE_FA
54728853ac8SPaulius Zaleckas	bool
54828853ac8SPaulius Zaleckas
549bc0ee9d2SJonathan Austinconfig CPU_CACHE_V7M
550bc0ee9d2SJonathan Austin	bool
551bc0ee9d2SJonathan Austin
552f9c21a6eSHyok S. Choiif MMU
5531da177e4SLinus Torvalds# The copy-page model
5541da177e4SLinus Torvaldsconfig CPU_COPY_V4WT
5551da177e4SLinus Torvalds	bool
5561da177e4SLinus Torvalds
5571da177e4SLinus Torvaldsconfig CPU_COPY_V4WB
5581da177e4SLinus Torvalds	bool
5591da177e4SLinus Torvalds
5600ed15071SLennert Buytenhekconfig CPU_COPY_FEROCEON
5610ed15071SLennert Buytenhek	bool
5620ed15071SLennert Buytenhek
56328853ac8SPaulius Zaleckasconfig CPU_COPY_FA
56428853ac8SPaulius Zaleckas	bool
56528853ac8SPaulius Zaleckas
5661da177e4SLinus Torvaldsconfig CPU_COPY_V6
5671da177e4SLinus Torvalds	bool
5681da177e4SLinus Torvalds
5691da177e4SLinus Torvalds# This selects the TLB model
5701da177e4SLinus Torvaldsconfig CPU_TLB_V4WT
5711da177e4SLinus Torvalds	bool
5721da177e4SLinus Torvalds	help
5731da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writethrough cache.
5741da177e4SLinus Torvalds
5751da177e4SLinus Torvaldsconfig CPU_TLB_V4WB
5761da177e4SLinus Torvalds	bool
5771da177e4SLinus Torvalds	help
5781da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writeback cache.
5791da177e4SLinus Torvalds
5801da177e4SLinus Torvaldsconfig CPU_TLB_V4WBI
5811da177e4SLinus Torvalds	bool
5821da177e4SLinus Torvalds	help
5831da177e4SLinus Torvalds	  ARM Architecture Version 4 TLB with writeback cache and invalidate
5841da177e4SLinus Torvalds	  instruction cache entry.
5851da177e4SLinus Torvalds
58699c6dc11SLennert Buytenhekconfig CPU_TLB_FEROCEON
58799c6dc11SLennert Buytenhek	bool
58899c6dc11SLennert Buytenhek	help
58999c6dc11SLennert Buytenhek	  Feroceon TLB (v4wbi with non-outer-cachable page table walks).
59099c6dc11SLennert Buytenhek
59128853ac8SPaulius Zaleckasconfig CPU_TLB_FA
59228853ac8SPaulius Zaleckas	bool
59328853ac8SPaulius Zaleckas	help
59428853ac8SPaulius Zaleckas	  Faraday ARM FA526 architecture, unified TLB with writeback cache
59528853ac8SPaulius Zaleckas	  and invalidate instruction cache entry. Branch target buffer is
59628853ac8SPaulius Zaleckas	  also supported.
59728853ac8SPaulius Zaleckas
5981da177e4SLinus Torvaldsconfig CPU_TLB_V6
5991da177e4SLinus Torvalds	bool
6001da177e4SLinus Torvalds
6012ccdd1e7SCatalin Marinasconfig CPU_TLB_V7
6022ccdd1e7SCatalin Marinas	bool
6032ccdd1e7SCatalin Marinas
604f9c21a6eSHyok S. Choiendif
605f9c21a6eSHyok S. Choi
606516793c6SRussell Kingconfig CPU_HAS_ASID
607516793c6SRussell King	bool
608516793c6SRussell King	help
609516793c6SRussell King	  This indicates whether the CPU has the ASID register; used to
610516793c6SRussell King	  tag TLB and possibly cache entries.
611516793c6SRussell King
612fefdaa06SHyok S. Choiconfig CPU_CP15
613fefdaa06SHyok S. Choi	bool
614fefdaa06SHyok S. Choi	help
615fefdaa06SHyok S. Choi	  Processor has the CP15 register.
616fefdaa06SHyok S. Choi
617fefdaa06SHyok S. Choiconfig CPU_CP15_MMU
618fefdaa06SHyok S. Choi	bool
619fefdaa06SHyok S. Choi	select CPU_CP15
620fefdaa06SHyok S. Choi	help
621fefdaa06SHyok S. Choi	  Processor has the CP15 register, which has MMU related registers.
622fefdaa06SHyok S. Choi
623fefdaa06SHyok S. Choiconfig CPU_CP15_MPU
624fefdaa06SHyok S. Choi	bool
625fefdaa06SHyok S. Choi	select CPU_CP15
626fefdaa06SHyok S. Choi	help
627fefdaa06SHyok S. Choi	  Processor has the CP15 register, which has MPU related registers.
628fefdaa06SHyok S. Choi
629247055aaSCatalin Marinasconfig CPU_USE_DOMAINS
630247055aaSCatalin Marinas	bool
631247055aaSCatalin Marinas	help
632247055aaSCatalin Marinas	  This option enables or disables the use of domain switching
633247055aaSCatalin Marinas	  via the set_fs() function.
634247055aaSCatalin Marinas
6356b1814cdSMaxime Coquelin stm32config CPU_V7M_NUM_IRQ
6366b1814cdSMaxime Coquelin stm32	int "Number of external interrupts connected to the NVIC"
6376b1814cdSMaxime Coquelin stm32	depends on CPU_V7M
6386b1814cdSMaxime Coquelin stm32	default 90 if ARCH_STM32
63945b0fa09SStefan Agner	default 112 if SOC_VF610
6406b1814cdSMaxime Coquelin stm32	default 240
6416b1814cdSMaxime Coquelin stm32	help
6426b1814cdSMaxime Coquelin stm32	  This option indicates the number of interrupts connected to the NVIC.
6436b1814cdSMaxime Coquelin stm32	  The value can be larger than the real number of interrupts supported
6446b1814cdSMaxime Coquelin stm32	  by the system, but must not be lower.
6456b1814cdSMaxime Coquelin stm32	  The default value is 240, corresponding to the maximum number of
6466b1814cdSMaxime Coquelin stm32	  interrupts supported by the NVIC on Cortex-M family.
6476b1814cdSMaxime Coquelin stm32
6486b1814cdSMaxime Coquelin stm32	  If unsure, keep default value.
6496b1814cdSMaxime Coquelin stm32
65023bdf86aSLennert Buytenhek#
65123bdf86aSLennert Buytenhek# CPU supports 36-bit I/O
65223bdf86aSLennert Buytenhek#
65323bdf86aSLennert Buytenhekconfig IO_36
65423bdf86aSLennert Buytenhek	bool
65523bdf86aSLennert Buytenhek
6561da177e4SLinus Torvaldscomment "Processor Features"
6571da177e4SLinus Torvalds
658497b7e94SCatalin Marinasconfig ARM_LPAE
659497b7e94SCatalin Marinas	bool "Support for the Large Physical Address Extension"
66008a183f0SCatalin Marinas	depends on MMU && CPU_32v7 && !CPU_32v6 && !CPU_32v5 && \
66108a183f0SCatalin Marinas		!CPU_32v4 && !CPU_32v3
662d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
663ad3c7b18SChristoph Hellwig	select SWIOTLB
664497b7e94SCatalin Marinas	help
665497b7e94SCatalin Marinas	  Say Y if you have an ARMv7 processor supporting the LPAE page
666497b7e94SCatalin Marinas	  table format and you would like to access memory beyond the
667497b7e94SCatalin Marinas	  4GB limit. The resulting kernel image will not run on
668497b7e94SCatalin Marinas	  processors without the LPA extension.
669497b7e94SCatalin Marinas
670497b7e94SCatalin Marinas	  If unsure, say N.
671497b7e94SCatalin Marinas
672d8dc7fbdSRussell Kingconfig ARM_PV_FIXUP
673d8dc7fbdSRussell King	def_bool y
674d8dc7fbdSRussell King	depends on ARM_LPAE && ARM_PATCH_PHYS_VIRT && ARCH_KEYSTONE
675d8dc7fbdSRussell King
6761da177e4SLinus Torvaldsconfig ARM_THUMB
6771515b186SRussell King	bool "Support Thumb user binaries" if !CPU_THUMBONLY && EXPERT
6788b5bd5adSArnd Bergmann	depends on CPU_THUMB_CAPABLE && !CPU_32v4
6791da177e4SLinus Torvalds	default y
6801da177e4SLinus Torvalds	help
6811da177e4SLinus Torvalds	  Say Y if you want to include kernel support for running user space
6821da177e4SLinus Torvalds	  Thumb binaries.
6831da177e4SLinus Torvalds
6841da177e4SLinus Torvalds	  The Thumb instruction set is a compressed form of the standard ARM
6851da177e4SLinus Torvalds	  instruction set resulting in smaller binaries at the expense of
6861da177e4SLinus Torvalds	  slightly less efficient code.
6871da177e4SLinus Torvalds
6881515b186SRussell King	  If this option is disabled, and you run userspace that switches to
6891515b186SRussell King	  Thumb mode, signal handling will not work correctly, resulting in
6901515b186SRussell King	  segmentation faults or illegal instruction aborts.
6911515b186SRussell King
6921da177e4SLinus Torvalds	  If you don't know what this all is, saying Y is a safe choice.
6931da177e4SLinus Torvalds
694d7f864beSCatalin Marinasconfig ARM_THUMBEE
695d7f864beSCatalin Marinas	bool "Enable ThumbEE CPU extension"
696d7f864beSCatalin Marinas	depends on CPU_V7
697d7f864beSCatalin Marinas	help
698d7f864beSCatalin Marinas	  Say Y here if you have a CPU with the ThumbEE extension and code to
699d7f864beSCatalin Marinas	  make use of it. Say N for code that can run on CPUs without ThumbEE.
700d7f864beSCatalin Marinas
7015b6728d4SDave Martinconfig ARM_VIRT_EXT
702651134b0SWill Deacon	bool
703651134b0SWill Deacon	default y if CPU_V7
7045b6728d4SDave Martin	help
7055b6728d4SDave Martin	  Enable the kernel to make use of the ARM Virtualization
7065b6728d4SDave Martin	  Extensions to install hypervisors without run-time firmware
7075b6728d4SDave Martin	  assistance.
7085b6728d4SDave Martin
7095b6728d4SDave Martin	  A compliant bootloader is required in order to make maximum
710dc7a12bdSMauro Carvalho Chehab	  use of this feature.  Refer to Documentation/arm/booting.rst for
7115b6728d4SDave Martin	  details.
7125b6728d4SDave Martin
71364d2dc38SLeif Lindholmconfig SWP_EMULATE
714a11dd731SRussell King	bool "Emulate SWP/SWPB instructions" if !SMP
715b6ccb980SWill Deacon	depends on CPU_V7
71664d2dc38SLeif Lindholm	default y if SMP
717b1b3f49cSRussell King	select HAVE_PROC_CPU if PROC_FS
71864d2dc38SLeif Lindholm	help
71964d2dc38SLeif Lindholm	  ARMv6 architecture deprecates use of the SWP/SWPB instructions.
72064d2dc38SLeif Lindholm	  ARMv7 multiprocessing extensions introduce the ability to disable
72164d2dc38SLeif Lindholm	  these instructions, triggering an undefined instruction exception
72264d2dc38SLeif Lindholm	  when executed. Say Y here to enable software emulation of these
72364d2dc38SLeif Lindholm	  instructions for userspace (not kernel) using LDREX/STREX.
72464d2dc38SLeif Lindholm	  Also creates /proc/cpu/swp_emulation for statistics.
72564d2dc38SLeif Lindholm
72664d2dc38SLeif Lindholm	  In some older versions of glibc [<=2.8] SWP is used during futex
72764d2dc38SLeif Lindholm	  trylock() operations with the assumption that the code will not
72864d2dc38SLeif Lindholm	  be preempted. This invalid assumption may be more likely to fail
72964d2dc38SLeif Lindholm	  with SWP emulation enabled, leading to deadlock of the user
73064d2dc38SLeif Lindholm	  application.
73164d2dc38SLeif Lindholm
73264d2dc38SLeif Lindholm	  NOTE: when accessing uncached shared regions, LDREX/STREX rely
73364d2dc38SLeif Lindholm	  on an external transaction monitoring block called a global
73464d2dc38SLeif Lindholm	  monitor to maintain update atomicity. If your system does not
73564d2dc38SLeif Lindholm	  implement a global monitor, this option can cause programs that
73664d2dc38SLeif Lindholm	  perform SWP operations to uncached memory to deadlock.
73764d2dc38SLeif Lindholm
73864d2dc38SLeif Lindholm	  If unsure, say Y.
73964d2dc38SLeif Lindholm
7401da177e4SLinus Torvaldsconfig CPU_BIG_ENDIAN
7411da177e4SLinus Torvalds	bool "Build big-endian kernel"
7421da177e4SLinus Torvalds	depends on ARCH_SUPPORTS_BIG_ENDIAN
74328187dc8SNick Desaulniers	depends on !LD_IS_LLD
7441da177e4SLinus Torvalds	help
7451da177e4SLinus Torvalds	  Say Y if you plan on running a kernel in big-endian mode.
7461da177e4SLinus Torvalds	  Note that your board must be properly built and your board
7471da177e4SLinus Torvalds	  port must properly enable any big-endian related features
7481da177e4SLinus Torvalds	  of your chipset/board/processor.
7491da177e4SLinus Torvalds
75026584853SCatalin Marinasconfig CPU_ENDIAN_BE8
75126584853SCatalin Marinas	bool
75226584853SCatalin Marinas	depends on CPU_BIG_ENDIAN
753345dac33SArnd Bergmann	default CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M
75426584853SCatalin Marinas	help
75526584853SCatalin Marinas	  Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
75626584853SCatalin Marinas
75726584853SCatalin Marinasconfig CPU_ENDIAN_BE32
75826584853SCatalin Marinas	bool
75926584853SCatalin Marinas	depends on CPU_BIG_ENDIAN
76026584853SCatalin Marinas	default !CPU_ENDIAN_BE8
76126584853SCatalin Marinas	help
76226584853SCatalin Marinas	  Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
76326584853SCatalin Marinas
7646afd6faeSHyok S. Choiconfig CPU_HIGH_VECTOR
7656340aa61SRobert P. J. Day	depends on !MMU && CPU_CP15 && !CPU_ARM740T
7666afd6faeSHyok S. Choi	bool "Select the High exception vector"
7676afd6faeSHyok S. Choi	help
7686afd6faeSHyok S. Choi	  Say Y here to select high exception vector(0xFFFF0000~).
7699b7333a9SWill Deacon	  The exception vector can vary depending on the platform
7706afd6faeSHyok S. Choi	  design in nommu mode. If your platform needs to select
7716afd6faeSHyok S. Choi	  high exception vector, say Y.
7726afd6faeSHyok S. Choi	  Otherwise or if you are unsure, say N, and the low exception
7736afd6faeSHyok S. Choi	  vector (0x00000000~) will be used.
7746afd6faeSHyok S. Choi
7751da177e4SLinus Torvaldsconfig CPU_ICACHE_DISABLE
776f12d0d7cSHyok S. Choi	bool "Disable I-Cache (I-bit)"
777bc0ee9d2SJonathan Austin	depends on (CPU_CP15 && !(CPU_ARM720T || CPU_ARM740T || CPU_XSCALE || CPU_XSC3)) || CPU_V7M
7781da177e4SLinus Torvalds	help
7791da177e4SLinus Torvalds	  Say Y here to disable the processor instruction cache. Unless
7801da177e4SLinus Torvalds	  you have a reason not to or are unsure, say N.
7811da177e4SLinus Torvalds
7825f41f919SMarek Szyprowskiconfig CPU_ICACHE_MISMATCH_WORKAROUND
7835f41f919SMarek Szyprowski	bool "Workaround for I-Cache line size mismatch between CPU cores"
7845f41f919SMarek Szyprowski	depends on SMP && CPU_V7
7855f41f919SMarek Szyprowski	help
7865f41f919SMarek Szyprowski	  Some big.LITTLE systems have I-Cache line size mismatch between
7875f41f919SMarek Szyprowski	  LITTLE and big cores.  Say Y here to enable a workaround for
7885f41f919SMarek Szyprowski	  proper I-Cache support on such systems.  If unsure, say N.
7895f41f919SMarek Szyprowski
7901da177e4SLinus Torvaldsconfig CPU_DCACHE_DISABLE
791f12d0d7cSHyok S. Choi	bool "Disable D-Cache (C-bit)"
792bc0ee9d2SJonathan Austin	depends on (CPU_CP15 && !SMP) || CPU_V7M
7931da177e4SLinus Torvalds	help
7941da177e4SLinus Torvalds	  Say Y here to disable the processor data cache. Unless
7951da177e4SLinus Torvalds	  you have a reason not to or are unsure, say N.
7961da177e4SLinus Torvalds
797f37f46ebSHyok S. Choiconfig CPU_DCACHE_SIZE
798f37f46ebSHyok S. Choi	hex
799f37f46ebSHyok S. Choi	depends on CPU_ARM740T || CPU_ARM946E
800f37f46ebSHyok S. Choi	default 0x00001000 if CPU_ARM740T
801f37f46ebSHyok S. Choi	default 0x00002000 # default size for ARM946E-S
802f37f46ebSHyok S. Choi	help
803f37f46ebSHyok S. Choi	  Some cores are synthesizable to have various sized cache. For
804f37f46ebSHyok S. Choi	  ARM946E-S case, it can vary from 0KB to 1MB.
805f37f46ebSHyok S. Choi	  To support such cache operations, it is efficient to know the size
806f37f46ebSHyok S. Choi	  before compile time.
807f37f46ebSHyok S. Choi	  If your SoC is configured to have a different size, define the value
808f37f46ebSHyok S. Choi	  here with proper conditions.
809f37f46ebSHyok S. Choi
8101da177e4SLinus Torvaldsconfig CPU_DCACHE_WRITETHROUGH
8111da177e4SLinus Torvalds	bool "Force write through D-cache"
81228853ac8SPaulius Zaleckas	depends on (CPU_ARM740T || CPU_ARM920T || CPU_ARM922T || CPU_ARM925T || CPU_ARM926T || CPU_ARM940T || CPU_ARM946E || CPU_ARM1020 || CPU_FA526) && !CPU_DCACHE_DISABLE
8131da177e4SLinus Torvalds	default y if CPU_ARM925T
8141da177e4SLinus Torvalds	help
8151da177e4SLinus Torvalds	  Say Y here to use the data cache in writethrough mode. Unless you
8161da177e4SLinus Torvalds	  specifically require this or are unsure, say N.
8171da177e4SLinus Torvalds
8181da177e4SLinus Torvaldsconfig CPU_CACHE_ROUND_ROBIN
8191da177e4SLinus Torvalds	bool "Round robin I and D cache replacement algorithm"
820f37f46ebSHyok S. Choi	depends on (CPU_ARM926T || CPU_ARM946E || CPU_ARM1020) && (!CPU_ICACHE_DISABLE || !CPU_DCACHE_DISABLE)
8211da177e4SLinus Torvalds	help
8221da177e4SLinus Torvalds	  Say Y here to use the predictable round-robin cache replacement
8231da177e4SLinus Torvalds	  policy.  Unless you specifically require this or are unsure, say N.
8241da177e4SLinus Torvalds
8251da177e4SLinus Torvaldsconfig CPU_BPREDICT_DISABLE
8261da177e4SLinus Torvalds	bool "Disable branch prediction"
827bc0ee9d2SJonathan Austin	depends on CPU_ARM1020 || CPU_V6 || CPU_V6K || CPU_MOHAWK || CPU_XSC3 || CPU_V7 || CPU_FA526 || CPU_V7M
8281da177e4SLinus Torvalds	help
8291da177e4SLinus Torvalds	  Say Y here to disable branch prediction.  If unsure, say N.
8302d2669b6SNicolas Pitre
831c58d237dSRussell Kingconfig CPU_SPECTRE
832c58d237dSRussell King	bool
8339dd78194SRussell King (Oracle)	select GENERIC_CPU_VULNERABILITIES
834c58d237dSRussell King
83506c23f5fSRussell Kingconfig HARDEN_BRANCH_PREDICTOR
83606c23f5fSRussell King	bool "Harden the branch predictor against aliasing attacks" if EXPERT
83706c23f5fSRussell King	depends on CPU_SPECTRE
83806c23f5fSRussell King	default y
83906c23f5fSRussell King	help
84006c23f5fSRussell King	   Speculation attacks against some high-performance processors rely
84106c23f5fSRussell King	   on being able to manipulate the branch predictor for a victim
84206c23f5fSRussell King	   context by executing aliasing branches in the attacker context.
84306c23f5fSRussell King	   Such attacks can be partially mitigated against by clearing
84406c23f5fSRussell King	   internal branch predictor state and limiting the prediction
84506c23f5fSRussell King	   logic in some situations.
84606c23f5fSRussell King
84706c23f5fSRussell King	   This config option will take CPU-specific actions to harden
84806c23f5fSRussell King	   the branch predictor against aliasing attacks and may rely on
84906c23f5fSRussell King	   specific instruction sequences or control bits being set by
85006c23f5fSRussell King	   the system firmware.
85106c23f5fSRussell King
85206c23f5fSRussell King	   If unsure, say Y.
85306c23f5fSRussell King
854*b9baf5c8SRussell King (Oracle)config HARDEN_BRANCH_HISTORY
855*b9baf5c8SRussell King (Oracle)	bool "Harden Spectre style attacks against branch history" if EXPERT
856*b9baf5c8SRussell King (Oracle)	depends on CPU_SPECTRE
857*b9baf5c8SRussell King (Oracle)	default y
858*b9baf5c8SRussell King (Oracle)	help
859*b9baf5c8SRussell King (Oracle)	  Speculation attacks against some high-performance processors can
860*b9baf5c8SRussell King (Oracle)	  make use of branch history to influence future speculation. When
861*b9baf5c8SRussell King (Oracle)	  taking an exception, a sequence of branches overwrites the branch
862*b9baf5c8SRussell King (Oracle)	  history, or branch history is invalidated.
863*b9baf5c8SRussell King (Oracle)
8644b0e07a5SNicolas Pitreconfig TLS_REG_EMUL
8654b0e07a5SNicolas Pitre	bool
866f6f91b0dSRussell King	select NEED_KUSER_HELPERS
8674b0e07a5SNicolas Pitre	help
86870489c88SNicolas Pitre	  An SMP system using a pre-ARMv6 processor (there are apparently
86970489c88SNicolas Pitre	  a few prototypes like that in existence) and therefore access to
87070489c88SNicolas Pitre	  that required register must be emulated.
8714b0e07a5SNicolas Pitre
872f6f91b0dSRussell Kingconfig NEED_KUSER_HELPERS
873f6f91b0dSRussell King	bool
874f6f91b0dSRussell King
875f6f91b0dSRussell Kingconfig KUSER_HELPERS
876f6f91b0dSRussell King	bool "Enable kuser helpers in vector page" if !NEED_KUSER_HELPERS
87708b964ffSNathan Lynch	depends on MMU
878f6f91b0dSRussell King	default y
879f6f91b0dSRussell King	help
880f6f91b0dSRussell King	  Warning: disabling this option may break user programs.
881f6f91b0dSRussell King
882f6f91b0dSRussell King	  Provide kuser helpers in the vector page.  The kernel provides
883f6f91b0dSRussell King	  helper code to userspace in read only form at a fixed location
884f6f91b0dSRussell King	  in the high vector page to allow userspace to be independent of
885f6f91b0dSRussell King	  the CPU type fitted to the system.  This permits binaries to be
886f6f91b0dSRussell King	  run on ARMv4 through to ARMv7 without modification.
887f6f91b0dSRussell King
888dc7a12bdSMauro Carvalho Chehab	  See Documentation/arm/kernel_user_helpers.rst for details.
889ac124504SNicolas Pitre
890f6f91b0dSRussell King	  However, the fixed address nature of these helpers can be used
891f6f91b0dSRussell King	  by ROP (return orientated programming) authors when creating
892f6f91b0dSRussell King	  exploits.
893f6f91b0dSRussell King
894f6f91b0dSRussell King	  If all of the binaries and libraries which run on your platform
895f6f91b0dSRussell King	  are built specifically for your platform, and make no use of
896ac124504SNicolas Pitre	  these helpers, then you can turn this option off to hinder
897ac124504SNicolas Pitre	  such exploits. However, in that case, if a binary or library
898ac124504SNicolas Pitre	  relying on those helpers is run, it will receive a SIGILL signal,
899ac124504SNicolas Pitre	  which will terminate the program.
900f6f91b0dSRussell King
901f6f91b0dSRussell King	  Say N here only if you are absolutely certain that you do not
902f6f91b0dSRussell King	  need these helpers; otherwise, the safe option is to say Y.
903f6f91b0dSRussell King
904e5b61debSNathan Lynchconfig VDSO
905e5b61debSNathan Lynch	bool "Enable VDSO for acceleration of some system calls"
9065d38000bSNathan Lynch	depends on AEABI && MMU && CPU_V7
907e5b61debSNathan Lynch	default y if ARM_ARCH_TIMER
90820e2fc42SVincenzo Frascino	select HAVE_GENERIC_VDSO
909e5b61debSNathan Lynch	select GENERIC_TIME_VSYSCALL
91020e2fc42SVincenzo Frascino	select GENERIC_VDSO_32
91120e2fc42SVincenzo Frascino	select GENERIC_GETTIMEOFDAY
912e5b61debSNathan Lynch	help
913e5b61debSNathan Lynch	  Place in the process address space an ELF shared object
914e5b61debSNathan Lynch	  providing fast implementations of gettimeofday and
915e5b61debSNathan Lynch	  clock_gettime.  Systems that implement the ARM architected
916e5b61debSNathan Lynch	  timer will receive maximum benefit.
917e5b61debSNathan Lynch
918e5b61debSNathan Lynch	  You must have glibc 2.22 or later for programs to seamlessly
919e5b61debSNathan Lynch	  take advantage of this.
920e5b61debSNathan Lynch
921ad642d9fSCatalin Marinasconfig DMA_CACHE_RWFO
922ad642d9fSCatalin Marinas	bool "Enable read/write for ownership DMA cache maintenance"
9233bc28c8eSRussell King	depends on CPU_V6K && SMP
924ad642d9fSCatalin Marinas	default y
925ad642d9fSCatalin Marinas	help
926ad642d9fSCatalin Marinas	  The Snoop Control Unit on ARM11MPCore does not detect the
927ad642d9fSCatalin Marinas	  cache maintenance operations and the dma_{map,unmap}_area()
928ad642d9fSCatalin Marinas	  functions may leave stale cache entries on other CPUs. By
929ad642d9fSCatalin Marinas	  enabling this option, Read or Write For Ownership in the ARMv6
930ad642d9fSCatalin Marinas	  DMA cache maintenance functions is performed. These LDR/STR
931ad642d9fSCatalin Marinas	  instructions change the cache line state to shared or modified
932ad642d9fSCatalin Marinas	  so that the cache operation has the desired effect.
933ad642d9fSCatalin Marinas
934ad642d9fSCatalin Marinas	  Note that the workaround is only valid on processors that do
935ad642d9fSCatalin Marinas	  not perform speculative loads into the D-cache. For such
936ad642d9fSCatalin Marinas	  processors, if cache maintenance operations are not broadcast
937ad642d9fSCatalin Marinas	  in hardware, other workarounds are needed (e.g. cache
938ad642d9fSCatalin Marinas	  maintenance broadcasting in software via FIQ).
939ad642d9fSCatalin Marinas
940953233dcSCatalin Marinasconfig OUTER_CACHE
941953233dcSCatalin Marinas	bool
942382266adSCatalin Marinas
943319f551aSCatalin Marinasconfig OUTER_CACHE_SYNC
944319f551aSCatalin Marinas	bool
945f8130906SRussell King	select ARM_HEAVY_MB
946319f551aSCatalin Marinas	help
947319f551aSCatalin Marinas	  The outer cache has a outer_cache_fns.sync function pointer
948319f551aSCatalin Marinas	  that can be used to drain the write buffer of the outer cache.
949319f551aSCatalin Marinas
950f6f9be1cSFlorian Fainelliconfig CACHE_B15_RAC
951f6f9be1cSFlorian Fainelli	bool "Enable the Broadcom Brahma-B15 read-ahead cache controller"
952f6f9be1cSFlorian Fainelli	depends on ARCH_BRCMSTB
953f6f9be1cSFlorian Fainelli	default y
954f6f9be1cSFlorian Fainelli	help
955f6f9be1cSFlorian Fainelli	  This option enables the Broadcom Brahma-B15 read-ahead cache
956f6f9be1cSFlorian Fainelli	  controller. If disabled, the read-ahead cache remains off.
957f6f9be1cSFlorian Fainelli
95899c6dc11SLennert Buytenhekconfig CACHE_FEROCEON_L2
95999c6dc11SLennert Buytenhek	bool "Enable the Feroceon L2 cache controller"
960ba364fc7SAndrew Lunn	depends on ARCH_MV78XX0 || ARCH_MVEBU
96199c6dc11SLennert Buytenhek	default y
962382266adSCatalin Marinas	select OUTER_CACHE
96399c6dc11SLennert Buytenhek	help
96499c6dc11SLennert Buytenhek	  This option enables the Feroceon L2 cache controller.
96599c6dc11SLennert Buytenhek
9664360bb41SRonen Shitritconfig CACHE_FEROCEON_L2_WRITETHROUGH
9674360bb41SRonen Shitrit	bool "Force Feroceon L2 cache write through"
9684360bb41SRonen Shitrit	depends on CACHE_FEROCEON_L2
9694360bb41SRonen Shitrit	help
9704360bb41SRonen Shitrit	  Say Y here to use the Feroceon L2 cache in writethrough mode.
9714360bb41SRonen Shitrit	  Unless you specifically require this, say N for writeback mode.
9724360bb41SRonen Shitrit
973ce5ea9f3SDave Martinconfig MIGHT_HAVE_CACHE_L2X0
974ce5ea9f3SDave Martin	bool
975ce5ea9f3SDave Martin	help
976ce5ea9f3SDave Martin	  This option should be selected by machines which have a L2x0
977ce5ea9f3SDave Martin	  or PL310 cache controller, but where its use is optional.
978ce5ea9f3SDave Martin
979ce5ea9f3SDave Martin	  The only effect of this option is to make CACHE_L2X0 and
980ce5ea9f3SDave Martin	  related options available to the user for configuration.
981ce5ea9f3SDave Martin
982ce5ea9f3SDave Martin	  Boards or SoCs which always require the cache controller
983ce5ea9f3SDave Martin	  support to be present should select CACHE_L2X0 directly
984ce5ea9f3SDave Martin	  instead of this option, thus preventing the user from
985ce5ea9f3SDave Martin	  inadvertently configuring a broken kernel.
986ce5ea9f3SDave Martin
9871da177e4SLinus Torvaldsconfig CACHE_L2X0
988ce5ea9f3SDave Martin	bool "Enable the L2x0 outer cache controller" if MIGHT_HAVE_CACHE_L2X0
989ce5ea9f3SDave Martin	default MIGHT_HAVE_CACHE_L2X0
9901da177e4SLinus Torvalds	select OUTER_CACHE
99123107c54SCatalin Marinas	select OUTER_CACHE_SYNC
992ba927951SCatalin Marinas	help
993ba927951SCatalin Marinas	  This option enables the L2x0 PrimeCell.
994905a09d5SEric Miao
995b828f960SMark Rutlandconfig CACHE_L2X0_PMU
996b828f960SMark Rutland	bool "L2x0 performance monitor support" if CACHE_L2X0
997b828f960SMark Rutland	depends on PERF_EVENTS
998b828f960SMark Rutland	help
999b828f960SMark Rutland	  This option enables support for the performance monitoring features
1000b828f960SMark Rutland	  of the L220 and PL310 outer cache controllers.
1001b828f960SMark Rutland
1002a641f3a6SRussell Kingif CACHE_L2X0
1003a641f3a6SRussell King
1004c0fe18baSRussell Kingconfig PL310_ERRATA_588369
1005c0fe18baSRussell King	bool "PL310 errata: Clean & Invalidate maintenance operations do not invalidate clean lines"
1006c0fe18baSRussell King	help
1007c0fe18baSRussell King	   The PL310 L2 cache controller implements three types of Clean &
1008c0fe18baSRussell King	   Invalidate maintenance operations: by Physical Address
1009c0fe18baSRussell King	   (offset 0x7F0), by Index/Way (0x7F8) and by Way (0x7FC).
1010c0fe18baSRussell King	   They are architecturally defined to behave as the execution of a
1011c0fe18baSRussell King	   clean operation followed immediately by an invalidate operation,
1012c0fe18baSRussell King	   both performing to the same memory location. This functionality
101380d3cb91SShawn Guo	   is not correctly implemented in PL310 prior to r2p0 (fixed in r2p0)
101480d3cb91SShawn Guo	   as clean lines are not invalidated as a result of these operations.
1015c0fe18baSRussell King
1016c0fe18baSRussell Kingconfig PL310_ERRATA_727915
1017c0fe18baSRussell King	bool "PL310 errata: Background Clean & Invalidate by Way operation can cause data corruption"
1018c0fe18baSRussell King	help
1019c0fe18baSRussell King	  PL310 implements the Clean & Invalidate by Way L2 cache maintenance
1020c0fe18baSRussell King	  operation (offset 0x7FC). This operation runs in background so that
1021c0fe18baSRussell King	  PL310 can handle normal accesses while it is in progress. Under very
1022c0fe18baSRussell King	  rare circumstances, due to this erratum, write data can be lost when
1023c0fe18baSRussell King	  PL310 treats a cacheable write transaction during a Clean &
102480d3cb91SShawn Guo	  Invalidate by Way operation.  Revisions prior to r3p1 are affected by
102580d3cb91SShawn Guo	  this errata (fixed in r3p1).
1026c0fe18baSRussell King
1027c0fe18baSRussell Kingconfig PL310_ERRATA_753970
1028c0fe18baSRussell King	bool "PL310 errata: cache sync operation may be faulty"
1029c0fe18baSRussell King	help
1030c0fe18baSRussell King	  This option enables the workaround for the 753970 PL310 (r3p0) erratum.
1031c0fe18baSRussell King
1032c0fe18baSRussell King	  Under some condition the effect of cache sync operation on
1033c0fe18baSRussell King	  the store buffer still remains when the operation completes.
1034c0fe18baSRussell King	  This means that the store buffer is always asked to drain and
1035c0fe18baSRussell King	  this prevents it from merging any further writes. The workaround
1036c0fe18baSRussell King	  is to replace the normal offset of cache sync operation (0x730)
1037c0fe18baSRussell King	  by another offset targeting an unmapped PL310 register 0x740.
1038c0fe18baSRussell King	  This has the same effect as the cache sync operation: store buffer
1039c0fe18baSRussell King	  drain and waiting for all buffers empty.
1040c0fe18baSRussell King
1041c0fe18baSRussell Kingconfig PL310_ERRATA_769419
1042c0fe18baSRussell King	bool "PL310 errata: no automatic Store Buffer drain"
1043c0fe18baSRussell King	help
1044c0fe18baSRussell King	  On revisions of the PL310 prior to r3p2, the Store Buffer does
1045c0fe18baSRussell King	  not automatically drain. This can cause normal, non-cacheable
1046c0fe18baSRussell King	  writes to be retained when the memory system is idle, leading
1047c0fe18baSRussell King	  to suboptimal I/O performance for drivers using coherent DMA.
1048c0fe18baSRussell King	  This option adds a write barrier to the cpu_idle loop so that,
1049c0fe18baSRussell King	  on systems with an outer cache, the store buffer is drained
1050c0fe18baSRussell King	  explicitly.
1051c0fe18baSRussell King
1052a641f3a6SRussell Kingendif
1053a641f3a6SRussell King
1054573a652fSLennert Buytenhekconfig CACHE_TAUROS2
1055573a652fSLennert Buytenhek	bool "Enable the Tauros2 L2 cache controller"
1056df8bf2d8SLubomir Rintel	depends on (CPU_MOHAWK || CPU_PJ4)
1057573a652fSLennert Buytenhek	default y
1058573a652fSLennert Buytenhek	select OUTER_CACHE
1059573a652fSLennert Buytenhek	help
1060573a652fSLennert Buytenhek	  This option enables the Tauros2 L2 cache controller (as
1061573a652fSLennert Buytenhek	  found on PJ1/PJ4).
1062573a652fSLennert Buytenhek
1063e7ecbc05SMasahiro Yamadaconfig CACHE_UNIPHIER
1064e7ecbc05SMasahiro Yamada	bool "Enable the UniPhier outer cache controller"
1065e7ecbc05SMasahiro Yamada	depends on ARCH_UNIPHIER
106601bf9278SMasahiro Yamada	select ARM_L1_CACHE_SHIFT_7
1067e7ecbc05SMasahiro Yamada	select OUTER_CACHE
1068e7ecbc05SMasahiro Yamada	select OUTER_CACHE_SYNC
1069e7ecbc05SMasahiro Yamada	help
1070e7ecbc05SMasahiro Yamada	  This option enables the UniPhier outer cache (system cache)
1071e7ecbc05SMasahiro Yamada	  controller.
1072e7ecbc05SMasahiro Yamada
1073905a09d5SEric Miaoconfig CACHE_XSC3L2
1074905a09d5SEric Miao	bool "Enable the L2 cache on XScale3"
1075905a09d5SEric Miao	depends on CPU_XSC3
1076905a09d5SEric Miao	default y
1077905a09d5SEric Miao	select OUTER_CACHE
1078905a09d5SEric Miao	help
1079905a09d5SEric Miao	  This option enables the L2 cache on XScale3.
1080910a17e5SKirill A. Shutemov
10815637a126SRussell Kingconfig ARM_L1_CACHE_SHIFT_6
10825637a126SRussell King	bool
1083a092f2b1SWill Deacon	default y if CPU_V7
10845637a126SRussell King	help
10855637a126SRussell King	  Setting ARM L1 cache line size to 64 Bytes.
10865637a126SRussell King
108701bf9278SMasahiro Yamadaconfig ARM_L1_CACHE_SHIFT_7
108801bf9278SMasahiro Yamada	bool
108901bf9278SMasahiro Yamada	help
109001bf9278SMasahiro Yamada	  Setting ARM L1 cache line size to 128 Bytes.
109101bf9278SMasahiro Yamada
1092910a17e5SKirill A. Shutemovconfig ARM_L1_CACHE_SHIFT
1093910a17e5SKirill A. Shutemov	int
109401bf9278SMasahiro Yamada	default 7 if ARM_L1_CACHE_SHIFT_7
1095d6d502faSKukjin Kim	default 6 if ARM_L1_CACHE_SHIFT_6
1096910a17e5SKirill A. Shutemov	default 5
109747ab0deeSRussell King
109847ab0deeSRussell Kingconfig ARM_DMA_MEM_BUFFERABLE
10991b11d39eSVladimir Murzin	bool "Use non-cacheable memory for DMA" if (CPU_V6 || CPU_V6K || CPU_V7M) && !CPU_V7
11001b11d39eSVladimir Murzin	default y if CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M
110147ab0deeSRussell King	help
110247ab0deeSRussell King	  Historically, the kernel has used strongly ordered mappings to
110347ab0deeSRussell King	  provide DMA coherent memory.  With the advent of ARMv7, mapping
110447ab0deeSRussell King	  memory with differing types results in unpredictable behaviour,
110547ab0deeSRussell King	  so on these CPUs, this option is forced on.
110647ab0deeSRussell King
110747ab0deeSRussell King	  Multiple mappings with differing attributes is also unpredictable
110847ab0deeSRussell King	  on ARMv6 CPUs, but since they do not have aggressive speculative
110947ab0deeSRussell King	  prefetch, no harm appears to occur.
111047ab0deeSRussell King
111147ab0deeSRussell King	  However, drivers may be missing the necessary barriers for ARMv6,
111247ab0deeSRussell King	  and therefore turning this on may result in unpredictable driver
111347ab0deeSRussell King	  behaviour.  Therefore, we offer this as an option.
111447ab0deeSRussell King
11151b11d39eSVladimir Murzin	  On some of the beefier ARMv7-M machines (with DMA and write
11161b11d39eSVladimir Murzin	  buffers) you likely want this enabled, while those that
11171b11d39eSVladimir Murzin	  didn't need it until now also won't need it in the future.
11181b11d39eSVladimir Murzin
111947ab0deeSRussell King	  You are recommended say 'Y' here and debug any affected drivers.
1120ac1d426eSRussell King
1121f8130906SRussell Kingconfig ARM_HEAVY_MB
1122f8130906SRussell King	bool
1123f8130906SRussell King
1124d10d2d48SBen Dooksconfig ARCH_SUPPORTS_BIG_ENDIAN
1125d10d2d48SBen Dooks	bool
1126d10d2d48SBen Dooks	help
1127d10d2d48SBen Dooks	  This option specifies the architecture can support big endian
1128d10d2d48SBen Dooks	  operation.
11291e6b4811SKees Cook
113025362dc4SKees Cookconfig DEBUG_ALIGN_RODATA
113125362dc4SKees Cook	bool "Make rodata strictly non-executable"
11320f5bf6d0SLaura Abbott	depends on STRICT_KERNEL_RWX
113380d6b0c2SKees Cook	default y
113480d6b0c2SKees Cook	help
113525362dc4SKees Cook	  If this is set, rodata will be made explicitly non-executable. This
113625362dc4SKees Cook	  provides protection on the rare chance that attackers might find and
113725362dc4SKees Cook	  use ROP gadgets that exist in the rodata section. This adds an
113825362dc4SKees Cook	  additional section-aligned split of rodata from kernel text so it
113925362dc4SKees Cook	  can be made explicitly non-executable. This padding may waste memory
114025362dc4SKees Cook	  space to gain the additional protection.
1141