neoverse_n1.h 1.02 KB
Newer Older
1
/*
2
 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3
4
5
6
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
8
9
#ifndef CORTEX_ARES_H
#define CORTEX_ARES_H

10
#include <lib/utils_def.h>
11
12

/* Cortex-ARES MIDR for revision 0 */
13
#define CORTEX_ARES_MIDR		U(0x410fd0c0)
14
15
16
17
18
19
20
21

/*******************************************************************************
 * CPU Extended Control register specific definitions.
 ******************************************************************************/
#define CORTEX_ARES_CPUPWRCTLR_EL1	S3_0_C15_C2_7
#define CORTEX_ARES_CPUECTLR_EL1	S3_0_C15_C1_4

/* Definitions of register field mask in CORTEX_ARES_CPUPWRCTLR_EL1 */
22
#define CORTEX_ARES_CORE_PWRDN_EN_MASK	U(0x1)
23

24
25
26
27
28
#define CORTEX_ARES_ACTLR_AMEN_BIT	(U(1) << 4)

#define CORTEX_ARES_AMU_NR_COUNTERS	U(5)
#define CORTEX_ARES_AMU_GROUP0_MASK	U(0x1f)

29
30
31
32
33
34
/* 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

35
#endif /* CORTEX_ARES_H */