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
|
/*
* Copyright (c) 2015, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __DRIVERS_CLOCK_IPQ806X_LCC_REG_H__
#define __DRIVERS_CLOCK_IPQ806X_LCC_REG_H__
#define MSM_GCC_BASE 0x00900000
#define MSM_LPASS_LCC_BASE 0x28000000
/* GCC APCS Configuration/Control */
#define GCC_PLL_APCS_REG 0x34C0
#define GCC_PLL_APCS_PLL4_MASK 0x10
#define GCC_PLL_APCS_PLL4_SHIFT 4
#define GCC_PLL_APCS_PLL4_ENABLE (1 << GCC_PLL_APCS_PLL4_SHIFT)
/* LCC PLL0 Configuration/Control */
#define LCC_PLL0_MODE_REG 0x00
#define LCC_PLL0_L_REG 0x04
#define LCC_PLL0_M_REG 0x08
#define LCC_PLL0_N_REG 0x0C
#define LCC_PLL0_CFG_REG 0x14
#define LCC_PLL0_STAT_REG 0x18
#define LCC_PLL0_MODE_FSM_RESET_MASK 0x200000
#define LCC_PLL0_MODE_FSM_RESET_SHIFT 21
#define LCC_PLL0_MODE_FSM_RESET_ASSERT (1 << LCC_PLL0_MODE_FSM_RESET_SHIFT)
#define LCC_PLL0_MODE_FSM_VOTE_MASK 0x100000
#define LCC_PLL0_MODE_FSM_VOTE_SHIFT 20
#define LCC_PLL0_MODE_FSM_VOTE_ENABLE (1 << LCC_PLL0_MODE_FSM_VOTE_SHIFT)
#define LCC_PLL0_MODE_BIAS_CNT_MASK 0xFC000
#define LCC_PLL0_MODE_BIAS_CNT_SHIFT 14
#define LCC_PLL0_MODE_LOCK_CNT_MASK 0x3F00
#define LCC_PLL0_MODE_LOCK_CNT_SHIFT 8
#define LCC_PLL0_MODE_XO_SEL_MASK 0x30
#define LCC_PLL0_MODE_XO_SEL_SHIFT 4
#define LCC_PLL0_MODE_XO_SEL_PXO (0 << LCC_PLL0_MODE_XO_SEL_SHIFT)
#define LCC_PLL0_MODE_XO_SEL_MXO (1 << LCC_PLL0_MODE_XO_SEL_SHIFT)
#define LCC_PLL0_MODE_XO_SEL_CXO (2 << LCC_PLL0_MODE_XO_SEL_SHIFT)
#define LCC_PLL0_MODE_TEST_MASK 0x8
#define LCC_PLL0_MODE_TEST_SHIFT 3
#define LCC_PLL0_MODE_TEST_ENABLE (1 << LCC_PLL0_MODE_TEST_SHIFT)
#define LCC_PLL0_MODE_RESET_MASK 0x4
#define LCC_PLL0_MODE_RESET_SHIFT 2
#define LCC_PLL0_MODE_RESET_DEASSERT (1 << LCC_PLL0_MODE_RESET_SHIFT)
#define LCC_PLL0_MODE_BYPASS_MASK 0x2
#define LCC_PLL0_MODE_BYPASS_SHIFT 1
#define LCC_PLL0_MODE_BYPASS_DISABLE (1 << LCC_PLL0_MODE_BYPASS_SHIFT)
#define LCC_PLL0_MODE_OUTPUT_MASK 0x1
#define LCC_PLL0_MODE_OUTPUT_SHIFT 0
#define LCC_PLL0_MODE_OUTPUT_ENABLE (1 << LCC_PLL0_MODE_OUTPUT_SHIFT)
#define LCC_PLL0_L_MASK 0x3FF
#define LCC_PLL0_L_SHIFT 0
#define LCC_PLL0_M_MASK 0x7FFFF
#define LCC_PLL0_M_SHIFT 0
#define LCC_PLL0_N_MASK 0x7FFFF
#define LCC_PLL0_N_SHIFT 0
#define LCC_PLL0_CFG_LV_MAIN_MASK 0x800000
#define LCC_PLL0_CFG_LV_MAIN_SHIFT 23
#define LCC_PLL0_CFG_LV_MAIN_ENABLE (1 << LCC_PLL0_CFG_LV_MAIN_SHIFT)
#define LCC_PLL0_CFG_FRAC_MASK 0x400000
#define LCC_PLL0_CFG_FRAC_SHIFT 22
#define LCC_PLL0_CFG_FRAC_ENABLE (1 << LCC_PLL0_CFG_FRAC_SHIFT)
#define LCC_PLL0_CFG_POSTDIV_MASK 0x300000
#define LCC_PLL0_CFG_POSTDIV_SHIFT 20
#define LCC_PLL0_CFG_POSTDIV_DIV1 (0 << LCC_PLL0_CFG_POSTDIV_SHIFT)
#define LCC_PLL0_CFG_POSTDIV_DIV2 (1 << LCC_PLL0_CFG_POSTDIV_SHIFT)
#define LCC_PLL0_CFG_POSTDIV_DIV4 (2 << LCC_PLL0_CFG_POSTDIV_SHIFT)
#define LCC_PLL0_CFG_PREDIV_MASK 0x80000
#define LCC_PLL0_CFG_PREDIV_SHIFT 19
#define LCC_PLL0_CFG_PREDIV_DIV1 (0 << LCC_PLL0_CFG_PREDIV_SHIFT)
#define LCC_PLL0_CFG_PREDIV_DIV2 (1 << LCC_PLL0_CFG_PREDIV_SHIFT)
#define LCC_PLL0_CFG_VCO_SEL_MASK 0x30000
#define LCC_PLL0_CFG_VCO_SEL_SHIFT 16
#define LCC_PLL0_CFG_VCO_SEL_LOW (0 << LCC_PLL0_CFG_VCO_SEL_SHIFT)
#define LCC_PLL0_CFG_VCO_SEL_MED (1 << LCC_PLL0_CFG_VCO_SEL_SHIFT)
#define LCC_PLL0_CFG_VCO_SEL_HIGH (2 << LCC_PLL0_CFG_VCO_SEL_SHIFT)
#define LCC_PLL0_STAT_ACTIVE_MASK 0x10000
#define LCC_PLL0_STAT_ACTIVE_SHIFT 16
#define LCC_PLL0_STAT_ACTIVE_SET (1 << LCC_PLL0_STAT_ACTIVE_SHIFT)
#define LCC_PLL0_STAT_NOCLK_MASK 0x1
#define LCC_PLL0_STAT_NOCLK_SHIFT 0
#define LCC_PLL0_STAT_NOCLK_SET (1 << LCC_PLL0_STAT_NOCLK_SHIFT)
/* LCC AHBIX Configuration/Control */
#define LCC_AHBIX_NS_REG 0x38
#define LCC_AHBIX_MD_REG 0x3C
#define LCC_AHBIX_STAT_REG 0x44
#define LCC_AHBIX_NS_N_VAL_MASK 0xFF000000
#define LCC_AHBIX_NS_N_VAL_SHIFT 24
#define LCC_AHBIX_NS_CRC_MASK 0x800
#define LCC_AHBIX_NS_CRC_SHIFT 11
#define LCC_AHBIX_NS_CRC_ENABLE (1 << LCC_AHBIX_NS_CRC_SHIFT)
#define LCC_AHBIX_NS_GFM_SEL_MASK 0x400
#define LCC_AHBIX_NS_GFM_SEL_SHIFT 10
#define LCC_AHBIX_NS_GFM_SEL_PXO (0 << LCC_AHBIX_NS_GFM_SEL_SHIFT)
#define LCC_AHBIX_NS_GFM_SEL_MNC (1 << LCC_AHBIX_NS_GFM_SEL_SHIFT)
#define LCC_AHBIX_NS_MNC_CLK_MASK 0x200
#define LCC_AHBIX_NS_MNC_CLK_SHIFT 9
#define LCC_AHBIX_NS_MNC_CLK_ENABLE (1 << LCC_AHBIX_NS_MNC_CLK_SHIFT)
#define LCC_AHBIX_NS_MNC_MASK 0x100
#define LCC_AHBIX_NS_MNC_SHIFT 8
#define LCC_AHBIX_NS_MNC_ENABLE (1 << LCC_AHBIX_NS_MNC_SHIFT)
#define LCC_AHBIX_NS_MNC_RESET_MASK 0x80
#define LCC_AHBIX_NS_MNC_RESET_SHIFT 7
#define LCC_AHBIX_NS_MNC_RESET_ASSERT (1 << LCC_AHBIX_NS_MNC_RESET_SHIFT)
#define LCC_AHBIX_NS_MNC_MODE_MASK 0x60
#define LCC_AHBIX_NS_MNC_MODE_SHIFT 5
#define LCC_AHBIX_NS_MNC_MODE_BYPASS (0 << LCC_AHBIX_NS_MNC_MODE_SHIFT)
#define LCC_AHBIX_NS_MNC_MODE_SWALLOW (1 << LCC_AHBIX_NS_MNC_MODE_SHIFT)
#define LCC_AHBIX_NS_MNC_MODE_DUAL (2 << LCC_AHBIX_NS_MNC_MODE_SHIFT)
#define LCC_AHBIX_NS_MNC_MODE_SINGLE (3 << LCC_AHBIX_NS_MNC_MODE_SHIFT)
#define LCC_AHBIX_NS_PREDIV_MASK 0x18
#define LCC_AHBIX_NS_PREDIV_SHIFT 3
#define LCC_AHBIX_NS_PREDIV_BYPASS (0 << LCC_AHBIX_NS_PREDIV_SHIFT)
#define LCC_AHBIX_NS_PREDIV_DIV2 (1 << LCC_AHBIX_NS_PREDIV_SHIFT)
#define LCC_AHBIX_NS_PREDIV_DIV4 (3 << LCC_AHBIX_NS_PREDIV_SHIFT)
#define LCC_AHBIX_NS_MN_SRC_MASK 0x7
#define LCC_AHBIX_NS_MN_SRC_SHIFT 0
#define LCC_AHBIX_NS_MN_SRC_PXO (0 << LCC_AHBIX_NS_MN_SRC_SHIFT)
#define LCC_AHBIX_NS_MN_SRC_CXO (1 << LCC_AHBIX_NS_MN_SRC_SHIFT)
#define LCC_AHBIX_NS_MN_SRC_LPA (2 << LCC_AHBIX_NS_MN_SRC_SHIFT)
#define LCC_AHBIX_NS_MN_SRC_SEC (3 << LCC_AHBIX_NS_MN_SRC_SHIFT)
#define LCC_AHBIX_NS_MN_SRC_CTEST (6 << LCC_AHBIX_NS_MN_SRC_SHIFT)
#define LCC_AHBIX_NS_MN_SRC_PTEST (7 << LCC_AHBIX_NS_MN_SRC_SHIFT)
#define LCC_AHBIX_MD_M_VAL_MASK 0xFF00
#define LCC_AHBIX_MD_M_VAL_SHIFT 8
#define LCC_AHBIX_MD_NOT_2D_VAL_MASK 0xFF
#define LCC_AHBIX_MD_NOT_2D_VAL_SHIFT 0
#define LCC_AHBIX_STAT_AHB_CLK_MASK 0x400
#define LCC_AHBIX_STAT_AHB_CLK_SHIFT 10
#define LCC_AHBIX_STAT_AHB_CLK_ON (1 << LCC_AHBIX_STAT_AHB_CLK_SHIFT)
#define LCC_AHBIX_STAT_AIF_CLK_MASK 0x200
#define LCC_AHBIX_STAT_AIF_CLK_SHIFT 9
#define LCC_AHBIX_STAT_AIF_CLK_ON (1 << LCC_AHBIX_STAT_AIF_CLK_SHIFT)
#define LCC_AHBIX_STAT_FAB2_CLK_MASK 0x40
#define LCC_AHBIX_STAT_FAB2_CLK_SHIFT 6
#define LCC_AHBIX_STAT_FAB2_CLK_ON (1 << LCC_AHBIX_STAT_FAB2_CLK_SHIFT)
#define LCC_AHBIX_STAT_2FAB_CLK_MASK 0x20
#define LCC_AHBIX_STAT_2FAB_CLK_SHIFT 5
#define LCC_AHBIX_STAT_2FAB_CLK_ON (1 << LCC_AHBIX_STAT_2FAB_CLK_SHIFT)
/* LCC MI2S Configuration/Control */
#define LCC_MI2S_NS_REG 0x48
#define LCC_MI2S_MD_REG 0x4C
#define LCC_MI2S_STAT_REG 0x50
#define LCC_MI2S_NS_N_VAL_MASK 0xFF000000
#define LCC_MI2S_NS_N_VAL_SHIFT 24
#define LCC_MI2S_NS_RESET_MASK 0x80000
#define LCC_MI2S_NS_RESET_SHIFT 19
#define LCC_MI2S_NS_RESET_ASSERT (1 << LCC_MI2S_NS_RESET_SHIFT)
#define LCC_MI2S_NS_OSR_INV_MASK 0x40000
#define LCC_MI2S_NS_OSR_INV_SHIFT 18
#define LCC_MI2S_NS_OSR_INV_ENABLE (1 << LCC_MI2S_NS_OSR_INV_SHIFT)
#define LCC_MI2S_NS_OSR_CXC_MASK 0x20000
#define LCC_MI2S_NS_OSR_CXC_SHIFT 17
#define LCC_MI2S_NS_OSR_CXC_ENABLE (1 << LCC_MI2S_NS_OSR_CXC_SHIFT)
#define LCC_MI2S_NS_BIT_INV_MASK 0x10000
#define LCC_MI2S_NS_BIT_INV_SHIFT 16
#define LCC_MI2S_NS_BIT_INV_ENABLE (1 << LCC_MI2S_NS_BIT_INV_SHIFT)
#define LCC_MI2S_NS_BIT_CXC_MASK 0x8000
#define LCC_MI2S_NS_BIT_CXC_SHIFT 15
#define LCC_MI2S_NS_BIT_CXC_ENABLE (1 << LCC_MI2S_NS_BIT_CXC_SHIFT)
#define LCC_MI2S_NS_BIT_SRC_MASK 0x4000
#define LCC_MI2S_NS_BIT_SRC_SHIFT 14
#define LCC_MI2S_NS_BIT_SRC_MASTER (0 << LCC_MI2S_NS_BIT_SRC_SHIFT)
#define LCC_MI2S_NS_BIT_SRC_SLAVE (1 << LCC_MI2S_NS_BIT_SRC_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_MASK 0x3C00
#define LCC_MI2S_NS_BIT_DIV_SHIFT 10
#define LCC_MI2S_NS_BIT_DIV_BYPASS (0 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV2 (1 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV3 (2 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV4 (3 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV5 (4 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV6 (5 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV7 (6 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV8 (7 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV9 (8 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV10 (9 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV11 (10 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV12 (11 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV13 (12 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV14 (13 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV15 (14 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_BIT_DIV_DIV16 (15 << LCC_MI2S_NS_BIT_DIV_SHIFT)
#define LCC_MI2S_NS_MNC_CLK_MASK 0x200
#define LCC_MI2S_NS_MNC_CLK_SHIFT 9
#define LCC_MI2S_NS_MNC_CLK_ENABLE (1 << LCC_MI2S_NS_MNC_CLK_SHIFT)
#define LCC_MI2S_NS_MNC_MASK 0x100
#define LCC_MI2S_NS_MNC_SHIFT 8
#define LCC_MI2S_NS_MNC_ENABLE (1 << LCC_MI2S_NS_MNC_SHIFT)
#define LCC_MI2S_NS_MNC_RESET_MASK 0x80
#define LCC_MI2S_NS_MNC_RESET_SHIFT 7
#define LCC_MI2S_NS_MNC_RESET_ASSERT (1 << LCC_MI2S_NS_MNC_RESET_SHIFT)
#define LCC_MI2S_NS_MNC_MODE_MASK 0x60
#define LCC_MI2S_NS_MNC_MODE_SHIFT 5
#define LCC_MI2S_NS_MNC_MODE_BYPASS (0 << LCC_MI2S_NS_MNC_MODE_SHIFT)
#define LCC_MI2S_NS_MNC_MODE_SWALLOW (1 << LCC_MI2S_NS_MNC_MODE_SHIFT)
#define LCC_MI2S_NS_MNC_MODE_DUAL (2 << LCC_MI2S_NS_MNC_MODE_SHIFT)
#define LCC_MI2S_NS_MNC_MODE_SINGLE (3 << LCC_MI2S_NS_MNC_MODE_SHIFT)
#define LCC_MI2S_NS_PREDIV_MASK 0x18
#define LCC_MI2S_NS_PREDIV_SHIFT 3
#define LCC_MI2S_NS_PREDIV_BYPASS (0 << LCC_MI2S_NS_PREDIV_SHIFT)
#define LCC_MI2S_NS_PREDIV_DIV2 (1 << LCC_MI2S_NS_PREDIV_SHIFT)
#define LCC_MI2S_NS_PREDIV_DIV4 (3 << LCC_MI2S_NS_PREDIV_SHIFT)
#define LCC_MI2S_NS_MN_SRC_MASK 0x7
#define LCC_MI2S_NS_MN_SRC_SHIFT 0
#define LCC_MI2S_NS_MN_SRC_PXO (0 << LCC_MI2S_NS_MN_SRC_SHIFT)
#define LCC_MI2S_NS_MN_SRC_CXO (1 << LCC_MI2S_NS_MN_SRC_SHIFT)
#define LCC_MI2S_NS_MN_SRC_LPA (2 << LCC_MI2S_NS_MN_SRC_SHIFT)
#define LCC_MI2S_NS_MN_SRC_SEC (3 << LCC_MI2S_NS_MN_SRC_SHIFT)
#define LCC_MI2S_NS_MN_SRC_CTEST (6 << LCC_MI2S_NS_MN_SRC_SHIFT)
#define LCC_MI2S_NS_MN_SRC_PTEST (7 << LCC_MI2S_NS_MN_SRC_SHIFT)
#define LCC_MI2S_MD_M_VAL_MASK 0xFF00
#define LCC_MI2S_MD_M_VAL_SHIFT 8
#define LCC_MI2S_MD_NOT_2D_VAL_MASK 0xFF
#define LCC_MI2S_MD_NOT_2D_VAL_SHIFT 0
#define LCC_MI2S_STAT_OSR_CLK_MASK 0x2
#define LCC_MI2S_STAT_OSR_CLK_SHIFT 1
#define LCC_MI2S_STAT_OSR_CLK_ON (1 << LCC_MI2S_STAT_OSR_CLK_SHIFT)
#define LCC_MI2S_STAT_BIT_CLK_MASK 0x1
#define LCC_MI2S_STAT_BIT_CLK_SHIFT 0
#define LCC_MI2S_STAT_BIT_CLK_ON (1 << LCC_MI2S_STAT_BIT_CLK_SHIFT)
/* LCC PLL Configuration/Control */
#define LCC_PLL_PCLK_REG 0xC4
#define LCC_PLL_SCLK_REG 0xC8
#define LCC_PLL_PCLK_RESET_MASK 0x2
#define LCC_PLL_PCLK_RESET_SHIFT 1
#define LCC_PLL_PCLK_RESET_ASSERT (1 << LCC_PLL_PCLK_RESET_SHIFT)
#define LCC_PLL_PCLK_SRC_MASK 0x1
#define LCC_PLL_PCLK_SRC_SHIFT 0
#define LCC_PLL_PCLK_SRC_PXO (0 << LCC_PLL_PCLK_SRC_SHIFT)
#define LCC_PLL_PCLK_SRC_PRI (1 << LCC_PLL_PCLK_SRC_SHIFT)
#define LCC_PLL_SCLK_RESET_MASK 0x10
#define LCC_PLL_SCLK_RESET_SHIFT 4
#define LCC_PLL_SCLK_RESET_ASSERT (1 << LCC_PLL_SCLK_RESET_SHIFT)
#define LCC_PLL_SCLK_DIV_MASK 0xC
#define LCC_PLL_SCLK_DIV_SHIFT 2
#define LCC_PLL_SCLK_DIV_BYPASS (0 << LCC_PLL_SCLK_DIV_SHIFT)
#define LCC_PLL_SCLK_DIV_DIV2 (1 << LCC_PLL_SCLK_DIV_SHIFT)
#define LCC_PLL_SCLK_DIV_DIV3 (2 << LCC_PLL_SCLK_DIV_SHIFT)
#define LCC_PLL_SCLK_DIV_DIV4 (3 << LCC_PLL_SCLK_DIV_SHIFT)
#define LCC_PLL_SCLK_XO_MASK 0x2
#define LCC_PLL_SCLK_XO_SHIFT 1
#define LCC_PLL_SCLK_XO_PXO (0 << LCC_PLL_SCLK_XO_SHIFT)
#define LCC_PLL_SCLK_XO_SEC (1 << LCC_PLL_SCLK_XO_SHIFT)
#define LCC_PLL_SCLK_MUX_MASK 0x1
#define LCC_PLL_SCLK_MUX_SHIFT 0
#define LCC_PLL_SCLK_MUX_PLL1 (0 << LCC_PLL_SCLK_MUX_SHIFT)
#define LCC_PLL_SCLK_MUX_PLL0 (1 << LCC_PLL_SCLK_MUX_SHIFT)
#endif /* __DRIVERS_CLOCK_IPQ806X_LCC_REG_H__ */
|