summaryrefslogtreecommitdiff
path: root/include/soc/sprd/chip_x20l/__regs_ap_ahb_rf.h
blob: eb40dc116a4a92fb1b3f681c22bc5cc687877ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
/*
 * Copyright (C) 2014 Spreadtrum Communications Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 *************************************************
 * Automatically generated C header: do not edit *
 *************************************************
 */

#ifndef __SCI_GLB_REGS_H__
#error  "Don't include this file directly, Pls include sci_glb_regs.h"
#endif


#ifndef __H_REGS_AP_AHB_HEADFILE_H__
#define __H_REGS_AP_AHB_HEADFILE_H__ __FILE__

#define	REGS_AP_AHB_RF

/* registers definitions for controller REGS_AP_AHB */
#define REG_AP_AHB_AHB_EB               SCI_ADDR(REGS_AP_AHB_BASE, 0x0000)
#define REG_AP_AHB_AHB_RST              SCI_ADDR(REGS_AP_AHB_BASE, 0x0004)
#define REG_AP_AHB_CA7_RST_SET          SCI_ADDR(REGS_AP_AHB_BASE, 0x0008)
#define REG_AP_AHB_AP_SYS_FORCE_SLEEP_CFG SCI_ADDR(REGS_AP_AHB_BASE, 0x000C)
#define REG_AP_AHB_AP_SYS_AUTO_SLEEP_CFG SCI_ADDR(REGS_AP_AHB_BASE, 0x0010)
#define REG_AP_AHB_HOLDING_PEN          SCI_ADDR(REGS_AP_AHB_BASE, 0x0014)
#define REG_AP_AHB_JMP_ADDR_CA7_C0      SCI_ADDR(REGS_AP_AHB_BASE, 0x0018)
#define REG_AP_AHB_JMP_ADDR_CA7_C1      SCI_ADDR(REGS_AP_AHB_BASE, 0x001C)
#define REG_AP_AHB_JMP_ADDR_CA7_C2      SCI_ADDR(REGS_AP_AHB_BASE, 0x0020)
#define REG_AP_AHB_JMP_ADDR_CA7_C3      SCI_ADDR(REGS_AP_AHB_BASE, 0x0024)
#define REG_AP_AHB_CA7_C0_PU_LOCK       SCI_ADDR(REGS_AP_AHB_BASE, 0x0028)
#define REG_AP_AHB_CA7_C1_PU_LOCK       SCI_ADDR(REGS_AP_AHB_BASE, 0x002C)
#define REG_AP_AHB_CA7_C2_PU_LOCK       SCI_ADDR(REGS_AP_AHB_BASE, 0x0030)
#define REG_AP_AHB_CA7_C3_PU_LOCK       SCI_ADDR(REGS_AP_AHB_BASE, 0x0034)
#define REG_AP_AHB_CA7_CKG_DIV_CFG      SCI_ADDR(REGS_AP_AHB_BASE, 0x0038)
#define REG_AP_AHB_MCU_PAUSE            SCI_ADDR(REGS_AP_AHB_BASE, 0x003C)
#define REG_AP_AHB_MISC_CKG_EN          SCI_ADDR(REGS_AP_AHB_BASE, 0x0040)
#define REG_AP_AHB_CA7_C0_AUTO_FORCE_SHUTDOWN_EN SCI_ADDR(REGS_AP_AHB_BASE, 0x0044)
#define REG_AP_AHB_CA7_C1_AUTO_FORCE_SHUTDOWN_EN SCI_ADDR(REGS_AP_AHB_BASE, 0x0048)
#define REG_AP_AHB_CA7_C2_AUTO_FORCE_SHUTDOWN_EN SCI_ADDR(REGS_AP_AHB_BASE, 0x004C)
#define REG_AP_AHB_CA7_C3_AUTO_FORCE_SHUTDOWN_EN SCI_ADDR(REGS_AP_AHB_BASE, 0x0050)
#define REG_AP_AHB_CA7_CKG_SEL_CFG      SCI_ADDR(REGS_AP_AHB_BASE, 0x0054)
#define REG_AP_AHB_MISC_CFG             SCI_ADDR(REGS_AP_AHB_BASE, 0x3000)
#define REG_AP_AHB_AP_MAIN_MTX_HPROT_CFG SCI_ADDR(REGS_AP_AHB_BASE, 0x3004)
#define REG_AP_AHB_CA7_STANDBY_STATUS   SCI_ADDR(REGS_AP_AHB_BASE, 0x3008)
#define REG_AP_AHB_NANC_CLK_CFG         SCI_ADDR(REGS_AP_AHB_BASE, 0x300C)
#define REG_AP_AHB_LVDS_CFG             SCI_ADDR(REGS_AP_AHB_BASE, 0x3010)
#define REG_AP_AHB_LVDS_PLL_CFG0        SCI_ADDR(REGS_AP_AHB_BASE, 0x3014)
#define REG_AP_AHB_LVDS_PLL_CFG1        SCI_ADDR(REGS_AP_AHB_BASE, 0x3018)
#define REG_AP_AHB_AP_QOS_CFG           SCI_ADDR(REGS_AP_AHB_BASE, 0x301C)
#define REG_AP_AHB_OTG_PHY_TUNE         SCI_ADDR(REGS_AP_AHB_BASE, 0x3020)
#define REG_AP_AHB_OTG_PHY_TEST         SCI_ADDR(REGS_AP_AHB_BASE, 0x3024)
#define REG_AP_AHB_OTG_PHY_CTRL         SCI_ADDR(REGS_AP_AHB_BASE, 0x3028)
#define REG_AP_AHB_HSIC_PHY_TUNE        SCI_ADDR(REGS_AP_AHB_BASE, 0x302C)
#define REG_AP_AHB_HSIC_PHY_TEST        SCI_ADDR(REGS_AP_AHB_BASE, 0x3030)
#define REG_AP_AHB_HSIC_PHY_CTRL        SCI_ADDR(REGS_AP_AHB_BASE, 0x3034)
#define REG_AP_AHB_ZIP_MTX_QOS_CFG      SCI_ADDR(REGS_AP_AHB_BASE, 0x3038)
#define REG_AP_AHB_CHIP_ID              SCI_ADDR(REGS_AP_AHB_BASE, 0x30FC)

/* bits definitions for register REG_AP_AHB_AHB_EB */
#define BIT_ZIPMTX_EB                   ( BIT(23) )
#define BIT_LVDS_EB                     ( BIT(22) )
#define BIT_ZIPDEC_EB                   ( BIT(21) )
#define BIT_ZIPENC_EB                   ( BIT(20) )
#define BIT_NANDC_ECC_EB                ( BIT(19) )
#define BIT_NANDC_2X_EB                 ( BIT(18) )
#define BIT_NANDC_EB                    ( BIT(17) )
#define BIT_BUSMON2_EB                  ( BIT(16) )
#define BIT_BUSMON1_EB                  ( BIT(15) )
#define BIT_BUSMON0_EB                  ( BIT(14) )
#define BIT_SPINLOCK_EB                 ( BIT(13) )
#define BIT_EMMC_EB                     ( BIT(11) )
#define BIT_SDIO2_EB                    ( BIT(10) )
#define BIT_SDIO1_EB                    ( BIT(9) )
#define BIT_SDIO0_EB                    ( BIT(8) )
#define BIT_DRM_EB                      ( BIT(7) )
#define BIT_NFC_EB                      ( BIT(6) )
#define BIT_DMA_EB                      ( BIT(5) )
#define BIT_OTG_EB                      ( BIT(4) )
#define BIT_USB_EB                      ( BIT_OTG_EB )
#define BIT_GSP_EB                      ( BIT(3) )
#define BIT_HSIC_EB                     ( BIT(2) )
#define BIT_DISPC_EB                    ( BIT(1) )
#define BIT_DISPC0_EB                   ( BIT_DISPC_EB )
#define BIT_DSI_EB                      ( BIT(0) )

/* bits definitions for register REG_AP_AHB_AHB_RST */
#define BIT_HSIC_PHY_SOFT_RST           ( BIT(30) )
#define BIT_HSIC_UTMI_SOFT_RST          ( BIT(29) )
#define BIT_HSIC_SOFT_RST               ( BIT(28) )
#define BIT_LVDS_SOFT_RST               ( BIT(25) )
#define BIT_ZIP_MTX_SOFT_RST            ( BIT(24) )
#define BIT_ZIPDEC_SOFT_RST             ( BIT(23) )
#define BIT_ZIPENC_SOFT_RST             ( BIT(22) )
#define BIT_NANDC_SOFT_RST              ( BIT(20) )
#define BIT_BUSMON2_SOFT_RST            ( BIT(19) )
#define BIT_BUSMON1_SOFT_RST            ( BIT(18) )
#define BIT_BUSMON0_SOFT_RST            ( BIT(17) )
#define BIT_SPINLOCK_SOFT_RST           ( BIT(16) )
#define BIT_EMMC_SOFT_RST               ( BIT(14) )
#define BIT_SDIO2_SOFT_RST              ( BIT(13) )
#define BIT_SDIO1_SOFT_RST              ( BIT(12) )
#define BIT_SDIO0_SOFT_RST              ( BIT(11) )
#define BIT_DRM_SOFT_RST                ( BIT(10) )
#define BIT_NFC_SOFT_RST                ( BIT(9) )
#define BIT_DMA_SOFT_RST                ( BIT(8) )
#define BIT_OTG_PHY_SOFT_RST            ( BIT(6) )
#define BIT_OTG_UTMI_SOFT_RST           ( BIT(5) )
#define BIT_OTG_SOFT_RST                ( BIT(4) )
#define BIT_GSP_SOFT_RST                ( BIT(3) )
#define BIT_DISP_MTX_SOFT_RST           ( BIT(2) )
#define BIT_DISPC0_SOFT_RST             ( BIT(1) )
#define BIT_DSI_SOFT_RST                ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_RST_SET */
#define BIT_CA7_CS_DBG_SOFT_RST         ( BIT(14) )
#define BIT_CA7_L2_SOFT_RST             ( BIT(13) )
#define BIT_CA7_SOCDBG_SOFT_RST         ( BIT(12) )
#define BITS_CA7_ETM_SOFT_RST(_x_)      ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
#define BITS_CA7_DBG_SOFT_RST(_x_)      ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
#define BITS_CA7_CORE_SOFT_RST(_x_)     ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )

/* bits definitions for register REG_AP_AHB_AP_SYS_FORCE_SLEEP_CFG */
#define BIT_CA7_C3_AUTO_SLP_EN          ( BIT(15) )
#define BIT_CA7_C2_AUTO_SLP_EN          ( BIT(14) )
#define BIT_CA7_C1_AUTO_SLP_EN          ( BIT(13) )
#define BIT_CA7_C0_AUTO_SLP_EN          ( BIT(12) )
#define BIT_CA7_C3_WFI_SHUTDOWN_EN      ( BIT(11) )
#define BIT_CA7_C2_WFI_SHUTDOWN_EN      ( BIT(10) )
#define BIT_CA7_C1_WFI_SHUTDOWN_EN      ( BIT(9) )
#define BIT_CA7_C0_WFI_SHUTDOWN_EN      ( BIT(8) )
#define BIT_MCU_CA7_C3_SLEEP            ( BIT(7) )
#define BIT_MCU_CA7_C2_SLEEP            ( BIT(6) )
#define BIT_MCU_CA7_C1_SLEEP            ( BIT(5) )
#define BIT_MCU_CA7_C0_SLEEP            ( BIT(4) )
#define BIT_AP_PERI_FORCE_ON            ( BIT(2) )
#define BIT_AP_PERI_FORCE_SLP           ( BIT(1) )
#define BIT_AP_APB_SLEEP                ( BIT(0) )

/* bits definitions for register REG_AP_AHB_AP_SYS_AUTO_SLEEP_CFG */
#define BIT_GSP_CKG_FORCE_EN            ( BIT(9) )
#define BIT_GSP_AUTO_GATE_EN            ( BIT(8) )
#define BIT_AP_AHB_AUTO_GATE_EN         ( BIT(5) )
#define BIT_AP_EMC_AUTO_GATE_EN         ( BIT(4) )
#define BIT_CA7_EMC_AUTO_GATE_EN        ( BIT(3) )
#define BIT_CA7_DBG_FORCE_SLEEP         ( BIT(2) )
#define BIT_CA7_DBG_AUTO_GATE_EN        ( BIT(1) )
#define BIT_CA7_CORE_AUTO_GATE_EN       ( BIT(0) )

/* bits definitions for register REG_AP_AHB_HOLDING_PEN */
#define BITS_HOLDING_PEN(_x_)           ( (_x_) << 0 )

/* bits definitions for register REG_AP_AHB_JMP_ADDR_CA7_C0 */
#define BITS_JMP_ADDR_CA7_C0(_x_)       ( (_x_) << 0 )

/* bits definitions for register REG_AP_AHB_JMP_ADDR_CA7_C1 */
#define BITS_JMP_ADDR_CA7_C1(_x_)       ( (_x_) << 0 )

/* bits definitions for register REG_AP_AHB_JMP_ADDR_CA7_C2 */
#define BITS_JMP_ADDR_CA7_C2(_x_)       ( (_x_) << 0 )

/* bits definitions for register REG_AP_AHB_JMP_ADDR_CA7_C3 */
#define BITS_JMP_ADDR_CA7_C3(_x_)       ( (_x_) << 0 )

/* bits definitions for register REG_AP_AHB_CA7_C0_PU_LOCK */
#define BIT_CA7_C0_PU_LOCK              ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_C1_PU_LOCK */
#define BIT_CA7_C1_PU_LOCK              ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_C2_PU_LOCK */
#define BIT_CA7_C2_PU_LOCK              ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_C3_PU_LOCK */
#define BIT_CA7_C3_PU_LOCK              ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_CKG_DIV_CFG */
#define BITS_CA7_DBG_CKG_DIV(_x_)       ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)) )
#define BITS_CA7_AXI_CKG_DIV(_x_)       ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)) )
#define BITS_CA7_MCU_CKG_DIV(_x_)       ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)) )

/* bits definitions for register REG_AP_AHB_MCU_PAUSE */
#define BIT_DMA_ACT_LIGHT_EN            ( BIT(5) )
#define BIT_MCU_SLEEP_FOLLOW_CA7_EN     ( BIT(4) )
#define BIT_MCU_LIGHT_SLEEP_EN          ( BIT(3) )
#define BIT_MCU_DEEP_SLEEP_EN           ( BIT(2) )
#define BIT_MCU_SYS_SLEEP_EN            ( BIT(1) )
#define BIT_MCU_CORE_SLEEP              ( BIT(0) )

/* bits definitions for register REG_AP_AHB_MISC_CKG_EN */
#define BIT_ASHB_CA7_DBG_VLD            ( BIT(9) )
#define BIT_ASHB_CA7_DBG_EN             ( BIT(8) )
#define BIT_DISP_TMC_CKG_EN             ( BIT(4) )
#define BIT_DPHY_REF_CKG_EN             ( BIT(1) )
#define BIT_DPHY_CFG_CKG_EN             ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_C0_AUTO_FORCE_SHUTDOWN_EN */
#define BIT_CA7_C0_AUTO_FORCE_SHUTDOWN_EN ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_C1_AUTO_FORCE_SHUTDOWN_EN */
#define BIT_CA7_C1_AUTO_FORCE_SHUTDOWN_EN ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_C2_AUTO_FORCE_SHUTDOWN_EN */
#define BIT_CA7_C2_AUTO_FORCE_SHUTDOWN_EN ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_C3_AUTO_FORCE_SHUTDOWN_EN */
#define BIT_CA7_C3_AUTO_FORCE_SHUTDOWN_EN ( BIT(0) )

/* bits definitions for register REG_AP_AHB_CA7_CKG_SEL_CFG */
#define BITS_CA7_MCU_CKG_SEL(_x_)       ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)) )

/* bits definitions for register REG_AP_AHB_MISC_CFG */
#define BITS_EMMC_SLOT_SEL(_x_)         ( (_x_) << 18 & (BIT(18)|BIT(19)) )
#define BITS_SDIO0_SLOT_SEL(_x_)        ( (_x_) << 16 & (BIT(16)|BIT(17)) )
#define BITS_BUSMON2_CHN_SEL(_x_)       ( (_x_) << 10 & (BIT(10)|BIT(11)) )
#define BITS_BUSMON1_CHN_SEL(_x_)       ( (_x_) << 8 & (BIT(8)|BIT(9)) )
#define BITS_BUSMON0_CHN_SEL(_x_)       ( (_x_) << 4 & (BIT(4)|BIT(5)) )
#define BITS_SDIO2_SLOT_SEL(_x_)        ( (_x_) << 2 & (BIT(2)|BIT(3)) )
#define BITS_SDIO1_SLOT_SEL(_x_)        ( (_x_) << 0 & (BIT(0)|BIT(1)) )

/* bits definitions for register REG_AP_AHB_AP_MAIN_MTX_HPROT_CFG */
#define BITS_HPROT_NFC(_x_)             ( (_x_) << 24 & (BIT(24)|BIT(25)|BIT(26)|BIT(27)) )
#define BITS_HPROT_EMMC(_x_)            ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
#define BITS_HPROT_SDIO2(_x_)           ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19)) )
#define BITS_HPROT_SDIO1(_x_)           ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
#define BITS_HPROT_SDIO0(_x_)           ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
#define BITS_HPROT_DMAW(_x_)            ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
#define BITS_HPROT_DMAR(_x_)            ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )

/* bits definitions for register REG_AP_AHB_CA7_STANDBY_STATUS */
#define BIT_CA7_STANDBYWFIL2            ( BIT(12) )
#define BITS_CA7_ETMSTANDBYWFX(_x_)     ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
#define BITS_CA7_STANDBYWFE(_x_)        ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
#define BITS_CA7_STANDBYWFI(_x_)        ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )

/* bits definitions for register REG_AP_AHB_NANC_CLK_CFG */
#define BITS_CLK_NANDC_SEL(_x_)			( (_x_) << 5 & (BIT(5)|BIT(6)) )
#define BITS_CLK_NANDC2X_DIV(_x_)		( (_x_) << 2 & (BIT(2)|BIT(3)|BIT(4)) )
#define BITS_CLK_NANDC2X_SEL(_x_)		( (_x_) << 0 & (BIT(0)|BIT(1)) )

/* bits definitions for register REG_AP_AHB_LVDS_CFG */
#define BITS_LVDS_TXCLKDATA(_x_)        ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19)|BIT(20)|BIT(21)|BIT(22)) )
#define BITS_LVDS_TXCOM(_x_)            ( (_x_) << 12 & (BIT(12)|BIT(13)) )
#define BITS_LVDS_TXSLEW(_x_)           ( (_x_) << 10 & (BIT(10)|BIT(11)) )
#define BITS_LVDS_TXSW(_x_)             ( (_x_) << 8 & (BIT(8)|BIT(9)) )
#define BITS_LVDS_TXRERSER(_x_)         ( (_x_) << 3 & (BIT(3)|BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
#define BITS_LVDS_PRE_EMP(_x_)          ( (_x_) << 1 & (BIT(1)|BIT(2)) )
#define BIT_LVDS_TXPD                   ( BIT(0) )

/* bits definitions for register REG_AP_AHB_LVDS_PLL_CFG0 */
#define BIT_LVDS_PLL_LOCK_DET           ( BIT(31) )
#define BITS_LVDS_PLL_REFIN(_x_)        ( (_x_) << 24 & (BIT(24)|BIT(25)) )
#define BITS_LVDS_PLL_LPF(_x_)          ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)) )
#define BIT_LVDS_PLL_DIV_S              ( BIT(18) )
#define BITS_LVDS_PLL_IBIAS(_x_)        ( (_x_) << 16 & (BIT(16)|BIT(17)) )
#define BITS_LVDS_PLLN(_x_)             ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)|BIT(4)|BIT(5)|BIT(6)|BIT(7)|BIT(8)|BIT(9)|BIT(10)) )

/* bits definitions for register REG_AP_AHB_LVDS_PLL_CFG1 */
#define BITS_LVDS_PLL_KINT(_x_)         ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)|BIT(16)|BIT(17)|BIT(18)|BIT(19)|BIT(20)|BIT(21)|BIT(22)|BIT(23)|BIT(24)|BIT(25)|BIT(26)|BIT(27)|BIT(28)|BIT(29)|BIT(30)|BIT(31)) )
#define BITS_LVDS_PLL_RSV(_x_)          ( (_x_) << 8 & (BIT(8)|BIT(9)) )
#define BIT_LVDS_PLL_MOD_EN             ( BIT(7) )
#define BIT_LVDS_PLL_SDM_EN             ( BIT(6) )
#define BITS_LVDS_PLL_NINT(_x_)         ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)|BIT(4)|BIT(5)) )

/* bits definitions for register REG_AP_AHB_AP_QOS_CFG */
#define BITS_QOS_R_TMC(_x_)             ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
#define BITS_QOS_W_TMC(_x_)             ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19)) )
#define BITS_QOS_R_DISPC(_x_)           ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
#define BITS_QOS_W_DISPC(_x_)           ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )

/* bits definitions for register REG_AP_AHB_OTG_PHY_TUNE */
#define BIT_OTG_TXPREEMPPULSETUNE       ( BIT(20) )
#define BITS_OTG_TXRESTUNE(_x_)         ( (_x_) << 18 & (BIT(18)|BIT(19)) )
#define BITS_OTG_TXHSXVTUNE(_x_)        ( (_x_) << 16 & (BIT(16)|BIT(17)) )
#define BITS_OTG_TXVREFTUNE(_x_)        ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
#define BITS_OTG_TXPREEMPAMPTUNE(_x_)   ( (_x_) << 10 & (BIT(10)|BIT(11)) )
#define BITS_OTG_TXRISETUNE(_x_)        ( (_x_) << 8 & (BIT(8)|BIT(9)) )
#define BITS_OTG_TXFSLSTUNE(_x_)        ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
#define BITS_OTG_SQRXTUNE(_x_)          ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)) )

/* bits definitions for register REG_AP_AHB_OTG_PHY_TEST */
#define BIT_OTG_ATERESET                ( BIT(31) )
#define BIT_OTG_VBUS_VALID_EXT_SEL      ( BIT(26) )
#define BIT_OTG_VBUS_VALID_EXT          ( BIT(25) )
#define BIT_OTG_OTGDISABLE              ( BIT(24) )
#define BIT_OTG_TESTBURNIN              ( BIT(21) )
#define BIT_OTG_LOOPBACKENB             ( BIT(20) )
#define BITS_OTG_TESTDATAOUT(_x_)       ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19)) )
#define BITS_OTG_VATESTENB(_x_)         ( (_x_) << 14 & (BIT(14)|BIT(15)) )
#define BIT_OTG_TESTCLK                 ( BIT(13) )
#define BIT_OTG_TESTDATAOUTSEL          ( BIT(12) )
#define BITS_OTG_TESTADDR(_x_)          ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
#define BITS_OTG_TESTDATAIN(_x_)        ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)|BIT(4)|BIT(5)|BIT(6)|BIT(7)) )

/* bits definitions for register REG_AP_AHB_OTG_PHY_CTRL */
#define BITS_OTG_SS_SCALEDOWNMODE(_x_)  ( (_x_) << 25 & (BIT(25)|BIT(26)) )
#define BIT_OTG_TXBITSTUFFENH           ( BIT(23) )
#define BIT_OTG_TXBITSTUFFEN            ( BIT(22) )
#define BIT_OTG_DMPULLDOWN              ( BIT(21) )
#define BIT_OTG_DPPULLDOWN              ( BIT(20) )
#define BIT_OTG_DMPULLUP                ( BIT(9) )
#define BIT_OTG_COMMONONN               ( BIT(8) )
#define BITS_OTG_REFCLKSEL(_x_)         ( (_x_) << 4 & (BIT(4)|BIT(5)) )
#define BITS_OTG_FSEL(_x_)              ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)) )

/* bits definitions for register REG_AP_AHB_HSIC_PHY_TUNE */
#define BITS_HSIC_REFCLK_DIV(_x_)       ( (_x_) << 24 & (BIT(24)|BIT(25)|BIT(26)|BIT(27)|BIT(28)|BIT(29)|BIT(30)) )
#define BIT_HSIC_TXPREEMPPULSETUNE      ( BIT(20) )
#define BITS_HSIC_TXRESTUNE(_x_)        ( (_x_) << 18 & (BIT(18)|BIT(19)) )
#define BITS_HSIC_TXHSXVTUNE(_x_)       ( (_x_) << 16 & (BIT(16)|BIT(17)) )
#define BITS_HSIC_TXVREFTUNE(_x_)       ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
#define BITS_HSIC_TXPREEMPAMPTUNE(_x_)  ( (_x_) << 10 & (BIT(10)|BIT(11)) )
#define BITS_HSIC_TXRISETUNE(_x_)       ( (_x_) << 8 & (BIT(8)|BIT(9)) )
#define BITS_HSIC_TXFSLSTUNE(_x_)       ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
#define BITS_HSIC_SQRXTUNE(_x_)         ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)) )

/* bits definitions for register REG_AP_AHB_HSIC_PHY_TEST */
#define BIT_HSIC_ATERESET               ( BIT(31) )
#define BIT_HSIC_VBUS_VALID_EXT_SEL     ( BIT(26) )
#define BIT_HSIC_VBUS_VALID_EXT         ( BIT(25) )
#define BIT_HSIC_OTGDISABLE             ( BIT(24) )
#define BIT_HSIC_TESTBURNIN             ( BIT(21) )
#define BIT_HSIC_LOOPBACKENB            ( BIT(20) )
#define BITS_HSIC_TESTDATAOUT(_x_)      ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19)) )
#define BITS_HSIC_VATESTENB(_x_)        ( (_x_) << 14 & (BIT(14)|BIT(15)) )
#define BIT_HSIC_TESTCLK                ( BIT(13) )
#define BIT_HSIC_TESTDATAOUTSEL         ( BIT(12) )
#define BITS_HSIC_TESTADDR(_x_)         ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
#define BITS_HSIC_TESTDATAIN(_x_)       ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)|BIT(4)|BIT(5)|BIT(6)|BIT(7)) )

/* bits definitions for register REG_AP_AHB_HSIC_PHY_CTRL */
#define BITS_HSIC_SS_SCALEDOWNMODE(_x_) ( (_x_) << 25 & (BIT(25)|BIT(26)) )
#define BIT_HSIC_TXBITSTUFFENH          ( BIT(23) )
#define BIT_HSIC_TXBITSTUFFEN           ( BIT(22) )
#define BIT_HSIC_DMPULLDOWN             ( BIT(21) )
#define BIT_HSIC_DPPULLDOWN             ( BIT(20) )
#define BIT_HSIC_IF_MODE                ( BIT(16) )
#define BIT_IF_SELECT_HSIC              ( BIT(13) )
#define BIT_HSIC_DBNCE_FLTR_BYPASS      ( BIT(12) )
#define BIT_HSIC_DMPULLUP               ( BIT(9) )
#define BIT_HSIC_COMMONONN              ( BIT(8) )
#define BITS_HSIC_REFCLKSEL(_x_)        ( (_x_) << 4 & (BIT(4)|BIT(5)) )
#define BITS_HSIC_FSEL(_x_)             ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)) )

/* bits definitions for register REG_AP_AHB_ZIP_MTX_QOS_CFG */
#define BITS_ZIPMTX_S0_ARQOS(_x_)       ( (_x_) << 20 & (BIT(20)|BIT(21)|BIT(22)|BIT(23)) )
#define BITS_ZIPMTX_S0_AWQOS(_x_)       ( (_x_) << 16 & (BIT(16)|BIT(17)|BIT(18)|BIT(19)) )
#define BITS_ZIPDEC_ARQOS(_x_)          ( (_x_) << 12 & (BIT(12)|BIT(13)|BIT(14)|BIT(15)) )
#define BITS_ZIPDEC_AWQOS(_x_)          ( (_x_) << 8 & (BIT(8)|BIT(9)|BIT(10)|BIT(11)) )
#define BITS_ZIPENC_ARQOS(_x_)          ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) )
#define BITS_ZIPENC_AWQOS(_x_)          ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) )

/* bits definitions for register REG_AP_AHB_CHIP_ID */
#define BITS_CHIP_ID(_x_)               ( (_x_) << 0 )

/* vars definitions for controller REGS_AP_AHB */

#endif /* __REGS_AP_AHB_H__ */