1 /** @file
2 *
3 *  Copyright (c) 2015, Linaro Ltd. All rights reserved.
4 *  Copyright (c) 2015, Hisilicon Ltd. All rights reserved.
5 *
6 *  This program and the accompanying materials
7 *  are licensed and made available under the terms and conditions of the BSD License
8 *  which accompanies this distribution.  The full text of the license may be found at
9 *  http://opensource.org/licenses/bsd-license.php
10 *
11 *  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 *  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 *
14 **/
15 
16 #ifndef __HI6220_REGS_PERI_H__
17 #define __HI6220_REGS_PERI_H__
18 
19 #define SC_PERIPH_CLKEN3                0x230
20 #define SC_PERIPH_RSTEN3                0x330
21 #define SC_PERIPH_RSTDIS0               0x304
22 #define SC_PERIPH_RSTDIS3               0x334
23 #define SC_PERIPH_RSTSTAT3              0x338
24 
25 /* SC_PERIPH_RSTEN0/RSTDIS0/RSTSTAT0 */
26 #define PERIPH_RST0_MMC2                (1 << 2)
27 
28 /* SC_PERIPH_RSTEN3/RSTDIS3/RSTSTAT3 */
29 #define PERIPH_RST3_CSSYS               (1 << 0)
30 #define PERIPH_RST3_I2C0                (1 << 1)
31 #define PERIPH_RST3_I2C1                (1 << 2)
32 #define PERIPH_RST3_I2C2                (1 << 3)
33 #define PERIPH_RST3_I2C3                (1 << 4)
34 #define PERIPH_RST3_UART1               (1 << 5)
35 #define PERIPH_RST3_UART2               (1 << 6)
36 #define PERIPH_RST3_UART3               (1 << 7)
37 #define PERIPH_RST3_UART4               (1 << 8)
38 #define PERIPH_RST3_SSP                 (1 << 9)
39 #define PERIPH_RST3_PWM                 (1 << 10)
40 #define PERIPH_RST3_BLPWM               (1 << 11)
41 #define PERIPH_RST3_TSENSOR             (1 << 12)
42 #define PERIPH_RST3_DAPB                (1 << 18)
43 #define PERIPH_RST3_HKADC               (1 << 19)
44 #define PERIPH_RST3_CODEC_SSI           (1 << 20)
45 #define PERIPH_RST3_PMUSSI1             (1 << 22)
46 
47 #define PMUSSI_REG(x)                   (PMUSSI_BASE + ((x) << 2))
48 
49 #endif /* __HI6220_REGS_PERI_H__ */
50