blob: 7f4c88aedb22e3b3fa9b164c3d31c8630867cb17 [file] [log] [blame]
Yatharth Kochara9f776c2016-11-10 16:17:51 +00001/*
2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Yatharth Kochara9f776c2016-11-10 16:17:51 +00005 */
6
7#ifndef __CORTEX_A53_H__
8#define __CORTEX_A53_H__
9
10/* Cortex-A53 midr for revision 0 */
11#define CORTEX_A53_MIDR 0x410FD030
12
13/* Retention timer tick definitions */
14#define RETENTION_ENTRY_TICKS_2 0x1
15#define RETENTION_ENTRY_TICKS_8 0x2
16#define RETENTION_ENTRY_TICKS_32 0x3
17#define RETENTION_ENTRY_TICKS_64 0x4
18#define RETENTION_ENTRY_TICKS_128 0x5
19#define RETENTION_ENTRY_TICKS_256 0x6
20#define RETENTION_ENTRY_TICKS_512 0x7
21
22/*******************************************************************************
23 * CPU Extended Control register specific definitions.
24 ******************************************************************************/
25#define CPUECTLR p15, 1, c15 /* Instruction def. */
26
27#define CPUECTLR_SMP_BIT (1 << 6)
28
29#define CPUECTLR_CPU_RET_CTRL_SHIFT 0
30#define CPUECTLR_CPU_RET_CTRL_MASK (0x7 << CPUECTLR_CPU_RET_CTRL_SHIFT)
31
32#define CPUECTLR_FPU_RET_CTRL_SHIFT 3
33#define CPUECTLR_FPU_RET_CTRL_MASK (0x7 << CPUECTLR_FPU_RET_CTRL_SHIFT)
34
35/*******************************************************************************
36 * CPU Memory Error Syndrome register specific definitions.
37 ******************************************************************************/
38#define CPUMERRSR p15, 2, c15 /* Instruction def. */
39
40/*******************************************************************************
41 * CPU Auxiliary Control register specific definitions.
42 ******************************************************************************/
43#define CPUACTLR p15, 0, c15 /* Instruction def. */
44
45#define CPUACTLR_DTAH (1 << 24)
46
47/*******************************************************************************
48 * L2 Auxiliary Control register specific definitions.
49 ******************************************************************************/
50#define L2ACTLR p15, 1, c15, c0, 0 /* Instruction def. */
51
52#define L2ACTLR_ENABLE_UNIQUECLEAN (1 << 14)
53#define L2ACTLR_DISABLE_CLEAN_PUSH (1 << 3)
54
55/*******************************************************************************
56 * L2 Extended Control register specific definitions.
57 ******************************************************************************/
58#define L2ECTLR p15, 1, c9, c0, 3 /* Instruction def. */
59
60#define L2ECTLR_RET_CTRL_SHIFT 0
61#define L2ECTLR_RET_CTRL_MASK (0x7 << L2ECTLR_RET_CTRL_SHIFT)
62
63/*******************************************************************************
64 * L2 Memory Error Syndrome register specific definitions.
65 ******************************************************************************/
66#define L2MERRSR p15, 3, c15 /* Instruction def. */
67
68#endif /* __CORTEX_A53_H__ */