xref: /rk3399_ARM-atf/include/lib/cpus/aarch64/neoverse_n3.h (revision 6dacf15c1cd8f5c685c76a6ed90d63e90a65d79c)
1ba6b6949SGovindraj Raja /*
2fded8392SGovindraj Raja  * Copyright (c) 2023-2025, Arm Limited. All rights reserved.
3ba6b6949SGovindraj Raja  *
4ba6b6949SGovindraj Raja  * SPDX-License-Identifier: BSD-3-Clause
5ba6b6949SGovindraj Raja  */
6ba6b6949SGovindraj Raja 
7ba6b6949SGovindraj Raja #ifndef NEOVERSE_N3_H
8ba6b6949SGovindraj Raja #define NEOVERSE_N3_H
9ba6b6949SGovindraj Raja 
10ba6b6949SGovindraj Raja #define NEOVERSE_N3_MIDR				U(0x410FD8E0)
11ba6b6949SGovindraj Raja 
12ba6b6949SGovindraj Raja /*******************************************************************************
13ba6b6949SGovindraj Raja  * CPU Extended Control register specific definitions
14ba6b6949SGovindraj Raja  ******************************************************************************/
15ba6b6949SGovindraj Raja #define NEOVERSE_N3_CPUECTLR_EL1			S3_0_C15_C1_4
16*ff90ce41SYounghyun Park 
17*ff90ce41SYounghyun Park /*******************************************************************************
18*ff90ce41SYounghyun Park  * CPU Extended Control register 2 specific definitions.
19*ff90ce41SYounghyun Park  ******************************************************************************/
20*ff90ce41SYounghyun Park #define NEOVERSE_N3_CPUECTLR2_EL1			S3_0_C15_C1_5
21*ff90ce41SYounghyun Park #define NEOVERSE_N3_CPUECTLR2_EL1_SW_EXT_LLC_BIT	(ULL(1) << 10)
22ba6b6949SGovindraj Raja 
23ba6b6949SGovindraj Raja /*******************************************************************************
24ba6b6949SGovindraj Raja  * CPU Power Control register specific definitions
25ba6b6949SGovindraj Raja  ******************************************************************************/
26ba6b6949SGovindraj Raja #define NEOVERSE_N3_CPUPWRCTLR_EL1			S3_0_C15_C2_7
27ba6b6949SGovindraj Raja #define NEOVERSE_N3_CPUPWRCTLR_EL1_CORE_PWRDN_BIT	U(1)
28ba6b6949SGovindraj Raja 
29fded8392SGovindraj Raja #ifndef __ASSEMBLER__
30fded8392SGovindraj Raja long check_erratum_neoverse_n3_3699563(long cpu_rev);
31fded8392SGovindraj Raja #endif /* __ASSEMBLER__ */
32fded8392SGovindraj Raja 
33ba6b6949SGovindraj Raja #endif /* NEOVERSE_N3_H */
34