denver.h 886 Bytes
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
9
 */

#ifndef __DENVER_H__
#define __DENVER_H__

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

/* Implementer code in the MIDR register */
18
#define DENVER_IMPL			U(0x4E)
19
20

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

23
24
25
26
27
28
/* 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)

29
30
31
32
33
34
35
#ifndef __ASSEMBLY__

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

#endif

36
#endif /* __DENVER_H__ */