blob: a9c408de9b5e1f7289a5054ee4a8a935185ff49e [file] [log] [blame]
Haojian Zhuang5f281b32017-05-24 08:45:05 +08001/*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef __HI6220_H__
8#define __HI6220_H__
9
10#include <hi6220_regs_acpu.h>
11#include <hi6220_regs_ao.h>
12#include <hi6220_regs_peri.h>
13#include <hi6220_regs_pin.h>
14#include <hi6220_regs_pmctrl.h>
15
16/*******************************************************************************
17 * Implementation defined ACTLR_EL2 bit definitions
18 ******************************************************************************/
19#define ACTLR_EL2_L2ACTLR_BIT (1 << 6)
20#define ACTLR_EL2_L2ECTLR_BIT (1 << 5)
21#define ACTLR_EL2_L2CTLR_BIT (1 << 4)
22#define ACTLR_EL2_CPUECTLR_BIT (1 << 1)
23#define ACTLR_EL2_CPUACTLR_BIT (1 << 0)
24
25/*******************************************************************************
26 * Implementation defined ACTLR_EL3 bit definitions
27 ******************************************************************************/
28#define ACTLR_EL3_L2ACTLR_BIT (1 << 6)
29#define ACTLR_EL3_L2ECTLR_BIT (1 << 5)
30#define ACTLR_EL3_L2CTLR_BIT (1 << 4)
31#define ACTLR_EL3_CPUECTLR_BIT (1 << 1)
32#define ACTLR_EL3_CPUACTLR_BIT (1 << 0)
33
34/*******************************************************************************
35 * CCI-400 related constants
36 ******************************************************************************/
37#define CCI400_BASE 0xF6E90000
38#define CCI400_SL_IFACE3_CLUSTER_IX 3
39#define CCI400_SL_IFACE4_CLUSTER_IX 4
40
41#define DWMMC0_BASE 0xF723D000
42
43#define DWUSB_BASE 0xF72C0000
44
45#define PMUSSI_BASE 0xF8000000
46
47#define SP804_TIMER0_BASE 0xF8008000
48
49#define GPIO0_BASE 0xF8011000
50#define GPIO1_BASE 0xF8012000
51#define GPIO2_BASE 0xF8013000
52#define GPIO3_BASE 0xF8014000
53#define GPIO4_BASE 0xF7020000
54#define GPIO5_BASE 0xF7021000
55#define GPIO6_BASE 0xF7022000
56#define GPIO7_BASE 0xF7023000
57#define GPIO8_BASE 0xF7024000
58#define GPIO9_BASE 0xF7025000
59#define GPIO10_BASE 0xF7026000
60#define GPIO11_BASE 0xF7027000
61#define GPIO12_BASE 0xF7028000
62#define GPIO13_BASE 0xF7029000
63#define GPIO14_BASE 0xF702A000
64#define GPIO15_BASE 0xF702B000
65#define GPIO16_BASE 0xF702C000
66#define GPIO17_BASE 0xF702D000
67#define GPIO18_BASE 0xF702E000
68#define GPIO19_BASE 0xF702F000
69
70#endif /* __HI6220_H__ */