2017-08-03 16:04:46 +01:00
|
|
|
/*
|
2019-02-19 13:49:06 +00:00
|
|
|
* Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
|
2017-08-03 16:04:46 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
2019-02-19 13:49:06 +00:00
|
|
|
#ifndef NEOVERSE_N1_H
|
|
|
|
#define NEOVERSE_N1_H
|
2018-10-25 17:11:02 +01:00
|
|
|
|
2018-12-14 00:18:21 +00:00
|
|
|
#include <lib/utils_def.h>
|
2017-08-03 16:04:46 +01:00
|
|
|
|
2019-02-19 13:49:06 +00:00
|
|
|
/* Neoverse N1 MIDR for revision 0 */
|
|
|
|
#define NEOVERSE_N1_MIDR U(0x410fd0c0)
|
2017-08-03 16:04:46 +01:00
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
* CPU Extended Control register specific definitions.
|
|
|
|
******************************************************************************/
|
2019-02-19 13:49:06 +00:00
|
|
|
#define NEOVERSE_N1_CPUPWRCTLR_EL1 S3_0_C15_C2_7
|
|
|
|
#define NEOVERSE_N1_CPUECTLR_EL1 S3_0_C15_C1_4
|
2017-08-03 16:04:46 +01:00
|
|
|
|
2019-02-19 13:49:06 +00:00
|
|
|
/* Definitions of register field mask in NEOVERSE_N1_CPUPWRCTLR_EL1 */
|
|
|
|
#define NEOVERSE_N1_CORE_PWRDN_EN_MASK U(0x1)
|
2017-08-03 16:04:46 +01:00
|
|
|
|
2019-02-19 13:49:06 +00:00
|
|
|
#define NEOVERSE_N1_ACTLR_AMEN_BIT (U(1) << 4)
|
2018-02-13 11:28:02 +00:00
|
|
|
|
2019-02-19 13:49:06 +00:00
|
|
|
#define NEOVERSE_N1_AMU_NR_COUNTERS U(5)
|
|
|
|
#define NEOVERSE_N1_AMU_GROUP0_MASK U(0x1f)
|
2018-02-13 11:28:02 +00:00
|
|
|
|
2018-03-26 16:46:01 +01:00
|
|
|
/* Instruction patching registers */
|
|
|
|
#define CPUPSELR_EL3 S3_6_C15_C8_0
|
|
|
|
#define CPUPCR_EL3 S3_6_C15_C8_1
|
|
|
|
#define CPUPOR_EL3 S3_6_C15_C8_2
|
|
|
|
#define CPUPMR_EL3 S3_6_C15_C8_3
|
|
|
|
|
2019-02-19 13:49:06 +00:00
|
|
|
#endif /* NEOVERSE_N1_H */
|