1bd063a73SJoel Goddard /* 28852fb5bSBipin Ravi * Copyright (c) 2021-2023, Arm Limited. All rights reserved. 3bd063a73SJoel Goddard * 4bd063a73SJoel Goddard * SPDX-License-Identifier: BSD-3-Clause 5bd063a73SJoel Goddard */ 6bd063a73SJoel Goddard 7bd063a73SJoel Goddard #ifndef NEOVERSE_V2_H 8bd063a73SJoel Goddard #define NEOVERSE_V2_H 9bd063a73SJoel Goddard 10bd063a73SJoel Goddard #define NEOVERSE_V2_MIDR U(0x410FD4F0) 11bd063a73SJoel Goddard 12bd063a73SJoel Goddard /* Neoverse V2 loop count for CVE-2022-23960 mitigation */ 13bd063a73SJoel Goddard #define NEOVERSE_V2_BHB_LOOP_COUNT U(132) 14bd063a73SJoel Goddard 15bd063a73SJoel Goddard /******************************************************************************* 16bd063a73SJoel Goddard * CPU Extended Control register specific definitions 17bd063a73SJoel Goddard ******************************************************************************/ 18bd063a73SJoel Goddard #define NEOVERSE_V2_CPUECTLR_EL1 S3_0_C15_C1_4 19bd063a73SJoel Goddard 20bd063a73SJoel Goddard /******************************************************************************* 21bd063a73SJoel Goddard * CPU Power Control register specific definitions 22bd063a73SJoel Goddard ******************************************************************************/ 23bd063a73SJoel Goddard #define NEOVERSE_V2_CPUPWRCTLR_EL1 S3_0_C15_C2_7 24bd063a73SJoel Goddard #define NEOVERSE_V2_CPUPWRCTLR_EL1_CORE_PWRDN_BIT U(1) 25*c0f8ce53SBipin Ravi #define NEOVERSE_V2_CPUPWRCTLR_EL1_WFI_RET_CTRL_SHIFT U(4) 26*c0f8ce53SBipin Ravi #define NEOVERSE_V2_CPUPWRCTLR_EL1_WFI_RET_CTRL_WIDTH U(3) 27*c0f8ce53SBipin Ravi #define NEOVERSE_V2_CPUPWRCTLR_EL1_WFE_RET_CTRL_SHIFT U(7) 28*c0f8ce53SBipin Ravi #define NEOVERSE_V2_CPUPWRCTLR_EL1_WFE_RET_CTRL_WIDTH U(3) 29bd063a73SJoel Goddard 308852fb5bSBipin Ravi /******************************************************************************* 318852fb5bSBipin Ravi * CPU Extended Control register 2 specific definitions. 328852fb5bSBipin Ravi ******************************************************************************/ 338852fb5bSBipin Ravi #define NEOVERSE_V2_CPUECTLR2_EL1 S3_0_C15_C1_5 348852fb5bSBipin Ravi #define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_CNSRV ULL(9) 358852fb5bSBipin Ravi #define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_LSB U(11) 368852fb5bSBipin Ravi #define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_WIDTH U(4) 37912c4090SBipin Ravi #define NEOVERSE_V2_CPUECTLR2_EL1_TXREQ_STATIC_FULL ULL(0) 38912c4090SBipin Ravi #define NEOVERSE_V2_CPUECTLR2_EL1_TXREQ_LSB U(0) 39912c4090SBipin Ravi #define NEOVERSE_V2_CPUECTLR2_EL1_TXREQ_WIDTH U(3) 408852fb5bSBipin Ravi 41b0114025SBipin Ravi /******************************************************************************* 42b0114025SBipin Ravi * CPU Auxiliary Control register 2 specific definitions. 43b0114025SBipin Ravi ******************************************************************************/ 44b0114025SBipin Ravi #define NEOVERSE_V2_CPUACTLR2_EL1 S3_0_C15_C1_1 45b0114025SBipin Ravi #define NEOVERSE_V2_CPUACTLR2_EL1_BIT_0 (ULL(1) << 0) 46b0114025SBipin Ravi 47ff342643SBipin Ravi /******************************************************************************* 48ff342643SBipin Ravi * CPU Auxiliary Control register 3 specific definitions. 49ff342643SBipin Ravi ******************************************************************************/ 50ff342643SBipin Ravi #define NEOVERSE_V2_CPUACTLR3_EL1 S3_0_C15_C1_2 51ff342643SBipin Ravi #define NEOVERSE_V2_CPUACTLR3_EL1_BIT_47 (ULL(1) << 47) 52ff342643SBipin Ravi 5358dd153cSBipin Ravi /******************************************************************************* 5458dd153cSBipin Ravi * CPU Auxiliary Control register 5 specific definitions. 5558dd153cSBipin Ravi ******************************************************************************/ 5658dd153cSBipin Ravi #define NEOVERSE_V2_CPUACTLR5_EL1 S3_0_C15_C8_0 5758dd153cSBipin Ravi #define NEOVERSE_V2_CPUACTLR5_EL1_BIT_56 (ULL(1) << 56) 5858dd153cSBipin Ravi #define NEOVERSE_V2_CPUACTLR5_EL1_BIT_55 (ULL(1) << 55) 5958dd153cSBipin Ravi 60bd063a73SJoel Goddard #endif /* NEOVERSE_V2_H */ 61