blob: 4bc49f303c42175d0127e381477bd0193b0ae593 [file] [log] [blame]
Louis Mayencourtf57f1082019-05-14 11:00:45 +01001/*
johpow019131eb82020-10-06 17:55:25 -05002 * Copyright (c) 2019-2021, ARM Limited. All rights reserved.
Louis Mayencourtf57f1082019-05-14 11:00:45 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Jimmy Brisson3571fb92020-06-01 10:18:22 -05007#ifndef CORTEX_A78_H
8#define CORTEX_A78_H
Louis Mayencourtf57f1082019-05-14 11:00:45 +01009
10#include <lib/utils_def.h>
11
Jimmy Brisson3571fb92020-06-01 10:18:22 -050012#define CORTEX_A78_MIDR U(0x410FD410)
Louis Mayencourtf57f1082019-05-14 11:00:45 +010013
14/*******************************************************************************
15 * CPU Extended Control register specific definitions.
16 ******************************************************************************/
Jimmy Brisson3571fb92020-06-01 10:18:22 -050017#define CORTEX_A78_CPUECTLR_EL1 S3_0_C15_C1_4
johpow019131eb82020-10-06 17:55:25 -050018#define CORTEX_A78_CPUECTLR_EL1_BIT_8 (ULL(1) << 8)
Louis Mayencourtf57f1082019-05-14 11:00:45 +010019
20/*******************************************************************************
21 * CPU Power Control register specific definitions
22 ******************************************************************************/
johpow019131eb82020-10-06 17:55:25 -050023#define CORTEX_A78_CPUPWRCTLR_EL1 S3_0_C15_C2_7
Jimmy Brisson3571fb92020-06-01 10:18:22 -050024#define CORTEX_A78_CPUPWRCTLR_EL1_CORE_PWRDN_EN_BIT U(1)
Louis Mayencourtf57f1082019-05-14 11:00:45 +010025
Balint Dobszaydb2ec852019-07-15 11:46:20 +020026/*******************************************************************************
27 * CPU Auxiliary Control register specific definitions.
28 ******************************************************************************/
johpow019131eb82020-10-06 17:55:25 -050029#define CORTEX_A78_ACTLR_TAM_BIT (ULL(1) << 30)
Balint Dobszaydb2ec852019-07-15 11:46:20 +020030
Jimmy Brisson3571fb92020-06-01 10:18:22 -050031#define CORTEX_A78_ACTLR2_EL1 S3_0_C15_C1_1
32#define CORTEX_A78_ACTLR2_EL1_BIT_1 (ULL(1) << 1)
johpow01b3e82942021-04-30 18:08:52 -050033#define CORTEX_A78_ACTLR2_EL1_BIT_2 (ULL(1) << 2)
Madhukar Pappireddy4efede72019-12-18 15:56:27 -060034
Balint Dobszaydb2ec852019-07-15 11:46:20 +020035/*******************************************************************************
36 * CPU Activity Monitor Unit register specific definitions.
37 ******************************************************************************/
johpow019131eb82020-10-06 17:55:25 -050038#define CPUAMCNTENCLR0_EL0 S3_3_C15_C2_4
39#define CPUAMCNTENSET0_EL0 S3_3_C15_C2_5
40#define CPUAMCNTENCLR1_EL0 S3_3_C15_C3_0
41#define CPUAMCNTENSET1_EL0 S3_3_C15_C3_1
Balint Dobszaydb2ec852019-07-15 11:46:20 +020042
johpow019131eb82020-10-06 17:55:25 -050043#define CORTEX_A78_AMU_GROUP0_MASK U(0xF)
44#define CORTEX_A78_AMU_GROUP1_MASK U(0x7)
Balint Dobszaydb2ec852019-07-15 11:46:20 +020045
Jimmy Brisson3571fb92020-06-01 10:18:22 -050046#endif /* CORTEX_A78_H */