blob: e1695cdfa66fe91f7e75eebc105a5b06c03bddd4 [file] [log] [blame]
johpow01a3810e82021-05-18 15:23:31 -05001/*
Bipin Ravi2f73d972022-01-20 00:01:04 -06002 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
johpow01a3810e82021-05-18 15:23:31 -05003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef CORTEX_X2_H
8#define CORTEX_X2_H
9
10#define CORTEX_X2_MIDR U(0x410FD480)
11
12/*******************************************************************************
13 * CPU Extended Control register specific definitions
14 ******************************************************************************/
15#define CORTEX_X2_CPUECTLR_EL1 S3_0_C15_C1_4
Bipin Ravi2f73d972022-01-20 00:01:04 -060016#define CORTEX_X2_CPUECTLR_EL1_PFSTIDIS_BIT (ULL(1) << 8)
johpow01a3810e82021-05-18 15:23:31 -050017
18/*******************************************************************************
johpow01f6c37de2021-12-03 11:27:33 -060019 * CPU Extended Control register 2 specific definitions
20 ******************************************************************************/
21#define CORTEX_X2_CPUECTLR2_EL1 S3_0_C15_C1_5
22
23#define CORTEX_X2_CPUECTLR2_EL1_PF_MODE_SHIFT U(11)
24#define CORTEX_X2_CPUECTLR2_EL1_PF_MODE_WIDTH U(4)
25#define CORTEX_X2_CPUECTLR2_EL1_PF_MODE_CNSRV ULL(0x9)
26
27/*******************************************************************************
johpow01a3810e82021-05-18 15:23:31 -050028 * CPU Power Control register specific definitions
29 ******************************************************************************/
30#define CORTEX_X2_CPUPWRCTLR_EL1 S3_0_C15_C2_7
31#define CORTEX_X2_CPUPWRCTLR_EL1_CORE_PWRDN_BIT U(1)
32
johpow0115f10bd2021-12-01 17:40:39 -060033/*******************************************************************************
34 * CPU Auxiliary Control Register 5 definitions
35 ******************************************************************************/
36#define CORTEX_X2_CPUACTLR5_EL1 S3_0_C15_C8_0
37
Bipin Ravi9ad54782022-01-20 00:42:05 -060038/*******************************************************************************
39 * CPU Implementation Specific Selected Instruction registers
40 ******************************************************************************/
41#define CORTEX_X2_IMP_CPUPSELR_EL3 S3_6_C15_C8_0
42#define CORTEX_X2_IMP_CPUPCR_EL3 S3_6_C15_C8_1
43#define CORTEX_X2_IMP_CPUPOR_EL3 S3_6_C15_C8_2
44#define CORTEX_X2_IMP_CPUPMR_EL3 S3_6_C15_C8_3
45
johpow01a3810e82021-05-18 15:23:31 -050046#endif /* CORTEX_X2_H */