Joel Goddard | a1c50ab | 2022-09-21 21:52:28 +0530 | [diff] [blame] | 1 | /* |
Bipin Ravi | 4f9b75f | 2023-09-18 16:34:13 -0500 | [diff] [blame] | 2 | * Copyright (c) 2021-2023, Arm Limited. All rights reserved. |
Joel Goddard | a1c50ab | 2022-09-21 21:52:28 +0530 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef NEOVERSE_V2_H |
| 8 | #define NEOVERSE_V2_H |
| 9 | |
| 10 | #define NEOVERSE_V2_MIDR U(0x410FD4F0) |
| 11 | |
| 12 | /* Neoverse V2 loop count for CVE-2022-23960 mitigation */ |
| 13 | #define NEOVERSE_V2_BHB_LOOP_COUNT U(132) |
| 14 | |
| 15 | /******************************************************************************* |
| 16 | * CPU Extended Control register specific definitions |
| 17 | ******************************************************************************/ |
| 18 | #define NEOVERSE_V2_CPUECTLR_EL1 S3_0_C15_C1_4 |
| 19 | |
| 20 | /******************************************************************************* |
| 21 | * CPU Power Control register specific definitions |
| 22 | ******************************************************************************/ |
| 23 | #define NEOVERSE_V2_CPUPWRCTLR_EL1 S3_0_C15_C2_7 |
| 24 | #define NEOVERSE_V2_CPUPWRCTLR_EL1_CORE_PWRDN_BIT U(1) |
| 25 | |
Bipin Ravi | 4f9b75f | 2023-09-18 16:34:13 -0500 | [diff] [blame] | 26 | /******************************************************************************* |
| 27 | * CPU Extended Control register 2 specific definitions. |
| 28 | ******************************************************************************/ |
| 29 | #define NEOVERSE_V2_CPUECTLR2_EL1 S3_0_C15_C1_5 |
| 30 | #define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_CNSRV ULL(9) |
| 31 | #define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_LSB U(11) |
| 32 | #define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_WIDTH U(4) |
| 33 | |
Bipin Ravi | 90aaf98 | 2023-09-18 17:27:29 -0500 | [diff] [blame] | 34 | /******************************************************************************* |
| 35 | * CPU Auxiliary Control register 2 specific definitions. |
| 36 | ******************************************************************************/ |
| 37 | #define NEOVERSE_V2_CPUACTLR2_EL1 S3_0_C15_C1_1 |
| 38 | #define NEOVERSE_V2_CPUACTLR2_EL1_BIT_0 (ULL(1) << 0) |
| 39 | |
Bipin Ravi | 9d46b35 | 2023-09-18 19:28:32 -0500 | [diff] [blame] | 40 | /******************************************************************************* |
| 41 | * CPU Auxiliary Control register 3 specific definitions. |
| 42 | ******************************************************************************/ |
| 43 | #define NEOVERSE_V2_CPUACTLR3_EL1 S3_0_C15_C1_2 |
| 44 | #define NEOVERSE_V2_CPUACTLR3_EL1_BIT_47 (ULL(1) << 47) |
| 45 | |
Bipin Ravi | a20d061 | 2023-09-18 19:54:41 -0500 | [diff] [blame] | 46 | /******************************************************************************* |
| 47 | * CPU Auxiliary Control register 5 specific definitions. |
| 48 | ******************************************************************************/ |
| 49 | #define NEOVERSE_V2_CPUACTLR5_EL1 S3_0_C15_C8_0 |
| 50 | #define NEOVERSE_V2_CPUACTLR5_EL1_BIT_56 (ULL(1) << 56) |
| 51 | #define NEOVERSE_V2_CPUACTLR5_EL1_BIT_55 (ULL(1) << 55) |
| 52 | |
Joel Goddard | a1c50ab | 2022-09-21 21:52:28 +0530 | [diff] [blame] | 53 | #endif /* NEOVERSE_V2_H */ |