blob: a0aeaba81eebcc53fe2cc6b5e5adbce293a5dea1 [file] [log] [blame]
Joel Goddarda1c50ab2022-09-21 21:52:28 +05301/*
Bipin Ravi4f9b75f2023-09-18 16:34:13 -05002 * Copyright (c) 2021-2023, Arm Limited. All rights reserved.
Joel Goddarda1c50ab2022-09-21 21:52:28 +05303 *
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 Ravi4f9b75f2023-09-18 16:34:13 -050026/*******************************************************************************
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)
Bipin Ravi4b46c782023-10-17 18:35:55 -050033#define NEOVERSE_V2_CPUECTLR2_EL1_TXREQ_STATIC_FULL ULL(0)
34#define NEOVERSE_V2_CPUECTLR2_EL1_TXREQ_LSB U(0)
35#define NEOVERSE_V2_CPUECTLR2_EL1_TXREQ_WIDTH U(3)
Bipin Ravi4f9b75f2023-09-18 16:34:13 -050036
Bipin Ravi90aaf982023-09-18 17:27:29 -050037/*******************************************************************************
38 * CPU Auxiliary Control register 2 specific definitions.
39 ******************************************************************************/
40#define NEOVERSE_V2_CPUACTLR2_EL1 S3_0_C15_C1_1
41#define NEOVERSE_V2_CPUACTLR2_EL1_BIT_0 (ULL(1) << 0)
42
Bipin Ravi9d46b352023-09-18 19:28:32 -050043/*******************************************************************************
44 * CPU Auxiliary Control register 3 specific definitions.
45 ******************************************************************************/
46#define NEOVERSE_V2_CPUACTLR3_EL1 S3_0_C15_C1_2
47#define NEOVERSE_V2_CPUACTLR3_EL1_BIT_47 (ULL(1) << 47)
48
Bipin Ravia20d0612023-09-18 19:54:41 -050049/*******************************************************************************
50 * CPU Auxiliary Control register 5 specific definitions.
51 ******************************************************************************/
52#define NEOVERSE_V2_CPUACTLR5_EL1 S3_0_C15_C8_0
53#define NEOVERSE_V2_CPUACTLR5_EL1_BIT_56 (ULL(1) << 56)
54#define NEOVERSE_V2_CPUACTLR5_EL1_BIT_55 (ULL(1) << 55)
55
Joel Goddarda1c50ab2022-09-21 21:52:28 +053056#endif /* NEOVERSE_V2_H */