blob: b66aeb8a02be37e788e2ef58034c4ce87f2fbc6e [file] [log] [blame]
Isla Mitchellea84d6b2017-08-03 16:04:46 +01001/*
John Tsichritzis56369c12019-02-19 13:49:06 +00002 * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
Isla Mitchellea84d6b2017-08-03 16:04:46 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
John Tsichritzis56369c12019-02-19 13:49:06 +00007#ifndef NEOVERSE_N1_H
8#define NEOVERSE_N1_H
Antonio Nino Diaz9fe40fd2018-10-25 17:11:02 +01009
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000010#include <lib/utils_def.h>
Isla Mitchellea84d6b2017-08-03 16:04:46 +010011
John Tsichritzis56369c12019-02-19 13:49:06 +000012/* Neoverse N1 MIDR for revision 0 */
13#define NEOVERSE_N1_MIDR U(0x410fd0c0)
Isla Mitchellea84d6b2017-08-03 16:04:46 +010014
15/*******************************************************************************
Louis Mayencourtb58142b2019-04-18 14:34:11 +010016 * CPU Power Control register specific definitions.
Isla Mitchellea84d6b2017-08-03 16:04:46 +010017 ******************************************************************************/
John Tsichritzis56369c12019-02-19 13:49:06 +000018#define NEOVERSE_N1_CPUPWRCTLR_EL1 S3_0_C15_C2_7
Isla Mitchellea84d6b2017-08-03 16:04:46 +010019
John Tsichritzis56369c12019-02-19 13:49:06 +000020/* Definitions of register field mask in NEOVERSE_N1_CPUPWRCTLR_EL1 */
21#define NEOVERSE_N1_CORE_PWRDN_EN_MASK U(0x1)
Isla Mitchellea84d6b2017-08-03 16:04:46 +010022
John Tsichritzis56369c12019-02-19 13:49:06 +000023#define NEOVERSE_N1_ACTLR_AMEN_BIT (U(1) << 4)
Dimitris Papastamos89736dd2018-02-13 11:28:02 +000024
John Tsichritzis56369c12019-02-19 13:49:06 +000025#define NEOVERSE_N1_AMU_NR_COUNTERS U(5)
26#define NEOVERSE_N1_AMU_GROUP0_MASK U(0x1f)
Dimitris Papastamos89736dd2018-02-13 11:28:02 +000027
Louis Mayencourtb58142b2019-04-18 14:34:11 +010028/*******************************************************************************
29 * CPU Extended Control register specific definitions.
30 ******************************************************************************/
31#define NEOVERSE_N1_CPUECTLR_EL1 S3_0_C15_C1_4
32
33/*******************************************************************************
34 * CPU Auxiliary Control register specific definitions.
35 ******************************************************************************/
36#define NEOVERSE_N1_CPUACTLR2_EL1 S3_0_C15_C1_1
37
Andre Przywarab9347402019-05-20 14:57:06 +010038#define NEOVERSE_N1_CPUACTLR2_EL1_BIT_2 (ULL(1) << 2)
39#define NEOVERSE_N1_CPUACTLR2_EL1_BIT_16 (ULL(1) << 16)
Louis Mayencourtb58142b2019-04-18 14:34:11 +010040
Dimitris Papastamos7ca21db2018-03-26 16:46:01 +010041/* Instruction patching registers */
42#define CPUPSELR_EL3 S3_6_C15_C8_0
43#define CPUPCR_EL3 S3_6_C15_C8_1
44#define CPUPOR_EL3 S3_6_C15_C8_2
45#define CPUPMR_EL3 S3_6_C15_C8_3
46
John Tsichritzis56369c12019-02-19 13:49:06 +000047#endif /* NEOVERSE_N1_H */