xref: /rk3399_ARM-atf/make_helpers/arch_features.mk (revision 5e827bf0296efeea9c99dd93ff5d346a928452bd)
16a0da736SJayanth Dodderi Chidanand#
2025b1b81SJohn Powell# Copyright (c) 2022-2025, Arm Limited. All rights reserved.
36a0da736SJayanth Dodderi Chidanand#
46a0da736SJayanth Dodderi Chidanand# SPDX-License-Identifier: BSD-3-Clause
56a0da736SJayanth Dodderi Chidanand#
66a0da736SJayanth Dodderi Chidanand
7f5211420SGovindraj Raja# This file lists all of the architectural features, and initializes
8f5211420SGovindraj Raja# and enables them based on the configured architecture version.
9f5211420SGovindraj Raja
10f5211420SGovindraj Raja# This file follows the following format:
113dafd960SGovindraj Raja#   - Enable mandatory feature if not updated, as applicable to an Arch Version.
12fb730117SGovindraj Raja#   - By default disable any mandatory features if they have not been defined yet.
13f5211420SGovindraj Raja#   - Disable or enable any optional feature this would be enabled/disabled if needed by platform.
14f5211420SGovindraj Raja
15f5211420SGovindraj Raja#
16f5211420SGovindraj Raja################################################################################
173dafd960SGovindraj Raja# Enable Mandatory features if not updated yet, based on Arch versions.
18f5211420SGovindraj Raja################################################################################
19f5211420SGovindraj Raja#
206a0da736SJayanth Dodderi Chidanand
216a0da736SJayanth Dodderi Chidanand# Enable the features which are mandatory from ARCH version 8.1 and upwards.
226a0da736SJayanth Dodderi Chidanandifeq "8.1" "$(word 1, $(sort 8.1 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
232a71f163SGovindraj Rajaarmv8-1-a-feats         := ENABLE_FEAT_PAN ENABLE_FEAT_VHE
242a71f163SGovindraj Raja
252a71f163SGovindraj RajaFEAT_LIST               := ${armv8-1-a-feats}
266a0da736SJayanth Dodderi Chidanandendif
276a0da736SJayanth Dodderi Chidanand
289202d519SManish Pandey# Enable the features which are mandatory from ARCH version 8.2 and upwards.
299202d519SManish Pandeyifeq "8.2" "$(word 1, $(sort 8.2 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
302a71f163SGovindraj Rajaarmv8-2-a-feats         := ENABLE_FEAT_RAS
312a71f163SGovindraj Raja# 8.1 Compliant
322a71f163SGovindraj Rajaarmv8-2-a-feats         += ${armv8-1-a-feats}
332a71f163SGovindraj Raja
342a71f163SGovindraj RajaFEAT_LIST               := ${armv8-2-a-feats}
352a71f163SGovindraj Rajaendif
362a71f163SGovindraj Raja
372a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 8.3 and upwards.
382a71f163SGovindraj Rajaifeq "8.3" "$(word 1, $(sort 8.3 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
392a71f163SGovindraj Raja# 8.2 Compliant
402a71f163SGovindraj Rajaarmv8-3-a-feats         += ${armv8-2-a-feats}
412a71f163SGovindraj Raja
422a71f163SGovindraj RajaFEAT_LIST               := ${armv8-3-a-feats}
439202d519SManish Pandeyendif
449202d519SManish Pandey
456a0da736SJayanth Dodderi Chidanand# Enable the features which are mandatory from ARCH version 8.4 and upwards.
466a0da736SJayanth Dodderi Chidanandifeq "8.4" "$(word 1, $(sort 8.4 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
472a71f163SGovindraj Rajaarmv8-4-a-feats         := ENABLE_FEAT_SEL2 ENABLE_TRF_FOR_NS ENABLE_FEAT_DIT
482a71f163SGovindraj Raja# 8.3 Compliant
492a71f163SGovindraj Rajaarmv8-4-a-feats         += ${armv8-3-a-feats}
502a71f163SGovindraj Raja
512a71f163SGovindraj RajaFEAT_LIST               := ${armv8-4-a-feats}
526a0da736SJayanth Dodderi Chidanandendif
536a0da736SJayanth Dodderi Chidanand
546a0da736SJayanth Dodderi Chidanand# Enable the features which are mandatory from ARCH version 8.5 and upwards.
556a0da736SJayanth Dodderi Chidanandifeq "8.5" "$(word 1, $(sort 8.5 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
562a71f163SGovindraj Rajaarmv8-5-a-feats         := ENABLE_FEAT_RNG ENABLE_FEAT_SB
572a71f163SGovindraj Raja# 8.4 Compliant
582a71f163SGovindraj Rajaarmv8-5-a-feats         += ${armv8-4-a-feats}
59f5211420SGovindraj Raja
602a71f163SGovindraj RajaFEAT_LIST               := ${armv8-5-a-feats}
616a0da736SJayanth Dodderi Chidanandendif
626a0da736SJayanth Dodderi Chidanand
636a0da736SJayanth Dodderi Chidanand# Enable the features which are mandatory from ARCH version 8.6 and upwards.
646a0da736SJayanth Dodderi Chidanandifeq "8.6" "$(word 1, $(sort 8.6 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
652a71f163SGovindraj Rajaarmv8-6-a-feats         := ENABLE_FEAT_ECV ENABLE_FEAT_FGT
662a71f163SGovindraj Raja# 8.5 Compliant
672a71f163SGovindraj Rajaarmv8-6-a-feats         += ${armv8-5-a-feats}
682a71f163SGovindraj RajaFEAT_LIST               := ${armv8-6-a-feats}
696a0da736SJayanth Dodderi Chidanandendif
706a0da736SJayanth Dodderi Chidanand
716a0da736SJayanth Dodderi Chidanand# Enable the features which are mandatory from ARCH version 8.7 and upwards.
726a0da736SJayanth Dodderi Chidanandifeq "8.7" "$(word 1, $(sort 8.7 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
732a71f163SGovindraj Rajaarmv8-7-a-feats         := ENABLE_FEAT_HCX
742a71f163SGovindraj Raja# 8.6 Compliant
752a71f163SGovindraj Rajaarmv8-7-a-feats         += ${armv8-6-a-feats}
762a71f163SGovindraj RajaFEAT_LIST               := ${armv8-7-a-feats}
772a71f163SGovindraj Rajaendif
782a71f163SGovindraj Raja
792a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 8.8 and upwards.
802a71f163SGovindraj Rajaifeq "8.8" "$(word 1, $(sort 8.8 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
816b8df7b9SArvind Ram Prakasharmv8-8-a-feats		:= ENABLE_FEAT_MOPS
822a71f163SGovindraj Raja# 8.7 Compliant
8394ff1d98SManish V Badarkhearmv8-8-a-feats         += ${armv8-7-a-feats}
842a71f163SGovindraj RajaFEAT_LIST               := ${armv8-8-a-feats}
856a0da736SJayanth Dodderi Chidanandendif
86f5211420SGovindraj Raja
87f5211420SGovindraj Raja# Enable the features which are mandatory from ARCH version 8.9 and upwards.
88f5211420SGovindraj Rajaifeq "8.9" "$(word 1, $(sort 8.9 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
89d6affea1SGovindraj Rajaarmv8-9-a-feats         := ENABLE_FEAT_TCR2 ENABLE_FEAT_DEBUGV8P9	\
90d6affea1SGovindraj Raja			   ENABLE_FEAT_SCTLR2 ENABLE_FEAT_CLRBHB
912a71f163SGovindraj Raja# 8.8 Compliant
922a71f163SGovindraj Rajaarmv8-9-a-feats         += ${armv8-8-a-feats}
932a71f163SGovindraj RajaFEAT_LIST               := ${armv8-9-a-feats}
94f5211420SGovindraj Rajaendif
95f5211420SGovindraj Raja
962a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 9.0 and upwards.
972a71f163SGovindraj Rajaifeq "9.0" "$(word 1, $(sort 9.0 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
982a71f163SGovindraj Raja# 8.5 Compliant
992a71f163SGovindraj Rajaarmv9-0-a-feats         += ${armv8-5-a-feats}
1002a71f163SGovindraj RajaFEAT_LIST               := ${armv9-0-a-feats}
1012a71f163SGovindraj Rajaendif
1022a71f163SGovindraj Raja
1032a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 9.1 and upwards.
1042a71f163SGovindraj Rajaifeq "9.1" "$(word 1, $(sort 9.1 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
1052a71f163SGovindraj Raja# 8.6 and 9.0 Compliant
1062a71f163SGovindraj Rajaarmv9-1-a-feats         += ${armv8-6-a-feats} ${armv9-0-a-feats}
1072a71f163SGovindraj RajaFEAT_LIST               := ${armv9-1-a-feats}
1082a71f163SGovindraj Rajaendif
1092a71f163SGovindraj Raja
1102a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 9.2 and upwards.
1112a71f163SGovindraj Rajaifeq "9.2" "$(word 1, $(sort 9.2 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
1122a71f163SGovindraj Raja# 8.7 and 9.1 Compliant
1132a71f163SGovindraj Rajaarmv9-2-a-feats         += ${armv8-7-a-feats} ${armv9-1-a-feats}
1142a71f163SGovindraj RajaFEAT_LIST               := ${armv9-2-a-feats}
1152a71f163SGovindraj Rajaendif
1162a71f163SGovindraj Raja
1172a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 9.3 and upwards.
1182a71f163SGovindraj Rajaifeq "9.3" "$(word 1, $(sort 9.3 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
1192a71f163SGovindraj Raja# 8.8 and 9.2 Compliant
1202a71f163SGovindraj Rajaarmv9-3-a-feats         += ${armv8-8-a-feats} ${armv9-2-a-feats}
1212a71f163SGovindraj RajaFEAT_LIST               := ${armv9-3-a-feats}
1222a71f163SGovindraj Rajaendif
1232a71f163SGovindraj Raja
1242a71f163SGovindraj Raja# Set all FEAT_* in FEAT_LIST to '1' if they are not yet defined or set
1252a71f163SGovindraj Raja# from build commandline options or platform makefile.
1262a71f163SGovindraj Raja$(eval $(call default_ones, ${sort ${FEAT_LIST}}))
1272a71f163SGovindraj Raja
128f5211420SGovindraj Raja#
129f5211420SGovindraj Raja################################################################################
1303dafd960SGovindraj Raja# Set mandatory features by default to zero, if they are not already updated.
131fb730117SGovindraj Raja################################################################################
132fb730117SGovindraj Raja#
133fb730117SGovindraj Raja
134fb730117SGovindraj Raja#----
135fb730117SGovindraj Raja# 8.1
136fb730117SGovindraj Raja#----
137fb730117SGovindraj Raja
138fb730117SGovindraj Raja# Flag to enable access to Privileged Access Never bit of PSTATE.
139fb730117SGovindraj RajaENABLE_FEAT_PAN			?=	0
140fb730117SGovindraj Raja
141fb730117SGovindraj Raja# Flag to enable Virtualization Host Extensions.
142fb730117SGovindraj RajaENABLE_FEAT_VHE			?=	0
143fb730117SGovindraj Raja
144fb730117SGovindraj Raja#----
145fb730117SGovindraj Raja# 8.2
146fb730117SGovindraj Raja#----
147fb730117SGovindraj Raja
148fb730117SGovindraj Raja# Enable RAS Support.
149fb730117SGovindraj RajaENABLE_FEAT_RAS			?=	0
150fb730117SGovindraj Raja
151fb730117SGovindraj Raja#----
152fb730117SGovindraj Raja# 8.3
153fb730117SGovindraj Raja#----
154fb730117SGovindraj Raja
155fb730117SGovindraj Raja# Flag to enable Pointer Authentication. Internal flag not meant for
156fb730117SGovindraj Raja# direct setting. Use BRANCH_PROTECTION to enable PAUTH.
157fb730117SGovindraj RajaENABLE_PAUTH			?=	0
158fb730117SGovindraj Raja
159025b1b81SJohn Powell# FEAT_PAUTH_LR is an optional architectural feature, so this flag must be set
160025b1b81SJohn Powell# manually in addition to the BRANCH_PROTECTION flag which is used for other
161025b1b81SJohn Powell# branch protection and pointer authentication features.
162025b1b81SJohn PowellENABLE_FEAT_PAUTH_LR		?=	0
163025b1b81SJohn Powell
164fb730117SGovindraj Raja# Include pointer authentication (ARMv8.3-PAuth) registers in cpu context. This
165fb730117SGovindraj Raja# must be set to 1 if the platform wants to use this feature in the Secure
166fb730117SGovindraj Raja# world. It is not necessary for use in the Non-secure world.
167fb730117SGovindraj RajaCTX_INCLUDE_PAUTH_REGS		?=	0
168fb730117SGovindraj Raja
169fb730117SGovindraj Raja
170fb730117SGovindraj Raja#----
171fb730117SGovindraj Raja# 8.4
172fb730117SGovindraj Raja#----
173fb730117SGovindraj Raja
174fb730117SGovindraj Raja# Flag to enable Secure EL-2 feature.
175fb730117SGovindraj RajaENABLE_FEAT_SEL2		?=	0
176fb730117SGovindraj Raja
177fb730117SGovindraj Raja# By default, disable trace filter control register access to lower non-secure
178fb730117SGovindraj Raja# exception levels, i.e. NS-EL2, or NS-EL1 if NS-EL2 is implemented, but
179fb730117SGovindraj Raja# trace filter control register access is unused if FEAT_TRF is implemented.
180fb730117SGovindraj RajaENABLE_TRF_FOR_NS		?=	0
181fb730117SGovindraj Raja
182fb730117SGovindraj Raja# Flag to enable Data Independent Timing instructions.
183fb730117SGovindraj RajaENABLE_FEAT_DIT			?=	0
184fb730117SGovindraj Raja
185fb730117SGovindraj Raja#----
186fb730117SGovindraj Raja# 8.5
187fb730117SGovindraj Raja#----
188fb730117SGovindraj Raja
189fb730117SGovindraj Raja# Flag to enable Branch Target Identification.
190fb730117SGovindraj Raja# Internal flag not meant for direct setting.
191fb730117SGovindraj Raja# Use BRANCH_PROTECTION to enable BTI.
192fb730117SGovindraj RajaENABLE_BTI			?=	0
193fb730117SGovindraj Raja
194fb730117SGovindraj Raja# Flag to enable access to the Random Number Generator registers.
195fb730117SGovindraj RajaENABLE_FEAT_RNG			?=	0
196fb730117SGovindraj Raja
197fb730117SGovindraj Raja# Flag to enable Speculation Barrier Instruction.
198fb730117SGovindraj RajaENABLE_FEAT_SB			?=	0
199fb730117SGovindraj Raja
200fb730117SGovindraj Raja#----
201fb730117SGovindraj Raja# 8.6
202fb730117SGovindraj Raja#----
203fb730117SGovindraj Raja
204fb730117SGovindraj Raja# Flag to enable access to the CNTPOFF_EL2 register.
205fb730117SGovindraj RajaENABLE_FEAT_ECV			?=	0
206fb730117SGovindraj Raja
207fb730117SGovindraj Raja# Flag to enable access to the HDFGRTR_EL2 register.
208fb730117SGovindraj RajaENABLE_FEAT_FGT			?=	0
209fb730117SGovindraj Raja
210fb730117SGovindraj Raja#----
211fb730117SGovindraj Raja# 8.7
212fb730117SGovindraj Raja#----
213fb730117SGovindraj Raja
214fb730117SGovindraj Raja# Flag to enable access to the HCRX_EL2 register by setting SCR_EL3.HXEn.
215fb730117SGovindraj RajaENABLE_FEAT_HCX			?=	0
216fb730117SGovindraj Raja
217fb730117SGovindraj Raja#----
2186b8df7b9SArvind Ram Prakash# 8.8
2196b8df7b9SArvind Ram Prakash#----
2206b8df7b9SArvind Ram Prakash
2216b8df7b9SArvind Ram Prakash# Flag to enable FEAT_MOPS (Standardization of Memory operations)
2226b8df7b9SArvind Ram Prakash# when INIT_UNUSED_NS_EL2 = 1
2236b8df7b9SArvind Ram PrakashENABLE_FEAT_MOPS		?=	0
2246b8df7b9SArvind Ram Prakash
2256b8df7b9SArvind Ram Prakash#----
226fb730117SGovindraj Raja# 8.9
227fb730117SGovindraj Raja#----
228fb730117SGovindraj Raja
229fb730117SGovindraj Raja# Flag to enable access to TCR2 (FEAT_TCR2).
230fb730117SGovindraj RajaENABLE_FEAT_TCR2		?=	0
231fb730117SGovindraj Raja
2324ec4e545SJayanth Dodderi Chidanand# Flag to enable access to SCTLR2 (FEAT_SCTLR2).
2334ec4e545SJayanth Dodderi ChidanandENABLE_FEAT_SCTLR2		?=	0
2344ec4e545SJayanth Dodderi Chidanand
235fb730117SGovindraj Raja#
236fb730117SGovindraj Raja################################################################################
237f5211420SGovindraj Raja# Optional Features defaulted to 0 or 2, if they are not enabled from
238f5211420SGovindraj Raja# build option. Can also be disabled or enabled by platform if needed.
239f5211420SGovindraj Raja################################################################################
240f5211420SGovindraj Raja#
241f5211420SGovindraj Raja
242f5211420SGovindraj Raja#----
243f5211420SGovindraj Raja# 8.0
244f5211420SGovindraj Raja#----
245f5211420SGovindraj Raja
246d6affea1SGovindraj Raja# Flag to enable support for clrbhb instruction.
247d6affea1SGovindraj RajaENABLE_FEAT_CLRBHB			?=	0
248d6affea1SGovindraj Raja
249f5211420SGovindraj Raja# Flag to enable CSV2_2 extension.
250f5211420SGovindraj RajaENABLE_FEAT_CSV2_2			?=	0
251f5211420SGovindraj Raja
25230019d86SSona Mathew# Flag to enable CSV2_3 extension. FEAT_CSV2_3 enables access to the
25330019d86SSona Mathew# SCXTNUM_ELx register.
25430019d86SSona MathewENABLE_FEAT_CSV2_3			?=	0
25530019d86SSona Mathew
256f5211420SGovindraj Raja# By default, disable access of trace system registers from NS lower
257f5211420SGovindraj Raja# ELs  i.e. NS-EL2, or NS-EL1 if NS-EL2 implemented but unused if
258f5211420SGovindraj Raja# system register trace is implemented. This feature is available if
259f5211420SGovindraj Raja# trace unit such as ETMv4.x, This feature is OPTIONAL and is only
260f5211420SGovindraj Raja# permitted in Armv8 implementations.
261f5211420SGovindraj RajaENABLE_SYS_REG_TRACE_FOR_NS		?=	0
262f5211420SGovindraj Raja
263f5211420SGovindraj Raja#----
264f5211420SGovindraj Raja# 8.2
265f5211420SGovindraj Raja#----
266f5211420SGovindraj Raja
267f5211420SGovindraj Raja# Build option to enable/disable the Statistical Profiling Extension,
268f5211420SGovindraj Raja# keep it enabled by default for AArch64.
269f5211420SGovindraj Rajaifeq (${ARCH},aarch64)
270f5211420SGovindraj Raja       ENABLE_SPE_FOR_NS		?=	2
271f5211420SGovindraj Rajaelse ifeq (${ARCH},aarch32)
272f0c813b7SGovindraj Raja       ifneq ($(or $(ENABLE_SPE_FOR_NS),0),0)
273f5211420SGovindraj Raja              $(error ENABLE_SPE_FOR_NS is not supported for AArch32)
274f5211420SGovindraj Raja       else
275f5211420SGovindraj Raja              ENABLE_SPE_FOR_NS		:=	0
276f5211420SGovindraj Raja       endif
277f5211420SGovindraj Rajaendif
278f5211420SGovindraj Raja
279f5211420SGovindraj Raja# Enable SVE for non-secure world by default.
280f5211420SGovindraj Rajaifeq (${ARCH},aarch64)
281f5211420SGovindraj Raja       ENABLE_SVE_FOR_NS		?=	2
282f5211420SGovindraj Raja# SVE is only supported on AArch64 so disable it on AArch32.
283f5211420SGovindraj Rajaelse ifeq (${ARCH},aarch32)
284f0c813b7SGovindraj Raja       ifneq ($(or $(ENABLE_SVE_FOR_NS),0),0)
285f5211420SGovindraj Raja              $(error ENABLE_SVE_FOR_NS is not supported for AArch32)
286f5211420SGovindraj Raja       else
287f5211420SGovindraj Raja              ENABLE_SVE_FOR_NS 	:=	0
288f5211420SGovindraj Raja       endif
289f5211420SGovindraj Rajaendif
290f5211420SGovindraj Raja
291f5211420SGovindraj Raja#----
292f5211420SGovindraj Raja# 8.4
293f5211420SGovindraj Raja#----
294f5211420SGovindraj Raja
295f5211420SGovindraj Raja# Feature flags for supporting Activity monitor extensions.
296f5211420SGovindraj RajaENABLE_FEAT_AMU				?=	0
297f5211420SGovindraj RajaENABLE_AMU_AUXILIARY_COUNTERS		?=	0
29814c27f82SJuan Pablo CondeAMU_RESTRICT_COUNTERS			?=	1
299f5211420SGovindraj Raja
300f5211420SGovindraj Raja# Build option to enable MPAM for lower ELs.
301edebefbcSArvind Ram Prakash# Enabling it by default
302edebefbcSArvind Ram Prakashifeq (${ARCH},aarch64)
303edebefbcSArvind Ram Prakash        ENABLE_FEAT_MPAM		?=	2
304edebefbcSArvind Ram Prakashelse ifeq (${ARCH},aarch32)
30572f027c3SHarrison Mutai        ifneq ($(or $(ENABLE_FEAT_MPAM),0),0)
306edebefbcSArvind Ram Prakash                $(error ENABLE_FEAT_MPAM is not supported for AArch32)
307edebefbcSArvind Ram Prakash        else
308edebefbcSArvind Ram Prakash                ENABLE_FEAT_MPAM	:=	0
309edebefbcSArvind Ram Prakash        endif
310edebefbcSArvind Ram Prakashendif
311f5211420SGovindraj Raja
3128b2048c1SGovindraj Raja# Include nested virtualization control (Armv8.4-NV) registers in cpu context.
3138b2048c1SGovindraj Raja# This must be set to 1 if architecture implements Nested Virtualization
3148b2048c1SGovindraj Raja# Extension and platform wants to use this feature in the Secure world.
3158b2048c1SGovindraj RajaCTX_INCLUDE_NEVE_REGS			?=	0
3168b2048c1SGovindraj Raja
317f5211420SGovindraj Raja#----
318f5211420SGovindraj Raja# 8.5
319f5211420SGovindraj Raja#----
320f5211420SGovindraj Raja
321f5211420SGovindraj Raja# Flag to enable support for EL3 trapping of reads of the RNDR and RNDRRS
322f5211420SGovindraj Raja# registers, by setting SCR_EL3.TRNDR.
323f5211420SGovindraj RajaENABLE_FEAT_RNG_TRAP			?=	0
324f5211420SGovindraj Raja
325c282384dSGovindraj Raja# Enable FEAT_MTE2. This must be set to 1 if the platform wants
326c282384dSGovindraj Raja# to use this feature and is enabled at ELX.
3278e397889SGovindraj RajaENABLE_FEAT_MTE2		        ?=	0
3288e397889SGovindraj Raja
329f5211420SGovindraj Raja#----
330f5211420SGovindraj Raja# 8.6
331f5211420SGovindraj Raja#----
332f5211420SGovindraj Raja
333f5211420SGovindraj Raja# Flag to enable AMUv1p1 extension.
334f5211420SGovindraj RajaENABLE_FEAT_AMUv1p1			?=	0
335f5211420SGovindraj Raja
336f5211420SGovindraj Raja# Flag to enable delayed trapping of WFE instruction (FEAT_TWED).
337f5211420SGovindraj RajaENABLE_FEAT_TWED			?=	0
338f5211420SGovindraj Raja
339f5211420SGovindraj Raja# In v8.6+ platforms with delayed trapping of WFE being supported
340f5211420SGovindraj Raja# via FEAT_TWED, this flag takes the delay value to be set in the
341f5211420SGovindraj Raja# SCR_EL3.TWEDEL(4bit) field, when FEAT_TWED is implemented.
342f5211420SGovindraj Raja# By default it takes 0, and need to be updated by the platforms.
343f5211420SGovindraj RajaTWED_DELAY				?=	0
344f5211420SGovindraj Raja
345f5211420SGovindraj Raja# Disable MTPMU if FEAT_MTPMU is supported.
346f5211420SGovindraj RajaDISABLE_MTPMU				?=	0
347f5211420SGovindraj Raja
34833e6aaacSArvind Ram Prakash# Flag to enable FEAT_FGT2 (Fine Granular Traps 2)
34933e6aaacSArvind Ram PrakashENABLE_FEAT_FGT2			?=	0
35033e6aaacSArvind Ram Prakash
35119d52a83SAndre Przywara# LoadStore64Bytes extension using the ACCDATA_EL1 system register
35219d52a83SAndre PrzywaraENABLE_FEAT_LS64_ACCDATA		?=	0
35319d52a83SAndre Przywara
354f5211420SGovindraj Raja#----
3556d0433f0SJayanth Dodderi Chidanand# 8.8
3566d0433f0SJayanth Dodderi Chidanand#----
3576d0433f0SJayanth Dodderi Chidanand
3586d0433f0SJayanth Dodderi Chidanand# Flag to enable FEAT_THE (Translation Hardening Extension)
3596d0433f0SJayanth Dodderi ChidanandENABLE_FEAT_THE				?=	0
3606d0433f0SJayanth Dodderi Chidanand
3616d0433f0SJayanth Dodderi Chidanand#----
362f5211420SGovindraj Raja# 8.9
363f5211420SGovindraj Raja#----
364f5211420SGovindraj Raja
365f5211420SGovindraj Raja# Flag to enable access to Stage 2 Permission Indirection (FEAT_S2PIE).
366f5211420SGovindraj RajaENABLE_FEAT_S2PIE			?=	0
367f5211420SGovindraj Raja
368f5211420SGovindraj Raja# Flag to enable access to Stage 1 Permission Indirection (FEAT_S1PIE).
369f5211420SGovindraj RajaENABLE_FEAT_S1PIE			?=	0
370f5211420SGovindraj Raja
371f5211420SGovindraj Raja# Flag to enable access to Stage 2 Permission Overlay (FEAT_S2POE).
372f5211420SGovindraj RajaENABLE_FEAT_S2POE			?=	0
373f5211420SGovindraj Raja
374f5211420SGovindraj Raja# Flag to enable access to Stage 1 Permission Overlay (FEAT_S1POE).
375f5211420SGovindraj RajaENABLE_FEAT_S1POE			?=	0
376f5211420SGovindraj Raja
37783271d5aSArvind Ram Prakash# Flag to enable access to Arm v8.9 Debug extension
37883271d5aSArvind Ram PrakashENABLE_FEAT_DEBUGV8P9			?=	0
37983271d5aSArvind Ram Prakash
380cc2523bbSAndre Przywara# AIE extension using the (A)MAIR2 system registers
381cc2523bbSAndre PrzywaraENABLE_FEAT_AIE				?=	0
382cc2523bbSAndre Przywara
383b3bcfd12SAndre Przywara# PFAR extension using the PFAR system registers
384b3bcfd12SAndre PrzywaraENABLE_FEAT_PFAR			?=	0
385b3bcfd12SAndre Przywara
386f5211420SGovindraj Raja#----
387f5211420SGovindraj Raja# 9.0
388f5211420SGovindraj Raja#----
389f5211420SGovindraj Raja
390f5211420SGovindraj Raja# Scalable Matrix Extension for non-secure world.
391f5211420SGovindraj RajaENABLE_SME_FOR_NS			?=	0
392f5211420SGovindraj Raja
393f5211420SGovindraj Raja# Scalable Vector Extension for secure world.
394f5211420SGovindraj RajaENABLE_SVE_FOR_SWD			?=	0
395f5211420SGovindraj Raja
396f5211420SGovindraj Raja# By default, disable access of trace buffer control registers from NS
397f5211420SGovindraj Raja# lower ELs  i.e. NS-EL2, or NS-EL1 if NS-EL2 implemented but unused
398f5211420SGovindraj Raja# if FEAT_TRBE is implemented.
399f5211420SGovindraj Raja# Note FEAT_TRBE is only supported on AArch64 - therefore do not enable in
400f5211420SGovindraj Raja# AArch32.
401f5211420SGovindraj Rajaifeq (${ARCH},aarch64)
402f5211420SGovindraj Raja        ENABLE_TRBE_FOR_NS		?=	0
403f5211420SGovindraj Rajaelse ifeq (${ARCH},aarch32)
404f0c813b7SGovindraj Raja        ifneq ($(or $(ENABLE_TRBE_FOR_NS),0),0)
405f5211420SGovindraj Raja               $(error ENABLE_TRBE_FOR_NS is not supported for AArch32)
406f5211420SGovindraj Raja        else
407f5211420SGovindraj Raja               ENABLE_TRBE_FOR_NS 	:=	0
408f5211420SGovindraj Raja        endif
409f5211420SGovindraj Rajaendif
410f5211420SGovindraj Raja
411f5211420SGovindraj Raja#----
412f5211420SGovindraj Raja# 9.2
413f5211420SGovindraj Raja#----
414f5211420SGovindraj Raja
4153dafd960SGovindraj Raja# Flag to enable Realm Management Extension (FEAT_RME).
4163dafd960SGovindraj RajaENABLE_RME				?=	0
4173dafd960SGovindraj Raja
418f5211420SGovindraj Raja# Scalable Matrix Extension version 2 for non-secure world.
419f5211420SGovindraj RajaENABLE_SME2_FOR_NS			?=	0
420f5211420SGovindraj Raja
421f5211420SGovindraj Raja# Scalable Matrix Extension for secure world.
422f5211420SGovindraj RajaENABLE_SME_FOR_SWD			?=	0
423f5211420SGovindraj Raja
424f5211420SGovindraj Raja# By default, disable access to branch record buffer control registers from NS
425f5211420SGovindraj Raja# lower ELs i.e. NS-EL2, or NS-EL1 if NS-EL2 implemented but unused
426f5211420SGovindraj Raja# if FEAT_BRBE is implemented.
427f5211420SGovindraj RajaENABLE_BRBE_FOR_NS			?=	0
428f5211420SGovindraj Raja
429a57e18e4SArvind Ram Prakash# Flag to enable Floating point exception Mode Register Feature (FEAT_FPMR)
430a57e18e4SArvind Ram PrakashENABLE_FEAT_FPMR			?=	0
431a57e18e4SArvind Ram Prakash
4327e84f3cfSTushar Khandelwal# Flag to enable Memory Encryption Contexts (FEAT_MEC).
4337e84f3cfSTushar KhandelwalENABLE_FEAT_MEC				?=	0
4347e84f3cfSTushar Khandelwal
435f5211420SGovindraj Raja#----
43630655136SGovindraj Raja# 9.3
43730655136SGovindraj Raja#----
43830655136SGovindraj Raja# Flag to enable access to Arm v9.3 FEAT_D128 extension
43930655136SGovindraj RajaENABLE_FEAT_D128			?=	0
44030655136SGovindraj Raja
4418cef63d6SBoyan Karatotev# Flag to enable access to GICv5 CPU interface extension (FEAT_GCIE)
4428cef63d6SBoyan KaratotevENABLE_FEAT_GCIE			?=	0
4438cef63d6SBoyan Karatotev
444c42aefd3SArvind Ram Prakash# Enables access to PE-side MPAM bandwidth controls (FEAT_MPAM_PE_BW_CTRL)
445c42aefd3SArvind Ram PrakashENABLE_FEAT_MPAM_PE_BW_CTRL		?=	0
446c42aefd3SArvind Ram Prakash
447714a1a93SManish Pandey# Flag to enable Exception-based Event Profiling (FEAT_EBEP)
448714a1a93SManish PandeyENABLE_FEAT_EBEP			?=	0
449714a1a93SManish Pandey
45030655136SGovindraj Raja#----
451f5211420SGovindraj Raja#9.4
452f5211420SGovindraj Raja#----
453f5211420SGovindraj Raja
454*5e827bf0STimothy Hayes# Flag to enable FEAT_RME_GDI
455*5e827bf0STimothy HayesENABLE_FEAT_RME_GDI			?=	0
456*5e827bf0STimothy Hayes
457f5211420SGovindraj Raja# Flag to enable access to Guarded Control Stack (FEAT_GCS).
458f5211420SGovindraj RajaENABLE_FEAT_GCS				?=	0
4594274b526SArvind Ram Prakash
4604274b526SArvind Ram Prakash# Flag to enable Fine Grained Write Traps (FEAT_FGWTE3) for EL3.
4614274b526SArvind Ram PrakashENABLE_FEAT_FGWTE3			?=	0
462a1032bebSJohn Powell
463a1032bebSJohn Powell# Flag to enable checked pointer arithmetic (FEAT_CPA2) for EL3.
464a1032bebSJohn Powell# We don't have a flag for FEAT_CPA since that has no effect on software
465a1032bebSJohn PowellENABLE_FEAT_CPA2			?=	0
466