change source file mode to 0644 instead of 0755
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8830 / chip_x35 / sprd_reg_ap_ahb.h
1 /*
2  * Copyright (C) 2014-2015 Spreadtrum Communications Inc.
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  */
10
11 #ifndef __REGS_AP_AHB_H__
12 #define __REGS_AP_AHB_H__
13
14 #define REGS_AP_AHB
15
16 /* registers definitions for controller REGS_AP_AHB */
17 #define REG_AP_AHB_AHB_EB                 SCI_ADDR(SPRD_AHB_PHYS, 0x0000)
18 #define REG_AP_AHB_AHB_RST                SCI_ADDR(SPRD_AHB_PHYS, 0x0004)
19 #define REG_AP_AHB_CA7_RST_SET            SCI_ADDR(SPRD_AHB_PHYS, 0x0008)
20 #define REG_AP_AHB_CA7_CKG_CFG            SCI_ADDR(SPRD_AHB_PHYS, 0x000C)
21 #define REG_AP_AHB_MCU_PAUSE              SCI_ADDR(SPRD_AHB_PHYS, 0x0010)
22 #define REG_AP_AHB_MISC_CKG_EN            SCI_ADDR(SPRD_AHB_PHYS, 0x0014)
23 #define REG_AP_AHB_MISC_CFG               SCI_ADDR(SPRD_AHB_PHYS, 0x0018)
24 #define REG_AP_AHB_AP_MTX_S3_PRIO0        SCI_ADDR(SPRD_AHB_PHYS, 0x001C)
25 #define REG_AP_AHB_AP_MTX_S3_PRIO1        SCI_ADDR(SPRD_AHB_PHYS, 0x0020)
26 #define REG_AP_AHB_AP_MTX_S3_PRIO2        SCI_ADDR(SPRD_AHB_PHYS, 0x0024)
27 #define REG_AP_AHB_AP_MTX_S2_PRIO0        SCI_ADDR(SPRD_AHB_PHYS, 0x0028)
28 #define REG_AP_AHB_AP_MTX_S1_PRIO0        SCI_ADDR(SPRD_AHB_PHYS, 0x002C)
29 #define REG_AP_AHB_AP_MTX_S0_PRIO0        SCI_ADDR(SPRD_AHB_PHYS, 0x0030)
30 #define REG_AP_AHB_AP_MTX_S0_PRIO1        SCI_ADDR(SPRD_AHB_PHYS, 0x0034)
31 #define REG_AP_AHB_AP_MTX_S0_PRIO2        SCI_ADDR(SPRD_AHB_PHYS, 0x0038)
32 #define REG_AP_AHB_AP_SYS_FORCE_SLEEP_CFG SCI_ADDR(SPRD_AHB_PHYS, 0x003C)
33 #define REG_AP_AHB_AP_SYS_AUTO_SLEEP_CFG  SCI_ADDR(SPRD_AHB_PHYS, 0x0040)
34 #define REG_AP_AHB_AP_MAIN_MTX_HPROT_CFG  SCI_ADDR(SPRD_AHB_PHYS, 0x0044)
35 #define REG_AP_AHB_CA7_STANDBY_STATUS     SCI_ADDR(SPRD_AHB_PHYS, 0x0048)
36 #define REG_AP_AHB_HOLDING_PEN            SCI_ADDR(SPRD_AHB_PHYS, 0x004C)
37 #define REG_AP_AHB_JMP_ADDR_CA7_C0        SCI_ADDR(SPRD_AHB_PHYS, 0x0050)
38 #define REG_AP_AHB_JMP_ADDR_CA7_C1        SCI_ADDR(SPRD_AHB_PHYS, 0x0054)
39 #define REG_AP_AHB_JMP_ADDR_CA7_C2        SCI_ADDR(SPRD_AHB_PHYS, 0x0058)
40 #define REG_AP_AHB_JMP_ADDR_CA7_C3        SCI_ADDR(SPRD_AHB_PHYS, 0x005C)
41 #define REG_AP_AHB_CHIP_ID                SCI_ADDR(SPRD_AHB_PHYS, 0x00FC)
42
43 /* bits definitions for register REG_AP_AHB_AHB_EB */
44 #define BIT_BUSMON2_EB                  ( BIT(16) )
45 #define BIT_BUSMON1_EB                  ( BIT(15) )
46 #define BIT_BUSMON0_EB                  ( BIT(14) )
47 #define BIT_SPINLOCK_EB                 ( BIT(13) )
48 #define BIT_GPS_EB                      ( BIT(12) )
49 #define BIT_EMMC_EB                     ( BIT(11) )
50 #define BIT_SDIO2_EB                    ( BIT(10) )
51 #define BIT_SDIO1_EB                    ( BIT(9) )
52 #define BIT_SDIO0_EB                    ( BIT(8) )
53 #define BIT_DRM_EB                      ( BIT(7) )
54 #define BIT_NFC_EB                      ( BIT(6) )
55 #define BIT_DMA_EB                      ( BIT(5) )
56 #define BIT_USB_EB                      ( BIT(4) )
57 #define BIT_GSP_EB                      ( BIT(3) )
58 #define BIT_DISPC1_EB                   ( BIT(2) )
59 #define BIT_DISPC0_EB                   ( BIT(1) )
60 #define BIT_DSI_EB                      ( BIT(0) )
61
62 /* bits definitions for register REG_AP_AHB_AHB_RST */
63 #define BIT_BUSMON2_SOFT_RST            ( BIT(19) )
64 #define BIT_BUSMON1_SOFT_RST            ( BIT(18) )
65 #define BIT_BUSMON0_SOFT_RST            ( BIT(17) )
66 #define BIT_SPINLOCK_SOFT_RST           ( BIT(16) )
67 #define BIT_GPS_SOFT_RST                ( BIT(15) )
68 #define BIT_EMMC_SOFT_RST               ( BIT(14) )
69 #define BIT_SDIO2_SOFT_RST              ( BIT(13) )
70 #define BIT_SDIO1_SOFT_RST              ( BIT(12) )
71 #define BIT_SDIO0_SOFT_RST              ( BIT(11) )
72 #define BIT_DRM_SOFT_RST                ( BIT(10) )
73 #define BIT_NFC_SOFT_RST                ( BIT(9) )
74 #define BIT_DMA_SOFT_RST                ( BIT(8) )
75 #define BIT_USB_PHY_SOFT_RST            ( BIT(7) )
76 #define BIT_USB_UTMI_SOFT_RST           ( BIT(6) )
77 #define BIT_USB_SOFT_RST                ( BIT(5) )
78 #define BIT_DISP_MTX_SOFT_RST           ( BIT(4) )
79 #define BIT_GSP_SOFT_RST                ( BIT(3) )
80 #define BIT_DISPC1_SOFT_RST             ( BIT(2) )
81 #define BIT_DISPC0_SOFT_RST             ( BIT(1) )
82 #define BIT_DSI_SOFT_RST                ( BIT(0) )
83
84 /* bits definitions for register REG_AP_AHB_CA7_RST_SET */
85 #define BIT_CA7_CS_DBG_SOFT_RST         ( BIT(14) )
86 #define BIT_CA7_L2_SOFT_RST             ( BIT(13) )
87 #define BIT_CA7_SOCDBG_SOFT_RST         ( BIT(12) )
88 #define BITS_CA7_ETM_SOFT_RST(_x_)      ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
89 #define BITS_CA7_DBG_SOFT_RST(_x_)      ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
90 #define BITS_CA7_CORE_SOFT_RST(_x_)     ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )
91
92 /* bits definitions for register REG_AP_AHB_CA7_CKG_CFG */
93 #define BITS_CA7_DBG_CKG_DIV(_x_)       ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)) )
94 #define BITS_CA7_AXI_CKG_DIV(_x_)       ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)) )
95 #define BITS_CA7_MCU_CKG_DIV(_x_)       ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)) )
96 #define BITS_CA7_MCU_CKG_SEL(_x_)       ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)) )
97
98 /* bits definitions for register REG_AP_AHB_MCU_PAUSE */
99 #define BIT_DMA_ACT_LIGHT_EN            ( BIT(5) )
100 #define BIT_MCU_SLEEP_FOLLOW_CA7_EN     ( BIT(4) )
101 #define BIT_MCU_LIGHT_SLEEP_EN          ( BIT(3) )
102 #define BIT_MCU_DEEP_SLEEP_EN           ( BIT(2) )
103 #define BIT_MCU_SYS_SLEEP_EN            ( BIT(1) )
104 #define BIT_MCU_CORE_SLEEP              ( BIT(0) )
105
106 /* bits definitions for register REG_AP_AHB_MISC_CKG_EN */
107 #define BIT_GPS_TCXO_INV_SEL            ( BIT(13) )
108 #define BIT_GPS_26M_INV_SEL             ( BIT(12) )
109 #define BIT_ASHB_CA7_DBG_VLD            ( BIT(9) )
110 #define BIT_ASHB_CA7_DBG_EN             ( BIT(8) )
111 #define BIT_DISP_TMC_CKG_EN             ( BIT(4) )
112 #define BIT_DPHY_REF_CKG_EN             ( BIT(1) )
113 #define BIT_DPHY_CFG_CKG_EN             ( BIT(0) )
114
115 /* bits definitions for register REG_AP_AHB_MISC_CFG */
116 #define BIT_EMMC_SLOT_SEL               ( BIT(17) )
117 #define BIT_SDIO0_SLOT_SEL              ( BIT(16) )
118 #define BITS_BUSMON2_CHN_SEL(_x_)       ( (_x_) << 10 & (BIT(10)|BIT(11)) )
119 #define BITS_BUSMON1_CHN_SEL(_x_)       ( (_x_) << 8 & (BIT(8)|BIT(9)) )
120 #define BIT_BUSMON0_CHN_SEL             ( BIT(4) )
121 #define BITS_SDIO2_SLOT_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
122 #define BITS_SDIO1_SLOT_SEL(_x_)        ( (_x_) << 0 & (BIT(0)|BIT(1)) )
123
124 /* bits definitions for register REG_AP_AHB_AP_MTX_S3_PRIO0 */
125 #define BITS_PRI_M6TOS3_RND_THR(_x_)    ( (_x_) << 28 & (BIT(28)|BIT(29)|BIT(30)|BIT(31)) )
126 #define BITS_PRI_M6TOS3_SEL(_x_)        ( (_x_) << 26 & (BIT(26)|BIT(27)) )
127 #define BIT_PRI_M6TOS3_RND_EN           ( BIT(25) )
128 #define BIT_PRI_M6TOS3_ADJ_EN           ( BIT(24) )
129 #define BITS_PRI_M7TOS3_RND_THR(_x_)    ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
130 #define BITS_PRI_M7TOS3_SEL(_x_)        ( (_x_) << 18 & (BIT(18)|BIT(19)) )
131 #define BIT_PRI_M7TOS3_RND_EN           ( BIT(17) )
132 #define BIT_PRI_M7TOS3_ADJ_EN           ( BIT(16) )
133 #define BITS_PRI_M8TOS3_RND_THR(_x_)    ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
134 #define BITS_PRI_M8TOS3_SEL(_x_)        ( (_x_) << 10 & (BIT(10)|BIT(11)) )
135 #define BIT_PRI_M8TOS3_RND_EN           ( BIT(9) )
136 #define BIT_PRI_M8TOS3_ADJ_EN           ( BIT(8) )
137 #define BITS_PRI_M9TOS3_RND_THR(_x_)    ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
138 #define BITS_PRI_M9TOS3_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
139 #define BIT_PRI_M9TOS3_RND_EN           ( BIT(1) )
140 #define BIT_PRI_M9TOS3_ADJ_EN           ( BIT(0) )
141
142 /* bits definitions for register REG_AP_AHB_AP_MTX_S3_PRIO1 */
143 #define BITS_PRI_M2TOS3_RND_THR(_x_)    ( (_x_) << 28 & (BIT(28)|BIT(29)|BIT(30)|BIT(31)) )
144 #define BITS_PRI_M2TOS3_SEL(_x_)        ( (_x_) << 26 & (BIT(26)|BIT(27)) )
145 #define BIT_PRI_M2TOS3_RND_EN           ( BIT(25) )
146 #define BIT_PRI_M2TOS3_ADJ_EN           ( BIT(24) )
147 #define BITS_PRI_M3TOS3_RND_THR(_x_)    ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
148 #define BITS_PRI_M3TOS3_SEL(_x_)        ( (_x_) << 18 & (BIT(18)|BIT(19)) )
149 #define BIT_PRI_M3TOS3_RND_EN           ( BIT(17) )
150 #define BIT_PRI_M3TOS3_ADJ_EN           ( BIT(16) )
151 #define BITS_PRI_M4TOS3_RND_THR(_x_)    ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
152 #define BITS_PRI_M4TOS3_SEL(_x_)        ( (_x_) << 10 & (BIT(10)|BIT(11)) )
153 #define BIT_PRI_M4TOS3_RND_EN           ( BIT(9) )
154 #define BIT_PRI_M4TOS3_ADJ_EN           ( BIT(8) )
155 #define BITS_PRI_M5TOS3_RND_THR(_x_)    ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
156 #define BITS_PRI_M5TOS3_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
157 #define BIT_PRI_M5TOS3_RND_EN           ( BIT(1) )
158 #define BIT_PRI_M5TOS3_ADJ_EN           ( BIT(0) )
159
160 /* bits definitions for register REG_AP_AHB_AP_MTX_S3_PRIO2 */
161 #define BITS_PRI_M0TOS3_RND_THR(_x_)    ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
162 #define BITS_PRI_M0TOS3_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
163 #define BIT_PRI_M0TOS3_RND_EN           ( BIT(1) )
164 #define BIT_PRI_M0TOS3_ADJ_EN           ( BIT(0) )
165
166 /* bits definitions for register REG_AP_AHB_AP_MTX_S2_PRIO0 */
167 #define BITS_PRI_M0TOS2_RND_THR(_x_)    ( (_x_) << 28 & (BIT(28)|BIT(29)|BIT(30)|BIT(31)) )
168 #define BITS_PRI_M0TOS2_SEL(_x_)        ( (_x_) << 26 & (BIT(26)|BIT(27)) )
169 #define BIT_PRI_M0TOS2_RND_EN           ( BIT(25) )
170 #define BIT_PRI_M0TOS2_ADJ_EN           ( BIT(24) )
171 #define BITS_PRI_M1TOS2_RND_THR(_x_)    ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
172 #define BITS_PRI_M1TOS2_SEL(_x_)        ( (_x_) << 18 & (BIT(18)|BIT(19)) )
173 #define BIT_PRI_M1TOS2_RND_EN           ( BIT(17) )
174 #define BIT_PRI_M1TOS2_ADJ_EN           ( BIT(16) )
175 #define BITS_PRI_M2TOS2_RND_THR(_x_)    ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
176 #define BITS_PRI_M2TOS2_SEL(_x_)        ( (_x_) << 10 & (BIT(10)|BIT(11)) )
177 #define BIT_PRI_M2TOS2_RND_EN           ( BIT(9) )
178 #define BIT_PRI_M2TOS2_ADJ_EN           ( BIT(8) )
179 #define BITS_PRI_M3TOS2_RND_THR(_x_)    ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
180 #define BITS_PRI_M3TOS2_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
181 #define BIT_PRI_M3TOS2_RND_EN           ( BIT(1) )
182 #define BIT_PRI_M3TOS2_ADJ_EN           ( BIT(0) )
183
184 /* bits definitions for register REG_AP_AHB_AP_MTX_S1_PRIO0 */
185 #define BITS_PRI_M0TOS1_RND_THR(_x_)    ( (_x_) << 28 & (BIT(28)|BIT(29)|BIT(30)|BIT(31)) )
186 #define BITS_PRI_M0TOS1_SEL(_x_)        ( (_x_) << 26 & (BIT(26)|BIT(27)) )
187 #define BIT_PRI_M0TOS1_RND_EN           ( BIT(25) )
188 #define BIT_PRI_M0TOS1_ADJ_EN           ( BIT(24) )
189 #define BITS_PRI_M2TOS1_RND_THR(_x_)    ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
190 #define BITS_PRI_M2TOS1_SEL(_x_)        ( (_x_) << 18 & (BIT(18)|BIT(19)) )
191 #define BIT_PRI_M2TOS1_RND_EN           ( BIT(17) )
192 #define BIT_PRI_M2TOS1_ADJ_EN           ( BIT(16) )
193 #define BITS_PRI_M3TOS1_RND_THR(_x_)    ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
194 #define BITS_PRI_M3TOS1_SEL(_x_)        ( (_x_) << 10 & (BIT(10)|BIT(11)) )
195 #define BIT_PRI_M3TOS1_RND_EN           ( BIT(9) )
196 #define BIT_PRI_M3TOS1_ADJ_EN           ( BIT(8) )
197 #define BITS_PRI_M8TOS1_RND_THR(_x_)    ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
198 #define BITS_PRI_M8TOS1_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
199 #define BIT_PRI_M8TOS1_RND_EN           ( BIT(1) )
200 #define BIT_PRI_M8TOS1_ADJ_EN           ( BIT(0) )
201
202 /* bits definitions for register REG_AP_AHB_AP_MTX_S0_PRIO0 */
203 #define BITS_PRI_M0TOS0_RND_THR(_x_)    ( (_x_) << 28 & (BIT(28)|BIT(29)|BIT(30)|BIT(31)) )
204 #define BITS_PRI_M0TOS0_SEL(_x_)        ( (_x_) << 26 & (BIT(26)|BIT(27)) )
205 #define BIT_PRI_M0TOS0_RND_EN           ( BIT(25) )
206 #define BIT_PRI_M0TOS0_ADJ_EN           ( BIT(24) )
207 #define BITS_PRI_M1TOS0_RND_THR(_x_)    ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
208 #define BITS_PRI_M1TOS0_SEL(_x_)        ( (_x_) << 18 & (BIT(18)|BIT(19)) )
209 #define BIT_PRI_M1TOS0_RND_EN           ( BIT(17) )
210 #define BIT_PRI_M1TOS0_ADJ_EN           ( BIT(16) )
211 #define BITS_PRI_M2TOS0_RND_THR(_x_)    ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
212 #define BITS_PRI_M2TOS0_SEL(_x_)        ( (_x_) << 10 & (BIT(10)|BIT(11)) )
213 #define BIT_PRI_M2TOS0_RND_EN           ( BIT(9) )
214 #define BIT_PRI_M2TOS0_ADJ_EN           ( BIT(8) )
215 #define BITS_PRI_M3TOS0_RND_THR(_x_)    ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
216 #define BITS_PRI_M3TOS0_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
217 #define BIT_PRI_M3TOS0_RND_EN           ( BIT(1) )
218 #define BIT_PRI_M3TOS0_ADJ_EN           ( BIT(0) )
219
220 /* bits definitions for register REG_AP_AHB_AP_MTX_S0_PRIO1 */
221 #define BITS_PRI_M4TOS1_RND_THR(_x_)    ( (_x_) << 28 & (BIT(28)|BIT(29)|BIT(30)|BIT(31)) )
222 #define BITS_PRI_M4TOS1_SEL(_x_)        ( (_x_) << 26 & (BIT(26)|BIT(27)) )
223 #define BIT_PRI_M4TOS1_RND_EN           ( BIT(25) )
224 #define BIT_PRI_M4TOS1_ADJ_EN           ( BIT(24) )
225 #define BITS_PRI_M5TOS1_RND_THR(_x_)    ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
226 #define BITS_PRI_M5TOS1_SEL(_x_)        ( (_x_) << 18 & (BIT(18)|BIT(19)) )
227 #define BIT_PRI_M5TOS1_RND_EN           ( BIT(17) )
228 #define BIT_PRI_M5TOS1_ADJ_EN           ( BIT(16) )
229 #define BITS_PRI_M6TOS1_RND_THR(_x_)    ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
230 #define BITS_PRI_M6TOS1_SEL(_x_)        ( (_x_) << 10 & (BIT(10)|BIT(11)) )
231 #define BIT_PRI_M6TOS1_RND_EN           ( BIT(9) )
232 #define BIT_PRI_M6TOS1_ADJ_EN           ( BIT(8) )
233 #define BITS_PRI_M7TOS1_RND_THR(_x_)    ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
234 #define BITS_PRI_M7TOS1_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
235 #define BIT_PRI_M7TOS1_RND_EN           ( BIT(1) )
236 #define BIT_PRI_M7TOS1_ADJ_EN           ( BIT(0) )
237
238 /* bits definitions for register REG_AP_AHB_AP_MTX_S0_PRIO2 */
239 #define BITS_PRI_M9TOS1_RND_THR(_x_)    ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
240 #define BITS_PRI_M9TOS1_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
241 #define BIT_PRI_M9TOS1_RND_EN           ( BIT(1) )
242 #define BIT_PRI_M9TOS1_ADJ_EN           ( BIT(0) )
243
244 /* bits definitions for register REG_AP_AHB_AP_SYS_FORCE_SLEEP_CFG */
245 #define BIT_AP_PERI_FORCE_ON            ( BIT(2) )
246 #define BIT_AP_PERI_FORCE_SLP           ( BIT(1) )
247 #define BIT_AP_APB_SLEEP                ( BIT(0) )
248
249 /* bits definitions for register REG_AP_AHB_AP_SYS_AUTO_SLEEP_CFG */
250 #define BIT_GSP_CKG_FORCE_EN            ( BIT(9) )
251 #define BIT_GSP_AUTO_GATE_EN            ( BIT(8) )
252 #define BIT_AP_AHB_AUTO_GATE_EN         ( BIT(5) )
253 #define BIT_AP_EMC_AUTO_GATE_EN         ( BIT(4) )
254 #define BIT_CA7_EMC_AUTO_GATE_EN        ( BIT(3) )
255 #define BIT_CA7_DBG_FORCE_SLEEP         ( BIT(2) )
256 #define BIT_CA7_DBG_AUTO_GATE_EN        ( BIT(1) )
257 #define BIT_CA7_CORE_AUTO_GATE_EN       ( BIT(0) )
258
259 /* bits definitions for register REG_AP_AHB_AP_MAIN_MTX_HPROT_CFG */
260 #define BITS_HPROT_NFC(_x_)             ( (_x_) << 24 & (BIT(24)|BIT(25)|BIT(26)|BIT(27)) )
261 #define BITS_HPROT_EMMC(_x_)            ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
262 #define BITS_HPROT_SDIO2(_x_)           ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19)) )
263 #define BITS_HPROT_SDIO1(_x_)           ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
264 #define BITS_HPROT_SDIO0(_x_)           ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
265 #define BITS_HPROT_DMAW(_x_)            ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
266 #define BITS_HPROT_DMAR(_x_)            ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )
267
268 /* bits definitions for register REG_AP_AHB_CA7_STANDBY_STATUS */
269 #define BIT_CA7_STANDBYWFIL2            ( BIT(12) )
270 #define BITS_CA7_ETMSTANDBYWFX(_x_)     ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
271 #define BITS_CA7_STANDBYWFE(_x_)        ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
272 #define BITS_CA7_STANDBYWFI(_x_)        ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )
273
274 /* bits definitions for register REG_AP_AHB_HOLDING_PEN */
275 #define BITS_HOLDING_PEN(_x_)           ( (_x_) << 0 )
276
277 /* bits definitions for register REG_AP_AHB_JMP_ADDR_CA7_C0 */
278 #define BITS_JMP_ADDR_CA7_C0(_x_)       ( (_x_) << 0 )
279
280 /* bits definitions for register REG_AP_AHB_JMP_ADDR_CA7_C1 */
281 #define BITS_JMP_ADDR_CA7_C1(_x_)       ( (_x_) << 0 )
282
283 /* bits definitions for register REG_AP_AHB_JMP_ADDR_CA7_C2 */
284 #define BITS_JMP_ADDR_CA7_C2(_x_)       ( (_x_) << 0 )
285
286 /* bits definitions for register REG_AP_AHB_JMP_ADDR_CA7_C3 */
287 #define BITS_JMP_ADDR_CA7_C3(_x_)       ( (_x_) << 0 )
288
289 /* bits definitions for register REG_AP_AHB_CHIP_ID */
290 #define BITS_CHIP_ID(_x_)               ( (_x_) << 0 )
291
292 /* vars definitions for controller REGS_AP_AHB */
293
294 #endif //__REGS_AP_AHB_H__