2 * Copyright (C) 2014-2015 Spreadtrum Communications Inc.
\r
4 * This file is dual-licensed: you can use it either under the terms
\r
5 * of the GPL or the X11 license, at your option. Note that this dual
\r
6 * licensing only applies to this file, and not this project as a
\r
11 #ifndef __H_REGS_AP_APB_HEADFILE_H__
\r
12 #define __H_REGS_AP_APB_HEADFILE_H__ __FILE__
\r
16 /* registers definitions for AP_APB */
\r
17 #define REG_AP_APB_APB_EB SCI_ADDR(REGS_AP_APB_BASE, 0x0000)
\r
18 #define REG_AP_APB_APB_RST SCI_ADDR(REGS_AP_APB_BASE, 0x0004)
\r
19 #define REG_AP_APB_APB_MISC_CTRL SCI_ADDR(REGS_AP_APB_BASE, 0x0008)
\r
23 /* bits definitions for register REG_AP_APB_APB_EB */
\r
24 #define BIT_INTC3_EB ( BIT(22) )
\r
25 #define BIT_INTC2_EB ( BIT(21) )
\r
26 #define BIT_INTC1_EB ( BIT(20) )
\r
27 #define BIT_INTC0_EB ( BIT(19) )
\r
28 #define BIT_AP_CKG_EB ( BIT(18) )
\r
29 #define BIT_UART4_EB ( BIT(17) )
\r
30 #define BIT_UART3_EB ( BIT(16) )
\r
31 #define BIT_UART2_EB ( BIT(15) )
\r
32 #define BIT_UART1_EB ( BIT(14) )
\r
33 #define BIT_UART0_EB ( BIT(13) )
\r
34 #define BIT_I2C4_EB ( BIT(12) )
\r
35 #define BIT_I2C3_EB ( BIT(11) )
\r
36 #define BIT_I2C2_EB ( BIT(10) )
\r
37 #define BIT_I2C1_EB ( BIT(9) )
\r
38 #define BIT_I2C0_EB ( BIT(8) )
\r
39 #define BIT_SPI2_EB ( BIT(7) )
\r
40 #define BIT_SPI1_EB ( BIT(6) )
\r
41 #define BIT_SPI0_EB ( BIT(5) )
\r
42 #define BIT_IIS3_EB ( BIT(4) )
\r
43 #define BIT_IIS2_EB ( BIT(3) )
\r
44 #define BIT_IIS1_EB ( BIT(2) )
\r
45 #define BIT_IIS0_EB ( BIT(1) )
\r
46 #define BIT_SIM0_EB ( BIT(0) )
\r
48 /* bits definitions for register REG_AP_APB_APB_RST */
\r
49 #define BIT_INTC3_SOFT_RST ( BIT(22) )
\r
50 #define BIT_INTC2_SOFT_RST ( BIT(21) )
\r
51 #define BIT_INTC1_SOFT_RST ( BIT(20) )
\r
52 #define BIT_INTC0_SOFT_RST ( BIT(19) )
\r
53 #define BIT_CKG_SOFT_RST ( BIT(18) )
\r
54 #define BIT_UART4_SOFT_RST ( BIT(17) )
\r
55 #define BIT_UART3_SOFT_RST ( BIT(16) )
\r
56 #define BIT_UART2_SOFT_RST ( BIT(15) )
\r
57 #define BIT_UART1_SOFT_RST ( BIT(14) )
\r
58 #define BIT_UART0_SOFT_RST ( BIT(13) )
\r
59 #define BIT_I2C4_SOFT_RST ( BIT(12) )
\r
60 #define BIT_I2C3_SOFT_RST ( BIT(11) )
\r
61 #define BIT_I2C2_SOFT_RST ( BIT(10) )
\r
62 #define BIT_I2C1_SOFT_RST ( BIT(9) )
\r
63 #define BIT_I2C0_SOFT_RST ( BIT(8) )
\r
64 #define BIT_SPI2_SOFT_RST ( BIT(7) )
\r
65 #define BIT_SPI1_SOFT_RST ( BIT(6) )
\r
66 #define BIT_SPI0_SOFT_RST ( BIT(5) )
\r
67 #define BIT_IIS3_SOFT_RST ( BIT(4) )
\r
68 #define BIT_IIS2_SOFT_RST ( BIT(3) )
\r
69 #define BIT_IIS1_SOFT_RST ( BIT(2) )
\r
70 #define BIT_IIS0_SOFT_RST ( BIT(1) )
\r
71 #define BIT_SIM0_SOFT_RST ( BIT(0) )
\r
73 /* bits definitions for register REG_AP_APB_APB_MISC_CTRL */
\r
74 #define BIT_SIM_CLK_POLARITY ( BIT(1) )
\r
75 #define BIT_FMARK_POLARITY_INV ( BIT(0) )
\r