Isla Mitchell | ea84d6b | 2017-08-03 16:04:46 +0100 | [diff] [blame] | 1 | /* |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved. |
Isla Mitchell | ea84d6b | 2017-08-03 16:04:46 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 7 | #ifndef NEOVERSE_N1_H |
| 8 | #define NEOVERSE_N1_H |
Antonio Nino Diaz | 9fe40fd | 2018-10-25 17:11:02 +0100 | [diff] [blame] | 9 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 10 | #include <lib/utils_def.h> |
Isla Mitchell | ea84d6b | 2017-08-03 16:04:46 +0100 | [diff] [blame] | 11 | |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 12 | /* Neoverse N1 MIDR for revision 0 */ |
| 13 | #define NEOVERSE_N1_MIDR U(0x410fd0c0) |
Isla Mitchell | ea84d6b | 2017-08-03 16:04:46 +0100 | [diff] [blame] | 14 | |
| 15 | /******************************************************************************* |
| 16 | * CPU Extended Control register specific definitions. |
| 17 | ******************************************************************************/ |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 18 | #define NEOVERSE_N1_CPUPWRCTLR_EL1 S3_0_C15_C2_7 |
| 19 | #define NEOVERSE_N1_CPUECTLR_EL1 S3_0_C15_C1_4 |
Isla Mitchell | ea84d6b | 2017-08-03 16:04:46 +0100 | [diff] [blame] | 20 | |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 21 | /* Definitions of register field mask in NEOVERSE_N1_CPUPWRCTLR_EL1 */ |
| 22 | #define NEOVERSE_N1_CORE_PWRDN_EN_MASK U(0x1) |
Isla Mitchell | ea84d6b | 2017-08-03 16:04:46 +0100 | [diff] [blame] | 23 | |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 24 | #define NEOVERSE_N1_ACTLR_AMEN_BIT (U(1) << 4) |
Dimitris Papastamos | 89736dd | 2018-02-13 11:28:02 +0000 | [diff] [blame] | 25 | |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 26 | #define NEOVERSE_N1_AMU_NR_COUNTERS U(5) |
| 27 | #define NEOVERSE_N1_AMU_GROUP0_MASK U(0x1f) |
Dimitris Papastamos | 89736dd | 2018-02-13 11:28:02 +0000 | [diff] [blame] | 28 | |
Dimitris Papastamos | 7ca21db | 2018-03-26 16:46:01 +0100 | [diff] [blame] | 29 | /* Instruction patching registers */ |
| 30 | #define CPUPSELR_EL3 S3_6_C15_C8_0 |
| 31 | #define CPUPCR_EL3 S3_6_C15_C8_1 |
| 32 | #define CPUPOR_EL3 S3_6_C15_C8_2 |
| 33 | #define CPUPMR_EL3 S3_6_C15_C8_3 |
| 34 | |
John Tsichritzis | 56369c1 | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 35 | #endif /* NEOVERSE_N1_H */ |