xref: /rk3399_ARM-atf/include/lib/cpus/aarch64/cortex_a76ae.h (revision fd2fb5b7612810ee53ab6bce74dffe955e1f252a)
1 /*
2  * Copyright (c) 2019-2025, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef CORTEX_A76AE_H
8 #define CORTEX_A76AE_H
9 
10 #include <lib/utils_def.h>
11 
12 /* Cortex-A76AE MIDR for revision 0 */
13 #define CORTEX_A76AE_MIDR		U(0x410FD0E0)
14 
15 /* Cortex-A76 loop count for CVE-2022-23960 mitigation */
16 #define CORTEX_A76AE_BHB_LOOP_COUNT	U(24)
17 
18 /*******************************************************************************
19  * CPU Extended Control register specific definitions.
20  ******************************************************************************/
21 #define CORTEX_A76AE_CPUPWRCTLR_EL1	S3_0_C15_C2_7
22 
23 /*******************************************************************************
24  * CPU Auxiliary Control register specific definitions.
25  ******************************************************************************/
26 #define CORTEX_A76AE_CPUACTLR_EL1	S3_0_C15_C1_0
27 #define CORTEX_A76AE_CPUACTLR2_EL1	S3_0_C15_C1_1
28 
29 /*******************************************************************************
30  * CPU Private Control register specific definitions.
31  ******************************************************************************/
32 #define CORTEX_A76AE_CPUPSELR_EL3	S3_6_c15_c8_0
33 #define CORTEX_A76AE_CPUPCR_EL3		S3_6_c15_c8_1
34 #define CORTEX_A76AE_CPUPOR_EL3		S3_6_c15_c8_2
35 #define CORTEX_A76AE_CPUPMR_EL3		S3_6_c15_c8_3
36 
37 /* Definitions of register field mask in CORTEX_A76AE_CPUPWRCTLR_EL1 */
38 #define CORTEX_A76AE_CORE_PWRDN_EN_MASK	U(0x1)
39 
40 #define CORTEX_A76AE_CPUECTLR_EL1	S3_0_C15_C1_4
41 
42 #endif /* CORTEX_A76AE_H */
43