xref: /rk3399_ARM-atf/include/lib/cpus/aarch64/cortex_a715.h (revision 3b06438dd1e038a7453d3b812ca6ef2da54f6ba8)
1 /*
2  * Copyright (c) 2021-2025, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef CORTEX_A715_H
8 #define CORTEX_A715_H
9 
10 #define CORTEX_A715_MIDR					U(0x410FD4D0)
11 
12 /* Cortex-A715 loop count for CVE-2022-23960 mitigation */
13 #define CORTEX_A715_BHB_LOOP_COUNT				U(38)
14 
15 /*******************************************************************************
16  * CPU Register Mappings
17  ******************************************************************************/
18 #define CORTEX_A715_CPUCFR_EL1					S3_0_C15_C0_0
19 #define CORTEX_A715_CPUACTLR_EL1				S3_0_C15_C1_0
20 #define CORTEX_A715_CPUACTLR2_EL1				S3_0_C15_C1_1
21 #define CORTEX_A715_CPUACTLR3_EL1				S3_0_C15_C1_2
22 #define CORTEX_A715_CPUECTLR_EL1				S3_0_C15_C1_4
23 #define CORTEX_A715_CPUECTLR2_EL1				S3_0_C15_C1_5
24 #define CORTEX_A715_CPUPSELR_EL3				S3_6_C15_C8_0
25 #define CORTEX_A715_CPUPCR_EL3					S3_6_C15_C8_1
26 #define CORTEX_A715_CPUPOR_EL3					S3_6_C15_C8_2
27 #define CORTEX_A715_CPUPMR_EL3					S3_6_C15_C8_3
28 
29 /*******************************************************************************
30  * CPU Power Control register specific definitions
31  ******************************************************************************/
32 #define CORTEX_A715_CPUPWRCTLR_EL1				S3_0_C15_C2_7
33 #define CORTEX_A715_CPUPWRCTLR_EL1_CORE_PWRDN_BIT		U(1)
34 
35 #ifndef __ASSEMBLER__
36 long check_erratum_cortex_a715_3699560(long cpu_rev);
37 #endif /* __ASSEMBLER__ */
38 
39 #endif /* CORTEX_A715_H */
40