denver.h 1.48 KB
Newer Older
1
/*
2
 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */

7
8
#ifndef DENVER_H
#define DENVER_H
9

10
/* MIDR values for Denver */
11
12
13
14
15
#define DENVER_MIDR_PN0			U(0x4E0F0000)
#define DENVER_MIDR_PN1			U(0x4E0F0010)
#define DENVER_MIDR_PN2			U(0x4E0F0020)
#define DENVER_MIDR_PN3			U(0x4E0F0030)
#define DENVER_MIDR_PN4			U(0x4E0F0040)
16
17
18
19
#define DENVER_MIDR_PN5			U(0x4E0F0050)
#define DENVER_MIDR_PN6			U(0x4E0F0060)
#define DENVER_MIDR_PN7			U(0x4E0F0070)
#define DENVER_MIDR_PN8			U(0x4E0F0080)
20
21

/* Implementer code in the MIDR register */
22
#define DENVER_IMPL			U(0x4E)
23
24

/* CPU state ids - implementation defined */
25
#define DENVER_CPU_STATE_POWER_DOWN	U(0x3)
26

27
28
29
30
31
32
33
34
/* Speculative store buffering */
#define DENVER_CPU_DIS_SSB_EL3		(U(1) << 11)
#define DENVER_PN4_CPU_DIS_SSB_EL3	(U(1) << 18)

/* Speculative memory disambiguation */
#define DENVER_CPU_DIS_MD_EL3		(U(1) << 9)
#define DENVER_PN4_CPU_DIS_MD_EL3	(U(1) << 17)

35
36
37
38
39
40
/* Core power management states */
#define DENVER_CPU_PMSTATE_C1		U(0x1)
#define DENVER_CPU_PMSTATE_C6		U(0x6)
#define DENVER_CPU_PMSTATE_C7		U(0x7)
#define DENVER_CPU_PMSTATE_MASK		U(0xF)

41
42
43
44
45
/* ACTRL_ELx bits to enable dual execution*/
#define DENVER_CPU_ENABLE_DUAL_EXEC_EL2 (ULL(1) << 9)
#define DENVER_CPU_ENABLE_DUAL_EXEC_EL3 (ULL(1) << 9)
#define DENVER_CPU_ENABLE_DUAL_EXEC_EL1 (U(1) << 4)

46
#ifndef __ASSEMBLER__
47
48
49
50

/* Disable Dynamic Code Optimisation */
void denver_disable_dco(void);

51
#endif /* __ASSEMBLER__ */
52

53
#endif /* DENVER_H */