xref: /rk3399_ARM-atf/make_helpers/arch_features.mk (revision 2a71f1633c7cc84c90c3c343b09153201ee6ebaa)
16a0da736SJayanth Dodderi Chidanand#
20a33adc0SGovindraj Raja# Copyright (c) 2022-2024, 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:
11fb730117SGovindraj Raja#   - Enable mandatory feature if 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################################################################################
17f5211420SGovindraj Raja# Enable Mandatory features 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)))"
23*2a71f163SGovindraj Rajaarmv8-1-a-feats         := ENABLE_FEAT_PAN ENABLE_FEAT_VHE
24*2a71f163SGovindraj Raja
25*2a71f163SGovindraj 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)))"
30*2a71f163SGovindraj Rajaarmv8-2-a-feats         := ENABLE_FEAT_RAS
31*2a71f163SGovindraj Raja# 8.1 Compliant
32*2a71f163SGovindraj Rajaarmv8-2-a-feats         += ${armv8-1-a-feats}
33*2a71f163SGovindraj Raja
34*2a71f163SGovindraj RajaFEAT_LIST               := ${armv8-2-a-feats}
35*2a71f163SGovindraj Rajaendif
36*2a71f163SGovindraj Raja
37*2a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 8.3 and upwards.
38*2a71f163SGovindraj Rajaifeq "8.3" "$(word 1, $(sort 8.3 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
39*2a71f163SGovindraj Raja# 8.2 Compliant
40*2a71f163SGovindraj Rajaarmv8-3-a-feats         += ${armv8-2-a-feats}
41*2a71f163SGovindraj Raja
42*2a71f163SGovindraj 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)))"
47*2a71f163SGovindraj Rajaarmv8-4-a-feats         := ENABLE_FEAT_SEL2 ENABLE_TRF_FOR_NS ENABLE_FEAT_DIT
48*2a71f163SGovindraj Raja# 8.3 Compliant
49*2a71f163SGovindraj Rajaarmv8-4-a-feats         += ${armv8-3-a-feats}
50*2a71f163SGovindraj Raja
51*2a71f163SGovindraj 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)))"
56*2a71f163SGovindraj Rajaarmv8-5-a-feats         := ENABLE_FEAT_RNG ENABLE_FEAT_SB
57*2a71f163SGovindraj Raja# 8.4 Compliant
58*2a71f163SGovindraj Rajaarmv8-5-a-feats         += ${armv8-4-a-feats}
59f5211420SGovindraj Raja
60*2a71f163SGovindraj RajaFEAT_LIST               := ${armv8-5-a-feats}
61f5211420SGovindraj Raja# Enable Memory tagging, Branch Target Identification for aarch64 only.
62f5211420SGovindraj Rajaifeq ($(ARCH), aarch64)
636c1ae075SGovindraj Raja	mem_tag_arch_support		?= 	yes
64f5211420SGovindraj Rajaendif #(ARCH=aarch64)
65f5211420SGovindraj Raja
666a0da736SJayanth Dodderi Chidanandendif
676a0da736SJayanth Dodderi Chidanand
686a0da736SJayanth Dodderi Chidanand# Enable the features which are mandatory from ARCH version 8.6 and upwards.
696a0da736SJayanth Dodderi Chidanandifeq "8.6" "$(word 1, $(sort 8.6 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
70*2a71f163SGovindraj Rajaarmv8-6-a-feats         := ENABLE_FEAT_ECV ENABLE_FEAT_FGT
71*2a71f163SGovindraj Raja# 8.5 Compliant
72*2a71f163SGovindraj Rajaarmv8-6-a-feats         += ${armv8-5-a-feats}
73*2a71f163SGovindraj RajaFEAT_LIST               := ${armv8-6-a-feats}
746a0da736SJayanth Dodderi Chidanandendif
756a0da736SJayanth Dodderi Chidanand
766a0da736SJayanth Dodderi Chidanand# Enable the features which are mandatory from ARCH version 8.7 and upwards.
776a0da736SJayanth Dodderi Chidanandifeq "8.7" "$(word 1, $(sort 8.7 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
78*2a71f163SGovindraj Rajaarmv8-7-a-feats         := ENABLE_FEAT_HCX
79*2a71f163SGovindraj Raja# 8.6 Compliant
80*2a71f163SGovindraj Rajaarmv8-7-a-feats         += ${armv8-6-a-feats}
81*2a71f163SGovindraj RajaFEAT_LIST               := ${armv8-7-a-feats}
82*2a71f163SGovindraj Rajaendif
83*2a71f163SGovindraj Raja
84*2a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 8.8 and upwards.
85*2a71f163SGovindraj Rajaifeq "8.8" "$(word 1, $(sort 8.8 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
86*2a71f163SGovindraj Raja# 8.7 Compliant
87*2a71f163SGovindraj Rajaarmv8-7-a-feats         += ${armv8-7-a-feats}
88*2a71f163SGovindraj RajaFEAT_LIST               := ${armv8-8-a-feats}
896a0da736SJayanth Dodderi Chidanandendif
90f5211420SGovindraj Raja
91f5211420SGovindraj Raja# Enable the features which are mandatory from ARCH version 8.9 and upwards.
92f5211420SGovindraj Rajaifeq "8.9" "$(word 1, $(sort 8.9 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
93*2a71f163SGovindraj Rajaarmv8-9-a-feats         := ENABLE_FEAT_TCR2
94*2a71f163SGovindraj Raja# 8.8 Compliant
95*2a71f163SGovindraj Rajaarmv8-9-a-feats         += ${armv8-8-a-feats}
96*2a71f163SGovindraj RajaFEAT_LIST               := ${armv8-9-a-feats}
97f5211420SGovindraj Rajaendif
98f5211420SGovindraj Raja
99*2a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 9.0 and upwards.
100*2a71f163SGovindraj Rajaifeq "9.0" "$(word 1, $(sort 9.0 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
101*2a71f163SGovindraj Raja# 8.5 Compliant
102*2a71f163SGovindraj Rajaarmv9-0-a-feats         += ${armv8-5-a-feats}
103*2a71f163SGovindraj RajaFEAT_LIST               := ${armv9-0-a-feats}
104*2a71f163SGovindraj Rajaendif
105*2a71f163SGovindraj Raja
106*2a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 9.1 and upwards.
107*2a71f163SGovindraj Rajaifeq "9.1" "$(word 1, $(sort 9.1 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
108*2a71f163SGovindraj Raja# 8.6 and 9.0 Compliant
109*2a71f163SGovindraj Rajaarmv9-1-a-feats         += ${armv8-6-a-feats} ${armv9-0-a-feats}
110*2a71f163SGovindraj RajaFEAT_LIST               := ${armv9-1-a-feats}
111*2a71f163SGovindraj Rajaendif
112*2a71f163SGovindraj Raja
113*2a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 9.2 and upwards.
114*2a71f163SGovindraj Rajaifeq "9.2" "$(word 1, $(sort 9.2 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
115*2a71f163SGovindraj Raja# 8.7 and 9.1 Compliant
116*2a71f163SGovindraj Rajaarmv9-2-a-feats         += ${armv8-7-a-feats} ${armv9-1-a-feats}
117*2a71f163SGovindraj RajaFEAT_LIST               := ${armv9-2-a-feats}
118*2a71f163SGovindraj Rajaendif
119*2a71f163SGovindraj Raja
120*2a71f163SGovindraj Raja# Enable the features which are mandatory from ARCH version 9.3 and upwards.
121*2a71f163SGovindraj Rajaifeq "9.3" "$(word 1, $(sort 9.3 $(ARM_ARCH_MAJOR).$(ARM_ARCH_MINOR)))"
122*2a71f163SGovindraj Raja# 8.8 and 9.2 Compliant
123*2a71f163SGovindraj Rajaarmv9-3-a-feats         += ${armv8-8-a-feats} ${armv9-2-a-feats}
124*2a71f163SGovindraj RajaFEAT_LIST               := ${armv9-3-a-feats}
125*2a71f163SGovindraj Rajaendif
126*2a71f163SGovindraj Raja
127*2a71f163SGovindraj Raja# Set all FEAT_* in FEAT_LIST to '1' if they are not yet defined or set
128*2a71f163SGovindraj Raja# from build commandline options or platform makefile.
129*2a71f163SGovindraj Raja$(eval $(call default_ones, ${sort ${FEAT_LIST}}))
130*2a71f163SGovindraj Raja
131f5211420SGovindraj Raja#
132f5211420SGovindraj Raja################################################################################
133fb730117SGovindraj Raja# Set mandatory features by default to zero.
134fb730117SGovindraj Raja################################################################################
135fb730117SGovindraj Raja#
136fb730117SGovindraj Raja
137fb730117SGovindraj Raja#----
138fb730117SGovindraj Raja# 8.1
139fb730117SGovindraj Raja#----
140fb730117SGovindraj Raja
141fb730117SGovindraj Raja# Flag to enable access to Privileged Access Never bit of PSTATE.
142fb730117SGovindraj RajaENABLE_FEAT_PAN			?=	0
143fb730117SGovindraj Raja
144fb730117SGovindraj Raja# Flag to enable Virtualization Host Extensions.
145fb730117SGovindraj RajaENABLE_FEAT_VHE			?=	0
146fb730117SGovindraj Raja
147fb730117SGovindraj Raja#----
148fb730117SGovindraj Raja# 8.2
149fb730117SGovindraj Raja#----
150fb730117SGovindraj Raja
151fb730117SGovindraj Raja# Enable RAS Support.
152fb730117SGovindraj RajaENABLE_FEAT_RAS			?=	0
153fb730117SGovindraj Raja
154fb730117SGovindraj Raja#----
155fb730117SGovindraj Raja# 8.3
156fb730117SGovindraj Raja#----
157fb730117SGovindraj Raja
158fb730117SGovindraj Raja# Flag to enable Pointer Authentication. Internal flag not meant for
159fb730117SGovindraj Raja# direct setting. Use BRANCH_PROTECTION to enable PAUTH.
160fb730117SGovindraj RajaENABLE_PAUTH			?=	0
161fb730117SGovindraj Raja
162fb730117SGovindraj Raja# Include pointer authentication (ARMv8.3-PAuth) registers in cpu context. This
163fb730117SGovindraj Raja# must be set to 1 if the platform wants to use this feature in the Secure
164fb730117SGovindraj Raja# world. It is not necessary for use in the Non-secure world.
165fb730117SGovindraj RajaCTX_INCLUDE_PAUTH_REGS		?=	0
166fb730117SGovindraj Raja
167fb730117SGovindraj Raja
168fb730117SGovindraj Raja#----
169fb730117SGovindraj Raja# 8.4
170fb730117SGovindraj Raja#----
171fb730117SGovindraj Raja
172fb730117SGovindraj Raja# Flag to enable Secure EL-2 feature.
173fb730117SGovindraj RajaENABLE_FEAT_SEL2		?=	0
174fb730117SGovindraj Raja
175fb730117SGovindraj Raja# By default, disable trace filter control register access to lower non-secure
176fb730117SGovindraj Raja# exception levels, i.e. NS-EL2, or NS-EL1 if NS-EL2 is implemented, but
177fb730117SGovindraj Raja# trace filter control register access is unused if FEAT_TRF is implemented.
178fb730117SGovindraj RajaENABLE_TRF_FOR_NS		?=	0
179fb730117SGovindraj Raja
180fb730117SGovindraj Raja# Flag to enable Data Independent Timing instructions.
181fb730117SGovindraj RajaENABLE_FEAT_DIT			?=	0
182fb730117SGovindraj Raja
183fb730117SGovindraj Raja#----
184fb730117SGovindraj Raja# 8.5
185fb730117SGovindraj Raja#----
186fb730117SGovindraj Raja
187fb730117SGovindraj Raja# Flag to enable Branch Target Identification.
188fb730117SGovindraj Raja# Internal flag not meant for direct setting.
189fb730117SGovindraj Raja# Use BRANCH_PROTECTION to enable BTI.
190fb730117SGovindraj RajaENABLE_BTI			?=	0
191fb730117SGovindraj Raja
192fb730117SGovindraj Raja# Flag to enable access to the Random Number Generator registers.
193fb730117SGovindraj RajaENABLE_FEAT_RNG			?=	0
194fb730117SGovindraj Raja
195fb730117SGovindraj Raja# Flag to enable Speculation Barrier Instruction.
196fb730117SGovindraj RajaENABLE_FEAT_SB			?=	0
197fb730117SGovindraj Raja
198fb730117SGovindraj Raja#----
199fb730117SGovindraj Raja# 8.6
200fb730117SGovindraj Raja#----
201fb730117SGovindraj Raja
202fb730117SGovindraj Raja# Flag to enable access to the CNTPOFF_EL2 register.
203fb730117SGovindraj RajaENABLE_FEAT_ECV			?=	0
204fb730117SGovindraj Raja
205fb730117SGovindraj Raja# Flag to enable access to the HDFGRTR_EL2 register.
206fb730117SGovindraj RajaENABLE_FEAT_FGT			?=	0
207fb730117SGovindraj Raja
208fb730117SGovindraj Raja#----
209fb730117SGovindraj Raja# 8.7
210fb730117SGovindraj Raja#----
211fb730117SGovindraj Raja
212fb730117SGovindraj Raja# Flag to enable access to the HCRX_EL2 register by setting SCR_EL3.HXEn.
213fb730117SGovindraj RajaENABLE_FEAT_HCX			?=	0
214fb730117SGovindraj Raja
215fb730117SGovindraj Raja#----
216fb730117SGovindraj Raja# 8.9
217fb730117SGovindraj Raja#----
218fb730117SGovindraj Raja
219fb730117SGovindraj Raja# Flag to enable access to TCR2 (FEAT_TCR2).
220fb730117SGovindraj RajaENABLE_FEAT_TCR2		?=	0
221fb730117SGovindraj Raja
222fb730117SGovindraj Raja#
223fb730117SGovindraj Raja################################################################################
224f5211420SGovindraj Raja# Optional Features defaulted to 0 or 2, if they are not enabled from
225f5211420SGovindraj Raja# build option. Can also be disabled or enabled by platform if needed.
226f5211420SGovindraj Raja################################################################################
227f5211420SGovindraj Raja#
228f5211420SGovindraj Raja
229f5211420SGovindraj Raja#----
230f5211420SGovindraj Raja# 8.0
231f5211420SGovindraj Raja#----
232f5211420SGovindraj Raja
233f5211420SGovindraj Raja# Flag to enable CSV2_2 extension.
234f5211420SGovindraj RajaENABLE_FEAT_CSV2_2			?=	0
235f5211420SGovindraj Raja
23630019d86SSona Mathew# Flag to enable CSV2_3 extension. FEAT_CSV2_3 enables access to the
23730019d86SSona Mathew# SCXTNUM_ELx register.
23830019d86SSona MathewENABLE_FEAT_CSV2_3			?=	0
23930019d86SSona Mathew
240f5211420SGovindraj Raja# By default, disable access of trace system registers from NS lower
241f5211420SGovindraj Raja# ELs  i.e. NS-EL2, or NS-EL1 if NS-EL2 implemented but unused if
242f5211420SGovindraj Raja# system register trace is implemented. This feature is available if
243f5211420SGovindraj Raja# trace unit such as ETMv4.x, This feature is OPTIONAL and is only
244f5211420SGovindraj Raja# permitted in Armv8 implementations.
245f5211420SGovindraj RajaENABLE_SYS_REG_TRACE_FOR_NS		?=	0
246f5211420SGovindraj Raja
247f5211420SGovindraj Raja#----
248f5211420SGovindraj Raja# 8.2
249f5211420SGovindraj Raja#----
250f5211420SGovindraj Raja
251f5211420SGovindraj Raja# Build option to enable/disable the Statistical Profiling Extension,
252f5211420SGovindraj Raja# keep it enabled by default for AArch64.
253f5211420SGovindraj Rajaifeq (${ARCH},aarch64)
254f5211420SGovindraj Raja       ENABLE_SPE_FOR_NS		?=	2
255f5211420SGovindraj Rajaelse ifeq (${ARCH},aarch32)
256f0c813b7SGovindraj Raja       ifneq ($(or $(ENABLE_SPE_FOR_NS),0),0)
257f5211420SGovindraj Raja              $(error ENABLE_SPE_FOR_NS is not supported for AArch32)
258f5211420SGovindraj Raja       else
259f5211420SGovindraj Raja              ENABLE_SPE_FOR_NS		:=	0
260f5211420SGovindraj Raja       endif
261f5211420SGovindraj Rajaendif
262f5211420SGovindraj Raja
263f5211420SGovindraj Raja# Enable SVE for non-secure world by default.
264f5211420SGovindraj Rajaifeq (${ARCH},aarch64)
265f5211420SGovindraj Raja       ENABLE_SVE_FOR_NS		?=	2
266f5211420SGovindraj Raja# SVE is only supported on AArch64 so disable it on AArch32.
267f5211420SGovindraj Rajaelse ifeq (${ARCH},aarch32)
268f0c813b7SGovindraj Raja       ifneq ($(or $(ENABLE_SVE_FOR_NS),0),0)
269f5211420SGovindraj Raja              $(error ENABLE_SVE_FOR_NS is not supported for AArch32)
270f5211420SGovindraj Raja       else
271f5211420SGovindraj Raja              ENABLE_SVE_FOR_NS 	:=	0
272f5211420SGovindraj Raja       endif
273f5211420SGovindraj Rajaendif
274f5211420SGovindraj Raja
275f5211420SGovindraj Raja#----
276f5211420SGovindraj Raja# 8.4
277f5211420SGovindraj Raja#----
278f5211420SGovindraj Raja
279f5211420SGovindraj Raja# Feature flags for supporting Activity monitor extensions.
280f5211420SGovindraj RajaENABLE_FEAT_AMU				?=	0
281f5211420SGovindraj RajaENABLE_AMU_AUXILIARY_COUNTERS		?=	0
282f5211420SGovindraj RajaENABLE_AMU_FCONF			?=	0
283f5211420SGovindraj RajaAMU_RESTRICT_COUNTERS			?=	0
284f5211420SGovindraj Raja
285f5211420SGovindraj Raja# Build option to enable MPAM for lower ELs.
286edebefbcSArvind Ram Prakash# Enabling it by default
287edebefbcSArvind Ram Prakashifeq (${ARCH},aarch64)
288edebefbcSArvind Ram Prakash        ENABLE_FEAT_MPAM		?=	2
289edebefbcSArvind Ram Prakashelse ifeq (${ARCH},aarch32)
29072f027c3SHarrison Mutai        ifneq ($(or $(ENABLE_FEAT_MPAM),0),0)
291edebefbcSArvind Ram Prakash                $(error ENABLE_FEAT_MPAM is not supported for AArch32)
292edebefbcSArvind Ram Prakash        else
293edebefbcSArvind Ram Prakash                ENABLE_FEAT_MPAM	:=	0
294edebefbcSArvind Ram Prakash        endif
295edebefbcSArvind Ram Prakashendif
296f5211420SGovindraj Raja
2978b2048c1SGovindraj Raja# Include nested virtualization control (Armv8.4-NV) registers in cpu context.
2988b2048c1SGovindraj Raja# This must be set to 1 if architecture implements Nested Virtualization
2998b2048c1SGovindraj Raja# Extension and platform wants to use this feature in the Secure world.
3008b2048c1SGovindraj RajaCTX_INCLUDE_NEVE_REGS			?=	0
3018b2048c1SGovindraj Raja
302f5211420SGovindraj Raja#----
303f5211420SGovindraj Raja# 8.5
304f5211420SGovindraj Raja#----
305f5211420SGovindraj Raja
306f5211420SGovindraj Raja# Flag to enable support for EL3 trapping of reads of the RNDR and RNDRRS
307f5211420SGovindraj Raja# registers, by setting SCR_EL3.TRNDR.
308f5211420SGovindraj RajaENABLE_FEAT_RNG_TRAP			?=	0
309f5211420SGovindraj Raja
3100a33adc0SGovindraj Raja# Enable Memory Tagging Extension. This must be set to 1 if the platform wants
3110a33adc0SGovindraj Raja# to use this feature in the Secure world and MTE is enabled at ELX.
3120a33adc0SGovindraj Rajaifeq ($(CTX_INCLUDE_MTE_REGS),1)
3130a33adc0SGovindraj Raja        $(warning CTX_INCLUDE_MTE_REGS option is deprecated use ENABLE_FEAT_MTE, Enabling ENABLE_FEAT_MTE)
3140a33adc0SGovindraj Raja        ENABLE_FEAT_MTE                 ?=      1
3150a33adc0SGovindraj Rajaendif
3160a33adc0SGovindraj Rajaifeq (${ARCH},aarch32)
3170a33adc0SGovindraj Raja        ifneq ($(or $(ENABLE_FEAT_MTE),0),0)
3180a33adc0SGovindraj Raja                $(error ENABLE_FEAT_MTE is not supported for AArch32)
3190a33adc0SGovindraj Raja        endif
3200a33adc0SGovindraj Rajaendif
3210a33adc0SGovindraj RajaENABLE_FEAT_MTE		                ?=	0
322f5211420SGovindraj Raja
323f5211420SGovindraj Raja#----
324f5211420SGovindraj Raja# 8.6
325f5211420SGovindraj Raja#----
326f5211420SGovindraj Raja
327f5211420SGovindraj Raja# Flag to enable AMUv1p1 extension.
328f5211420SGovindraj RajaENABLE_FEAT_AMUv1p1			?=	0
329f5211420SGovindraj Raja
330f5211420SGovindraj Raja# Flag to enable delayed trapping of WFE instruction (FEAT_TWED).
331f5211420SGovindraj RajaENABLE_FEAT_TWED			?=	0
332f5211420SGovindraj Raja
333f5211420SGovindraj Raja# In v8.6+ platforms with delayed trapping of WFE being supported
334f5211420SGovindraj Raja# via FEAT_TWED, this flag takes the delay value to be set in the
335f5211420SGovindraj Raja# SCR_EL3.TWEDEL(4bit) field, when FEAT_TWED is implemented.
336f5211420SGovindraj Raja# By default it takes 0, and need to be updated by the platforms.
337f5211420SGovindraj RajaTWED_DELAY				?=	0
338f5211420SGovindraj Raja
339f5211420SGovindraj Raja# Disable MTPMU if FEAT_MTPMU is supported.
340f5211420SGovindraj RajaDISABLE_MTPMU				?=	0
341f5211420SGovindraj Raja
342f5211420SGovindraj Raja#----
343f5211420SGovindraj Raja# 8.9
344f5211420SGovindraj Raja#----
345f5211420SGovindraj Raja
346f5211420SGovindraj Raja# Flag to enable NoTagAccess memory region attribute for stage 2 of translation.
347f5211420SGovindraj RajaENABLE_FEAT_MTE_PERM			?=	0
348f5211420SGovindraj Raja
349f5211420SGovindraj Raja# Flag to enable access to Stage 2 Permission Indirection (FEAT_S2PIE).
350f5211420SGovindraj RajaENABLE_FEAT_S2PIE			?=	0
351f5211420SGovindraj Raja
352f5211420SGovindraj Raja# Flag to enable access to Stage 1 Permission Indirection (FEAT_S1PIE).
353f5211420SGovindraj RajaENABLE_FEAT_S1PIE			?=	0
354f5211420SGovindraj Raja
355f5211420SGovindraj Raja# Flag to enable access to Stage 2 Permission Overlay (FEAT_S2POE).
356f5211420SGovindraj RajaENABLE_FEAT_S2POE			?=	0
357f5211420SGovindraj Raja
358f5211420SGovindraj Raja# Flag to enable access to Stage 1 Permission Overlay (FEAT_S1POE).
359f5211420SGovindraj RajaENABLE_FEAT_S1POE			?=	0
360f5211420SGovindraj Raja
361f5211420SGovindraj Raja#----
362f5211420SGovindraj Raja# 9.0
363f5211420SGovindraj Raja#----
364f5211420SGovindraj Raja
365f5211420SGovindraj Raja# Flag to enable Realm Management Extension (FEAT_RME).
366f5211420SGovindraj RajaENABLE_RME				?=	0
367f5211420SGovindraj Raja
368f5211420SGovindraj Raja# Scalable Matrix Extension for non-secure world.
369f5211420SGovindraj RajaENABLE_SME_FOR_NS			?=	0
370f5211420SGovindraj Raja
371f5211420SGovindraj Raja# Scalable Vector Extension for secure world.
372f5211420SGovindraj RajaENABLE_SVE_FOR_SWD			?=	0
373f5211420SGovindraj Raja
374f5211420SGovindraj Raja# By default, disable access of trace buffer control registers from NS
375f5211420SGovindraj Raja# lower ELs  i.e. NS-EL2, or NS-EL1 if NS-EL2 implemented but unused
376f5211420SGovindraj Raja# if FEAT_TRBE is implemented.
377f5211420SGovindraj Raja# Note FEAT_TRBE is only supported on AArch64 - therefore do not enable in
378f5211420SGovindraj Raja# AArch32.
379f5211420SGovindraj Rajaifeq (${ARCH},aarch64)
380f5211420SGovindraj Raja        ENABLE_TRBE_FOR_NS		?=	0
381f5211420SGovindraj Rajaelse ifeq (${ARCH},aarch32)
382f0c813b7SGovindraj Raja        ifneq ($(or $(ENABLE_TRBE_FOR_NS),0),0)
383f5211420SGovindraj Raja               $(error ENABLE_TRBE_FOR_NS is not supported for AArch32)
384f5211420SGovindraj Raja        else
385f5211420SGovindraj Raja               ENABLE_TRBE_FOR_NS 	:=	0
386f5211420SGovindraj Raja        endif
387f5211420SGovindraj Rajaendif
388f5211420SGovindraj Raja
389f5211420SGovindraj Raja#----
390f5211420SGovindraj Raja# 9.2
391f5211420SGovindraj Raja#----
392f5211420SGovindraj Raja
393f5211420SGovindraj Raja# Scalable Matrix Extension version 2 for non-secure world.
394f5211420SGovindraj RajaENABLE_SME2_FOR_NS			?=	0
395f5211420SGovindraj Raja
396f5211420SGovindraj Raja# Scalable Matrix Extension for secure world.
397f5211420SGovindraj RajaENABLE_SME_FOR_SWD			?=	0
398f5211420SGovindraj Raja
399f5211420SGovindraj Raja# By default, disable access to branch record buffer control registers from NS
400f5211420SGovindraj Raja# lower ELs i.e. NS-EL2, or NS-EL1 if NS-EL2 implemented but unused
401f5211420SGovindraj Raja# if FEAT_BRBE is implemented.
402f5211420SGovindraj RajaENABLE_BRBE_FOR_NS			?=	0
403f5211420SGovindraj Raja
404f5211420SGovindraj Raja#----
405f5211420SGovindraj Raja#9.4
406f5211420SGovindraj Raja#----
407f5211420SGovindraj Raja
408f5211420SGovindraj Raja# Flag to enable access to Guarded Control Stack (FEAT_GCS).
409f5211420SGovindraj RajaENABLE_FEAT_GCS				?=	0
410