blob: 7f7b9a54a7de76965807c576a526c023edd7426a [file] [log] [blame]
Bipin Ravi4da1b0b2021-03-16 15:20:58 -05001/*
Bipin Ravieb4d12b2022-03-12 01:58:02 -06002 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
Bipin Ravi4da1b0b2021-03-16 15:20:58 -05003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef CORTEX_A78C_H
8#define CORTEX_A78C_H
9
10
11#define CORTEX_A78C_MIDR U(0x410FD4B1)
12
Bipin Ravieb4d12b2022-03-12 01:58:02 -060013/* Cortex-A76 loop count for CVE-2022-23960 mitigation */
14#define CORTEX_A78C_BHB_LOOP_COUNT U(32)
15
Bipin Ravi4da1b0b2021-03-16 15:20:58 -050016/*******************************************************************************
Akram Ahmaddbff7cf2022-07-19 14:38:46 +010017 * CPU Auxiliary Control register 2 specific definitions.
18 * ****************************************************************************/
19#define CORTEX_A78C_CPUACTLR2_EL1 S3_0_C15_C1_1
20#define CORTEX_A78C_CPUACTLR2_EL1_BIT_40 (ULL(1) << 40)
21
22/*******************************************************************************
Bipin Ravi4da1b0b2021-03-16 15:20:58 -050023 * CPU Extended Control register specific definitions.
24 ******************************************************************************/
25#define CORTEX_A78C_CPUECTLR_EL1 S3_0_C15_C1_4
Akram Ahmaddbff7cf2022-07-19 14:38:46 +010026#define CORTEX_A78C_CPUECTLR_EL1_BIT_6 (ULL(1) << 6)
27#define CORTEX_A78C_CPUECTLR_EL1_BIT_7 (ULL(1) << 7)
Bipin Ravi4da1b0b2021-03-16 15:20:58 -050028
29/*******************************************************************************
30 * CPU Power Control register specific definitions
31 ******************************************************************************/
32#define CORTEX_A78C_CPUPWRCTLR_EL1 S3_0_C15_C2_7
33#define CORTEX_A78C_CPUPWRCTLR_EL1_CORE_PWRDN_EN_BIT U(1)
34
Bipin Ravi9c36e122022-07-15 17:20:16 -050035/*******************************************************************************
36 * CPU Implementation Specific Selected Instruction registers
37 ******************************************************************************/
38#define CORTEX_A78C_IMP_CPUPSELR_EL3 S3_6_C15_C8_0
39#define CORTEX_A78C_IMP_CPUPCR_EL3 S3_6_C15_C8_1
40#define CORTEX_A78C_IMP_CPUPOR_EL3 S3_6_C15_C8_2
41#define CORTEX_A78C_IMP_CPUPMR_EL3 S3_6_C15_C8_3
42
Bipin Ravi4da1b0b2021-03-16 15:20:58 -050043#endif /* CORTEX_A78C_H */