1
2
3
4
5
6
7
8
9
10 #ifndef __MFD_WM831X_REGULATOR_H__
11 #define __MFD_WM831X_REGULATOR_H__
12
13
14
15
16 #define WM831X_CS1_ENA 0x8000
17 #define WM831X_CS1_ENA_MASK 0x8000
18 #define WM831X_CS1_ENA_SHIFT 15
19 #define WM831X_CS1_ENA_WIDTH 1
20 #define WM831X_CS1_DRIVE 0x4000
21 #define WM831X_CS1_DRIVE_MASK 0x4000
22 #define WM831X_CS1_DRIVE_SHIFT 14
23 #define WM831X_CS1_DRIVE_WIDTH 1
24 #define WM831X_CS1_SLPENA 0x1000
25 #define WM831X_CS1_SLPENA_MASK 0x1000
26 #define WM831X_CS1_SLPENA_SHIFT 12
27 #define WM831X_CS1_SLPENA_WIDTH 1
28 #define WM831X_CS1_OFF_RAMP_MASK 0x0C00
29 #define WM831X_CS1_OFF_RAMP_SHIFT 10
30 #define WM831X_CS1_OFF_RAMP_WIDTH 2
31 #define WM831X_CS1_ON_RAMP_MASK 0x0300
32 #define WM831X_CS1_ON_RAMP_SHIFT 8
33 #define WM831X_CS1_ON_RAMP_WIDTH 2
34 #define WM831X_CS1_ISEL_MASK 0x003F
35 #define WM831X_CS1_ISEL_SHIFT 0
36 #define WM831X_CS1_ISEL_WIDTH 6
37
38
39
40
41 #define WM831X_CS2_ENA 0x8000
42 #define WM831X_CS2_ENA_MASK 0x8000
43 #define WM831X_CS2_ENA_SHIFT 15
44 #define WM831X_CS2_ENA_WIDTH 1
45 #define WM831X_CS2_DRIVE 0x4000
46 #define WM831X_CS2_DRIVE_MASK 0x4000
47 #define WM831X_CS2_DRIVE_SHIFT 14
48 #define WM831X_CS2_DRIVE_WIDTH 1
49 #define WM831X_CS2_SLPENA 0x1000
50 #define WM831X_CS2_SLPENA_MASK 0x1000
51 #define WM831X_CS2_SLPENA_SHIFT 12
52 #define WM831X_CS2_SLPENA_WIDTH 1
53 #define WM831X_CS2_OFF_RAMP_MASK 0x0C00
54 #define WM831X_CS2_OFF_RAMP_SHIFT 10
55 #define WM831X_CS2_OFF_RAMP_WIDTH 2
56 #define WM831X_CS2_ON_RAMP_MASK 0x0300
57 #define WM831X_CS2_ON_RAMP_SHIFT 8
58 #define WM831X_CS2_ON_RAMP_WIDTH 2
59 #define WM831X_CS2_ISEL_MASK 0x003F
60 #define WM831X_CS2_ISEL_SHIFT 0
61 #define WM831X_CS2_ISEL_WIDTH 6
62
63
64
65
66 #define WM831X_EPE2_ENA 0x0080
67 #define WM831X_EPE2_ENA_MASK 0x0080
68 #define WM831X_EPE2_ENA_SHIFT 7
69 #define WM831X_EPE2_ENA_WIDTH 1
70 #define WM831X_EPE1_ENA 0x0040
71 #define WM831X_EPE1_ENA_MASK 0x0040
72 #define WM831X_EPE1_ENA_SHIFT 6
73 #define WM831X_EPE1_ENA_WIDTH 1
74 #define WM831X_DC4_ENA 0x0008
75 #define WM831X_DC4_ENA_MASK 0x0008
76 #define WM831X_DC4_ENA_SHIFT 3
77 #define WM831X_DC4_ENA_WIDTH 1
78 #define WM831X_DC3_ENA 0x0004
79 #define WM831X_DC3_ENA_MASK 0x0004
80 #define WM831X_DC3_ENA_SHIFT 2
81 #define WM831X_DC3_ENA_WIDTH 1
82 #define WM831X_DC2_ENA 0x0002
83 #define WM831X_DC2_ENA_MASK 0x0002
84 #define WM831X_DC2_ENA_SHIFT 1
85 #define WM831X_DC2_ENA_WIDTH 1
86 #define WM831X_DC1_ENA 0x0001
87 #define WM831X_DC1_ENA_MASK 0x0001
88 #define WM831X_DC1_ENA_SHIFT 0
89 #define WM831X_DC1_ENA_WIDTH 1
90
91
92
93
94 #define WM831X_LDO11_ENA 0x0400
95 #define WM831X_LDO11_ENA_MASK 0x0400
96 #define WM831X_LDO11_ENA_SHIFT 10
97 #define WM831X_LDO11_ENA_WIDTH 1
98 #define WM831X_LDO10_ENA 0x0200
99 #define WM831X_LDO10_ENA_MASK 0x0200
100 #define WM831X_LDO10_ENA_SHIFT 9
101 #define WM831X_LDO10_ENA_WIDTH 1
102 #define WM831X_LDO9_ENA 0x0100
103 #define WM831X_LDO9_ENA_MASK 0x0100
104 #define WM831X_LDO9_ENA_SHIFT 8
105 #define WM831X_LDO9_ENA_WIDTH 1
106 #define WM831X_LDO8_ENA 0x0080
107 #define WM831X_LDO8_ENA_MASK 0x0080
108 #define WM831X_LDO8_ENA_SHIFT 7
109 #define WM831X_LDO8_ENA_WIDTH 1
110 #define WM831X_LDO7_ENA 0x0040
111 #define WM831X_LDO7_ENA_MASK 0x0040
112 #define WM831X_LDO7_ENA_SHIFT 6
113 #define WM831X_LDO7_ENA_WIDTH 1
114 #define WM831X_LDO6_ENA 0x0020
115 #define WM831X_LDO6_ENA_MASK 0x0020
116 #define WM831X_LDO6_ENA_SHIFT 5
117 #define WM831X_LDO6_ENA_WIDTH 1
118 #define WM831X_LDO5_ENA 0x0010
119 #define WM831X_LDO5_ENA_MASK 0x0010
120 #define WM831X_LDO5_ENA_SHIFT 4
121 #define WM831X_LDO5_ENA_WIDTH 1
122 #define WM831X_LDO4_ENA 0x0008
123 #define WM831X_LDO4_ENA_MASK 0x0008
124 #define WM831X_LDO4_ENA_SHIFT 3
125 #define WM831X_LDO4_ENA_WIDTH 1
126 #define WM831X_LDO3_ENA 0x0004
127 #define WM831X_LDO3_ENA_MASK 0x0004
128 #define WM831X_LDO3_ENA_SHIFT 2
129 #define WM831X_LDO3_ENA_WIDTH 1
130 #define WM831X_LDO2_ENA 0x0002
131 #define WM831X_LDO2_ENA_MASK 0x0002
132 #define WM831X_LDO2_ENA_SHIFT 1
133 #define WM831X_LDO2_ENA_WIDTH 1
134 #define WM831X_LDO1_ENA 0x0001
135 #define WM831X_LDO1_ENA_MASK 0x0001
136 #define WM831X_LDO1_ENA_SHIFT 0
137 #define WM831X_LDO1_ENA_WIDTH 1
138
139
140
141
142 #define WM831X_EPE2_STS 0x0080
143 #define WM831X_EPE2_STS_MASK 0x0080
144 #define WM831X_EPE2_STS_SHIFT 7
145 #define WM831X_EPE2_STS_WIDTH 1
146 #define WM831X_EPE1_STS 0x0040
147 #define WM831X_EPE1_STS_MASK 0x0040
148 #define WM831X_EPE1_STS_SHIFT 6
149 #define WM831X_EPE1_STS_WIDTH 1
150 #define WM831X_DC4_STS 0x0008
151 #define WM831X_DC4_STS_MASK 0x0008
152 #define WM831X_DC4_STS_SHIFT 3
153 #define WM831X_DC4_STS_WIDTH 1
154 #define WM831X_DC3_STS 0x0004
155 #define WM831X_DC3_STS_MASK 0x0004
156 #define WM831X_DC3_STS_SHIFT 2
157 #define WM831X_DC3_STS_WIDTH 1
158 #define WM831X_DC2_STS 0x0002
159 #define WM831X_DC2_STS_MASK 0x0002
160 #define WM831X_DC2_STS_SHIFT 1
161 #define WM831X_DC2_STS_WIDTH 1
162 #define WM831X_DC1_STS 0x0001
163 #define WM831X_DC1_STS_MASK 0x0001
164 #define WM831X_DC1_STS_SHIFT 0
165 #define WM831X_DC1_STS_WIDTH 1
166
167
168
169
170 #define WM831X_LDO11_STS 0x0400
171 #define WM831X_LDO11_STS_MASK 0x0400
172 #define WM831X_LDO11_STS_SHIFT 10
173 #define WM831X_LDO11_STS_WIDTH 1
174 #define WM831X_LDO10_STS 0x0200
175 #define WM831X_LDO10_STS_MASK 0x0200
176 #define WM831X_LDO10_STS_SHIFT 9
177 #define WM831X_LDO10_STS_WIDTH 1
178 #define WM831X_LDO9_STS 0x0100
179 #define WM831X_LDO9_STS_MASK 0x0100
180 #define WM831X_LDO9_STS_SHIFT 8
181 #define WM831X_LDO9_STS_WIDTH 1
182 #define WM831X_LDO8_STS 0x0080
183 #define WM831X_LDO8_STS_MASK 0x0080
184 #define WM831X_LDO8_STS_SHIFT 7
185 #define WM831X_LDO8_STS_WIDTH 1
186 #define WM831X_LDO7_STS 0x0040
187 #define WM831X_LDO7_STS_MASK 0x0040
188 #define WM831X_LDO7_STS_SHIFT 6
189 #define WM831X_LDO7_STS_WIDTH 1
190 #define WM831X_LDO6_STS 0x0020
191 #define WM831X_LDO6_STS_MASK 0x0020
192 #define WM831X_LDO6_STS_SHIFT 5
193 #define WM831X_LDO6_STS_WIDTH 1
194 #define WM831X_LDO5_STS 0x0010
195 #define WM831X_LDO5_STS_MASK 0x0010
196 #define WM831X_LDO5_STS_SHIFT 4
197 #define WM831X_LDO5_STS_WIDTH 1
198 #define WM831X_LDO4_STS 0x0008
199 #define WM831X_LDO4_STS_MASK 0x0008
200 #define WM831X_LDO4_STS_SHIFT 3
201 #define WM831X_LDO4_STS_WIDTH 1
202 #define WM831X_LDO3_STS 0x0004
203 #define WM831X_LDO3_STS_MASK 0x0004
204 #define WM831X_LDO3_STS_SHIFT 2
205 #define WM831X_LDO3_STS_WIDTH 1
206 #define WM831X_LDO2_STS 0x0002
207 #define WM831X_LDO2_STS_MASK 0x0002
208 #define WM831X_LDO2_STS_SHIFT 1
209 #define WM831X_LDO2_STS_WIDTH 1
210 #define WM831X_LDO1_STS 0x0001
211 #define WM831X_LDO1_STS_MASK 0x0001
212 #define WM831X_LDO1_STS_SHIFT 0
213 #define WM831X_LDO1_STS_WIDTH 1
214
215
216
217
218 #define WM831X_DC2_OV_STS 0x2000
219 #define WM831X_DC2_OV_STS_MASK 0x2000
220 #define WM831X_DC2_OV_STS_SHIFT 13
221 #define WM831X_DC2_OV_STS_WIDTH 1
222 #define WM831X_DC1_OV_STS 0x1000
223 #define WM831X_DC1_OV_STS_MASK 0x1000
224 #define WM831X_DC1_OV_STS_SHIFT 12
225 #define WM831X_DC1_OV_STS_WIDTH 1
226 #define WM831X_DC2_HC_STS 0x0200
227 #define WM831X_DC2_HC_STS_MASK 0x0200
228 #define WM831X_DC2_HC_STS_SHIFT 9
229 #define WM831X_DC2_HC_STS_WIDTH 1
230 #define WM831X_DC1_HC_STS 0x0100
231 #define WM831X_DC1_HC_STS_MASK 0x0100
232 #define WM831X_DC1_HC_STS_SHIFT 8
233 #define WM831X_DC1_HC_STS_WIDTH 1
234 #define WM831X_DC4_UV_STS 0x0008
235 #define WM831X_DC4_UV_STS_MASK 0x0008
236 #define WM831X_DC4_UV_STS_SHIFT 3
237 #define WM831X_DC4_UV_STS_WIDTH 1
238 #define WM831X_DC3_UV_STS 0x0004
239 #define WM831X_DC3_UV_STS_MASK 0x0004
240 #define WM831X_DC3_UV_STS_SHIFT 2
241 #define WM831X_DC3_UV_STS_WIDTH 1
242 #define WM831X_DC2_UV_STS 0x0002
243 #define WM831X_DC2_UV_STS_MASK 0x0002
244 #define WM831X_DC2_UV_STS_SHIFT 1
245 #define WM831X_DC2_UV_STS_WIDTH 1
246 #define WM831X_DC1_UV_STS 0x0001
247 #define WM831X_DC1_UV_STS_MASK 0x0001
248 #define WM831X_DC1_UV_STS_SHIFT 0
249 #define WM831X_DC1_UV_STS_WIDTH 1
250
251
252
253
254 #define WM831X_INTLDO_UV_STS 0x8000
255 #define WM831X_INTLDO_UV_STS_MASK 0x8000
256 #define WM831X_INTLDO_UV_STS_SHIFT 15
257 #define WM831X_INTLDO_UV_STS_WIDTH 1
258 #define WM831X_LDO10_UV_STS 0x0200
259 #define WM831X_LDO10_UV_STS_MASK 0x0200
260 #define WM831X_LDO10_UV_STS_SHIFT 9
261 #define WM831X_LDO10_UV_STS_WIDTH 1
262 #define WM831X_LDO9_UV_STS 0x0100
263 #define WM831X_LDO9_UV_STS_MASK 0x0100
264 #define WM831X_LDO9_UV_STS_SHIFT 8
265 #define WM831X_LDO9_UV_STS_WIDTH 1
266 #define WM831X_LDO8_UV_STS 0x0080
267 #define WM831X_LDO8_UV_STS_MASK 0x0080
268 #define WM831X_LDO8_UV_STS_SHIFT 7
269 #define WM831X_LDO8_UV_STS_WIDTH 1
270 #define WM831X_LDO7_UV_STS 0x0040
271 #define WM831X_LDO7_UV_STS_MASK 0x0040
272 #define WM831X_LDO7_UV_STS_SHIFT 6
273 #define WM831X_LDO7_UV_STS_WIDTH 1
274 #define WM831X_LDO6_UV_STS 0x0020
275 #define WM831X_LDO6_UV_STS_MASK 0x0020
276 #define WM831X_LDO6_UV_STS_SHIFT 5
277 #define WM831X_LDO6_UV_STS_WIDTH 1
278 #define WM831X_LDO5_UV_STS 0x0010
279 #define WM831X_LDO5_UV_STS_MASK 0x0010
280 #define WM831X_LDO5_UV_STS_SHIFT 4
281 #define WM831X_LDO5_UV_STS_WIDTH 1
282 #define WM831X_LDO4_UV_STS 0x0008
283 #define WM831X_LDO4_UV_STS_MASK 0x0008
284 #define WM831X_LDO4_UV_STS_SHIFT 3
285 #define WM831X_LDO4_UV_STS_WIDTH 1
286 #define WM831X_LDO3_UV_STS 0x0004
287 #define WM831X_LDO3_UV_STS_MASK 0x0004
288 #define WM831X_LDO3_UV_STS_SHIFT 2
289 #define WM831X_LDO3_UV_STS_WIDTH 1
290 #define WM831X_LDO2_UV_STS 0x0002
291 #define WM831X_LDO2_UV_STS_MASK 0x0002
292 #define WM831X_LDO2_UV_STS_SHIFT 1
293 #define WM831X_LDO2_UV_STS_WIDTH 1
294 #define WM831X_LDO1_UV_STS 0x0001
295 #define WM831X_LDO1_UV_STS_MASK 0x0001
296 #define WM831X_LDO1_UV_STS_SHIFT 0
297 #define WM831X_LDO1_UV_STS_WIDTH 1
298
299
300
301
302 #define WM831X_DC1_RATE_MASK 0xC000
303 #define WM831X_DC1_RATE_SHIFT 14
304 #define WM831X_DC1_RATE_WIDTH 2
305 #define WM831X_DC1_PHASE 0x1000
306 #define WM831X_DC1_PHASE_MASK 0x1000
307 #define WM831X_DC1_PHASE_SHIFT 12
308 #define WM831X_DC1_PHASE_WIDTH 1
309 #define WM831X_DC1_FREQ_MASK 0x0300
310 #define WM831X_DC1_FREQ_SHIFT 8
311 #define WM831X_DC1_FREQ_WIDTH 2
312 #define WM831X_DC1_FLT 0x0080
313 #define WM831X_DC1_FLT_MASK 0x0080
314 #define WM831X_DC1_FLT_SHIFT 7
315 #define WM831X_DC1_FLT_WIDTH 1
316 #define WM831X_DC1_SOFT_START_MASK 0x0030
317 #define WM831X_DC1_SOFT_START_SHIFT 4
318 #define WM831X_DC1_SOFT_START_WIDTH 2
319 #define WM831X_DC1_CAP_MASK 0x0003
320 #define WM831X_DC1_CAP_SHIFT 0
321 #define WM831X_DC1_CAP_WIDTH 2
322
323
324
325
326 #define WM831X_DC1_ERR_ACT_MASK 0xC000
327 #define WM831X_DC1_ERR_ACT_SHIFT 14
328 #define WM831X_DC1_ERR_ACT_WIDTH 2
329 #define WM831X_DC1_HWC_SRC_MASK 0x1800
330 #define WM831X_DC1_HWC_SRC_SHIFT 11
331 #define WM831X_DC1_HWC_SRC_WIDTH 2
332 #define WM831X_DC1_HWC_VSEL 0x0400
333 #define WM831X_DC1_HWC_VSEL_MASK 0x0400
334 #define WM831X_DC1_HWC_VSEL_SHIFT 10
335 #define WM831X_DC1_HWC_VSEL_WIDTH 1
336 #define WM831X_DC1_HWC_MODE_MASK 0x0300
337 #define WM831X_DC1_HWC_MODE_SHIFT 8
338 #define WM831X_DC1_HWC_MODE_WIDTH 2
339 #define WM831X_DC1_HC_THR_MASK 0x0070
340 #define WM831X_DC1_HC_THR_SHIFT 4
341 #define WM831X_DC1_HC_THR_WIDTH 3
342 #define WM831X_DC1_HC_IND_ENA 0x0001
343 #define WM831X_DC1_HC_IND_ENA_MASK 0x0001
344 #define WM831X_DC1_HC_IND_ENA_SHIFT 0
345 #define WM831X_DC1_HC_IND_ENA_WIDTH 1
346
347
348
349
350 #define WM831X_DC1_ON_SLOT_MASK 0xE000
351 #define WM831X_DC1_ON_SLOT_SHIFT 13
352 #define WM831X_DC1_ON_SLOT_WIDTH 3
353 #define WM831X_DC1_ON_MODE_MASK 0x0300
354 #define WM831X_DC1_ON_MODE_SHIFT 8
355 #define WM831X_DC1_ON_MODE_WIDTH 2
356 #define WM831X_DC1_ON_VSEL_MASK 0x007F
357 #define WM831X_DC1_ON_VSEL_SHIFT 0
358 #define WM831X_DC1_ON_VSEL_WIDTH 7
359
360
361
362
363 #define WM831X_DC1_SLP_SLOT_MASK 0xE000
364 #define WM831X_DC1_SLP_SLOT_SHIFT 13
365 #define WM831X_DC1_SLP_SLOT_WIDTH 3
366 #define WM831X_DC1_SLP_MODE_MASK 0x0300
367 #define WM831X_DC1_SLP_MODE_SHIFT 8
368 #define WM831X_DC1_SLP_MODE_WIDTH 2
369 #define WM831X_DC1_SLP_VSEL_MASK 0x007F
370 #define WM831X_DC1_SLP_VSEL_SHIFT 0
371 #define WM831X_DC1_SLP_VSEL_WIDTH 7
372
373
374
375
376 #define WM831X_DC1_DVS_SRC_MASK 0x1800
377 #define WM831X_DC1_DVS_SRC_SHIFT 11
378 #define WM831X_DC1_DVS_SRC_WIDTH 2
379 #define WM831X_DC1_DVS_VSEL_MASK 0x007F
380 #define WM831X_DC1_DVS_VSEL_SHIFT 0
381 #define WM831X_DC1_DVS_VSEL_WIDTH 7
382
383
384
385
386 #define WM831X_DC2_RATE_MASK 0xC000
387 #define WM831X_DC2_RATE_SHIFT 14
388 #define WM831X_DC2_RATE_WIDTH 2
389 #define WM831X_DC2_PHASE 0x1000
390 #define WM831X_DC2_PHASE_MASK 0x1000
391 #define WM831X_DC2_PHASE_SHIFT 12
392 #define WM831X_DC2_PHASE_WIDTH 1
393 #define WM831X_DC2_FREQ_MASK 0x0300
394 #define WM831X_DC2_FREQ_SHIFT 8
395 #define WM831X_DC2_FREQ_WIDTH 2
396 #define WM831X_DC2_FLT 0x0080
397 #define WM831X_DC2_FLT_MASK 0x0080
398 #define WM831X_DC2_FLT_SHIFT 7
399 #define WM831X_DC2_FLT_WIDTH 1
400 #define WM831X_DC2_SOFT_START_MASK 0x0030
401 #define WM831X_DC2_SOFT_START_SHIFT 4
402 #define WM831X_DC2_SOFT_START_WIDTH 2
403 #define WM831X_DC2_CAP_MASK 0x0003
404 #define WM831X_DC2_CAP_SHIFT 0
405 #define WM831X_DC2_CAP_WIDTH 2
406
407
408
409
410 #define WM831X_DC2_ERR_ACT_MASK 0xC000
411 #define WM831X_DC2_ERR_ACT_SHIFT 14
412 #define WM831X_DC2_ERR_ACT_WIDTH 2
413 #define WM831X_DC2_HWC_SRC_MASK 0x1800
414 #define WM831X_DC2_HWC_SRC_SHIFT 11
415 #define WM831X_DC2_HWC_SRC_WIDTH 2
416 #define WM831X_DC2_HWC_VSEL 0x0400
417 #define WM831X_DC2_HWC_VSEL_MASK 0x0400
418 #define WM831X_DC2_HWC_VSEL_SHIFT 10
419 #define WM831X_DC2_HWC_VSEL_WIDTH 1
420 #define WM831X_DC2_HWC_MODE_MASK 0x0300
421 #define WM831X_DC2_HWC_MODE_SHIFT 8
422 #define WM831X_DC2_HWC_MODE_WIDTH 2
423 #define WM831X_DC2_HC_THR_MASK 0x0070
424 #define WM831X_DC2_HC_THR_SHIFT 4
425 #define WM831X_DC2_HC_THR_WIDTH 3
426 #define WM831X_DC2_HC_IND_ENA 0x0001
427 #define WM831X_DC2_HC_IND_ENA_MASK 0x0001
428 #define WM831X_DC2_HC_IND_ENA_SHIFT 0
429 #define WM831X_DC2_HC_IND_ENA_WIDTH 1
430
431
432
433
434 #define WM831X_DC2_ON_SLOT_MASK 0xE000
435 #define WM831X_DC2_ON_SLOT_SHIFT 13
436 #define WM831X_DC2_ON_SLOT_WIDTH 3
437 #define WM831X_DC2_ON_MODE_MASK 0x0300
438 #define WM831X_DC2_ON_MODE_SHIFT 8
439 #define WM831X_DC2_ON_MODE_WIDTH 2
440 #define WM831X_DC2_ON_VSEL_MASK 0x007F
441 #define WM831X_DC2_ON_VSEL_SHIFT 0
442 #define WM831X_DC2_ON_VSEL_WIDTH 7
443
444
445
446
447 #define WM831X_DC2_SLP_SLOT_MASK 0xE000
448 #define WM831X_DC2_SLP_SLOT_SHIFT 13
449 #define WM831X_DC2_SLP_SLOT_WIDTH 3
450 #define WM831X_DC2_SLP_MODE_MASK 0x0300
451 #define WM831X_DC2_SLP_MODE_SHIFT 8
452 #define WM831X_DC2_SLP_MODE_WIDTH 2
453 #define WM831X_DC2_SLP_VSEL_MASK 0x007F
454 #define WM831X_DC2_SLP_VSEL_SHIFT 0
455 #define WM831X_DC2_SLP_VSEL_WIDTH 7
456
457
458
459
460 #define WM831X_DC2_DVS_SRC_MASK 0x1800
461 #define WM831X_DC2_DVS_SRC_SHIFT 11
462 #define WM831X_DC2_DVS_SRC_WIDTH 2
463 #define WM831X_DC2_DVS_VSEL_MASK 0x007F
464 #define WM831X_DC2_DVS_VSEL_SHIFT 0
465 #define WM831X_DC2_DVS_VSEL_WIDTH 7
466
467
468
469
470 #define WM831X_DC3_PHASE 0x1000
471 #define WM831X_DC3_PHASE_MASK 0x1000
472 #define WM831X_DC3_PHASE_SHIFT 12
473 #define WM831X_DC3_PHASE_WIDTH 1
474 #define WM831X_DC3_FLT 0x0080
475 #define WM831X_DC3_FLT_MASK 0x0080
476 #define WM831X_DC3_FLT_SHIFT 7
477 #define WM831X_DC3_FLT_WIDTH 1
478 #define WM831X_DC3_SOFT_START_MASK 0x0030
479 #define WM831X_DC3_SOFT_START_SHIFT 4
480 #define WM831X_DC3_SOFT_START_WIDTH 2
481 #define WM831X_DC3_STNBY_LIM_MASK 0x000C
482 #define WM831X_DC3_STNBY_LIM_SHIFT 2
483 #define WM831X_DC3_STNBY_LIM_WIDTH 2
484 #define WM831X_DC3_CAP_MASK 0x0003
485 #define WM831X_DC3_CAP_SHIFT 0
486 #define WM831X_DC3_CAP_WIDTH 2
487
488
489
490
491 #define WM831X_DC3_ERR_ACT_MASK 0xC000
492 #define WM831X_DC3_ERR_ACT_SHIFT 14
493 #define WM831X_DC3_ERR_ACT_WIDTH 2
494 #define WM831X_DC3_HWC_SRC_MASK 0x1800
495 #define WM831X_DC3_HWC_SRC_SHIFT 11
496 #define WM831X_DC3_HWC_SRC_WIDTH 2
497 #define WM831X_DC3_HWC_VSEL 0x0400
498 #define WM831X_DC3_HWC_VSEL_MASK 0x0400
499 #define WM831X_DC3_HWC_VSEL_SHIFT 10
500 #define WM831X_DC3_HWC_VSEL_WIDTH 1
501 #define WM831X_DC3_HWC_MODE_MASK 0x0300
502 #define WM831X_DC3_HWC_MODE_SHIFT 8
503 #define WM831X_DC3_HWC_MODE_WIDTH 2
504 #define WM831X_DC3_OVP 0x0080
505 #define WM831X_DC3_OVP_MASK 0x0080
506 #define WM831X_DC3_OVP_SHIFT 7
507 #define WM831X_DC3_OVP_WIDTH 1
508
509
510
511
512 #define WM831X_DC3_ON_SLOT_MASK 0xE000
513 #define WM831X_DC3_ON_SLOT_SHIFT 13
514 #define WM831X_DC3_ON_SLOT_WIDTH 3
515 #define WM831X_DC3_ON_MODE_MASK 0x0300
516 #define WM831X_DC3_ON_MODE_SHIFT 8
517 #define WM831X_DC3_ON_MODE_WIDTH 2
518 #define WM831X_DC3_ON_VSEL_MASK 0x007F
519 #define WM831X_DC3_ON_VSEL_SHIFT 0
520 #define WM831X_DC3_ON_VSEL_WIDTH 7
521
522
523
524
525 #define WM831X_DC3_SLP_SLOT_MASK 0xE000
526 #define WM831X_DC3_SLP_SLOT_SHIFT 13
527 #define WM831X_DC3_SLP_SLOT_WIDTH 3
528 #define WM831X_DC3_SLP_MODE_MASK 0x0300
529 #define WM831X_DC3_SLP_MODE_SHIFT 8
530 #define WM831X_DC3_SLP_MODE_WIDTH 2
531 #define WM831X_DC3_SLP_VSEL_MASK 0x007F
532 #define WM831X_DC3_SLP_VSEL_SHIFT 0
533 #define WM831X_DC3_SLP_VSEL_WIDTH 7
534
535
536
537
538 #define WM831X_DC4_ERR_ACT_MASK 0xC000
539 #define WM831X_DC4_ERR_ACT_SHIFT 14
540 #define WM831X_DC4_ERR_ACT_WIDTH 2
541 #define WM831X_DC4_HWC_SRC_MASK 0x1800
542 #define WM831X_DC4_HWC_SRC_SHIFT 11
543 #define WM831X_DC4_HWC_SRC_WIDTH 2
544 #define WM831X_DC4_HWC_MODE 0x0100
545 #define WM831X_DC4_HWC_MODE_MASK 0x0100
546 #define WM831X_DC4_HWC_MODE_SHIFT 8
547 #define WM831X_DC4_HWC_MODE_WIDTH 1
548 #define WM831X_DC4_RANGE_MASK 0x000C
549 #define WM831X_DC4_RANGE_SHIFT 2
550 #define WM831X_DC4_RANGE_WIDTH 2
551 #define WM831X_DC4_FBSRC 0x0001
552 #define WM831X_DC4_FBSRC_MASK 0x0001
553 #define WM831X_DC4_FBSRC_SHIFT 0
554 #define WM831X_DC4_FBSRC_WIDTH 1
555
556
557
558
559 #define WM831X_DC4_SLPENA 0x0100
560 #define WM831X_DC4_SLPENA_MASK 0x0100
561 #define WM831X_DC4_SLPENA_SHIFT 8
562 #define WM831X_DC4_SLPENA_WIDTH 1
563
564
565
566
567 #define WM831X_LDO1_ERR_ACT_MASK 0xC000
568 #define WM831X_LDO1_ERR_ACT_SHIFT 14
569 #define WM831X_LDO1_ERR_ACT_WIDTH 2
570 #define WM831X_LDO1_HWC_SRC_MASK 0x1800
571 #define WM831X_LDO1_HWC_SRC_SHIFT 11
572 #define WM831X_LDO1_HWC_SRC_WIDTH 2
573 #define WM831X_LDO1_HWC_VSEL 0x0400
574 #define WM831X_LDO1_HWC_VSEL_MASK 0x0400
575 #define WM831X_LDO1_HWC_VSEL_SHIFT 10
576 #define WM831X_LDO1_HWC_VSEL_WIDTH 1
577 #define WM831X_LDO1_HWC_MODE_MASK 0x0300
578 #define WM831X_LDO1_HWC_MODE_SHIFT 8
579 #define WM831X_LDO1_HWC_MODE_WIDTH 2
580 #define WM831X_LDO1_FLT 0x0080
581 #define WM831X_LDO1_FLT_MASK 0x0080
582 #define WM831X_LDO1_FLT_SHIFT 7
583 #define WM831X_LDO1_FLT_WIDTH 1
584 #define WM831X_LDO1_SWI 0x0040
585 #define WM831X_LDO1_SWI_MASK 0x0040
586 #define WM831X_LDO1_SWI_SHIFT 6
587 #define WM831X_LDO1_SWI_WIDTH 1
588 #define WM831X_LDO1_LP_MODE 0x0001
589 #define WM831X_LDO1_LP_MODE_MASK 0x0001
590 #define WM831X_LDO1_LP_MODE_SHIFT 0
591 #define WM831X_LDO1_LP_MODE_WIDTH 1
592
593
594
595
596 #define WM831X_LDO1_ON_SLOT_MASK 0xE000
597 #define WM831X_LDO1_ON_SLOT_SHIFT 13
598 #define WM831X_LDO1_ON_SLOT_WIDTH 3
599 #define WM831X_LDO1_ON_MODE 0x0100
600 #define WM831X_LDO1_ON_MODE_MASK 0x0100
601 #define WM831X_LDO1_ON_MODE_SHIFT 8
602 #define WM831X_LDO1_ON_MODE_WIDTH 1
603 #define WM831X_LDO1_ON_VSEL_MASK 0x001F
604 #define WM831X_LDO1_ON_VSEL_SHIFT 0
605 #define WM831X_LDO1_ON_VSEL_WIDTH 5
606
607
608
609
610 #define WM831X_LDO1_SLP_SLOT_MASK 0xE000
611 #define WM831X_LDO1_SLP_SLOT_SHIFT 13
612 #define WM831X_LDO1_SLP_SLOT_WIDTH 3
613 #define WM831X_LDO1_SLP_MODE 0x0100
614 #define WM831X_LDO1_SLP_MODE_MASK 0x0100
615 #define WM831X_LDO1_SLP_MODE_SHIFT 8
616 #define WM831X_LDO1_SLP_MODE_WIDTH 1
617 #define WM831X_LDO1_SLP_VSEL_MASK 0x001F
618 #define WM831X_LDO1_SLP_VSEL_SHIFT 0
619 #define WM831X_LDO1_SLP_VSEL_WIDTH 5
620
621
622
623
624 #define WM831X_LDO2_ERR_ACT_MASK 0xC000
625 #define WM831X_LDO2_ERR_ACT_SHIFT 14
626 #define WM831X_LDO2_ERR_ACT_WIDTH 2
627 #define WM831X_LDO2_HWC_SRC_MASK 0x1800
628 #define WM831X_LDO2_HWC_SRC_SHIFT 11
629 #define WM831X_LDO2_HWC_SRC_WIDTH 2
630 #define WM831X_LDO2_HWC_VSEL 0x0400
631 #define WM831X_LDO2_HWC_VSEL_MASK 0x0400
632 #define WM831X_LDO2_HWC_VSEL_SHIFT 10
633 #define WM831X_LDO2_HWC_VSEL_WIDTH 1
634 #define WM831X_LDO2_HWC_MODE_MASK 0x0300
635 #define WM831X_LDO2_HWC_MODE_SHIFT 8
636 #define WM831X_LDO2_HWC_MODE_WIDTH 2
637 #define WM831X_LDO2_FLT 0x0080
638 #define WM831X_LDO2_FLT_MASK 0x0080
639 #define WM831X_LDO2_FLT_SHIFT 7
640 #define WM831X_LDO2_FLT_WIDTH 1
641 #define WM831X_LDO2_SWI 0x0040
642 #define WM831X_LDO2_SWI_MASK 0x0040
643 #define WM831X_LDO2_SWI_SHIFT 6
644 #define WM831X_LDO2_SWI_WIDTH 1
645 #define WM831X_LDO2_LP_MODE 0x0001
646 #define WM831X_LDO2_LP_MODE_MASK 0x0001
647 #define WM831X_LDO2_LP_MODE_SHIFT 0
648 #define WM831X_LDO2_LP_MODE_WIDTH 1
649
650
651
652
653 #define WM831X_LDO2_ON_SLOT_MASK 0xE000
654 #define WM831X_LDO2_ON_SLOT_SHIFT 13
655 #define WM831X_LDO2_ON_SLOT_WIDTH 3
656 #define WM831X_LDO2_ON_MODE 0x0100
657 #define WM831X_LDO2_ON_MODE_MASK 0x0100
658 #define WM831X_LDO2_ON_MODE_SHIFT 8
659 #define WM831X_LDO2_ON_MODE_WIDTH 1
660 #define WM831X_LDO2_ON_VSEL_MASK 0x001F
661 #define WM831X_LDO2_ON_VSEL_SHIFT 0
662 #define WM831X_LDO2_ON_VSEL_WIDTH 5
663
664
665
666
667 #define WM831X_LDO2_SLP_SLOT_MASK 0xE000
668 #define WM831X_LDO2_SLP_SLOT_SHIFT 13
669 #define WM831X_LDO2_SLP_SLOT_WIDTH 3
670 #define WM831X_LDO2_SLP_MODE 0x0100
671 #define WM831X_LDO2_SLP_MODE_MASK 0x0100
672 #define WM831X_LDO2_SLP_MODE_SHIFT 8
673 #define WM831X_LDO2_SLP_MODE_WIDTH 1
674 #define WM831X_LDO2_SLP_VSEL_MASK 0x001F
675 #define WM831X_LDO2_SLP_VSEL_SHIFT 0
676 #define WM831X_LDO2_SLP_VSEL_WIDTH 5
677
678
679
680
681 #define WM831X_LDO3_ERR_ACT_MASK 0xC000
682 #define WM831X_LDO3_ERR_ACT_SHIFT 14
683 #define WM831X_LDO3_ERR_ACT_WIDTH 2
684 #define WM831X_LDO3_HWC_SRC_MASK 0x1800
685 #define WM831X_LDO3_HWC_SRC_SHIFT 11
686 #define WM831X_LDO3_HWC_SRC_WIDTH 2
687 #define WM831X_LDO3_HWC_VSEL 0x0400
688 #define WM831X_LDO3_HWC_VSEL_MASK 0x0400
689 #define WM831X_LDO3_HWC_VSEL_SHIFT 10
690 #define WM831X_LDO3_HWC_VSEL_WIDTH 1
691 #define WM831X_LDO3_HWC_MODE_MASK 0x0300
692 #define WM831X_LDO3_HWC_MODE_SHIFT 8
693 #define WM831X_LDO3_HWC_MODE_WIDTH 2
694 #define WM831X_LDO3_FLT 0x0080
695 #define WM831X_LDO3_FLT_MASK 0x0080
696 #define WM831X_LDO3_FLT_SHIFT 7
697 #define WM831X_LDO3_FLT_WIDTH 1
698 #define WM831X_LDO3_SWI 0x0040
699 #define WM831X_LDO3_SWI_MASK 0x0040
700 #define WM831X_LDO3_SWI_SHIFT 6
701 #define WM831X_LDO3_SWI_WIDTH 1
702 #define WM831X_LDO3_LP_MODE 0x0001
703 #define WM831X_LDO3_LP_MODE_MASK 0x0001
704 #define WM831X_LDO3_LP_MODE_SHIFT 0
705 #define WM831X_LDO3_LP_MODE_WIDTH 1
706
707
708
709
710 #define WM831X_LDO3_ON_SLOT_MASK 0xE000
711 #define WM831X_LDO3_ON_SLOT_SHIFT 13
712 #define WM831X_LDO3_ON_SLOT_WIDTH 3
713 #define WM831X_LDO3_ON_MODE 0x0100
714 #define WM831X_LDO3_ON_MODE_MASK 0x0100
715 #define WM831X_LDO3_ON_MODE_SHIFT 8
716 #define WM831X_LDO3_ON_MODE_WIDTH 1
717 #define WM831X_LDO3_ON_VSEL_MASK 0x001F
718 #define WM831X_LDO3_ON_VSEL_SHIFT 0
719 #define WM831X_LDO3_ON_VSEL_WIDTH 5
720
721
722
723
724 #define WM831X_LDO3_SLP_SLOT_MASK 0xE000
725 #define WM831X_LDO3_SLP_SLOT_SHIFT 13
726 #define WM831X_LDO3_SLP_SLOT_WIDTH 3
727 #define WM831X_LDO3_SLP_MODE 0x0100
728 #define WM831X_LDO3_SLP_MODE_MASK 0x0100
729 #define WM831X_LDO3_SLP_MODE_SHIFT 8
730 #define WM831X_LDO3_SLP_MODE_WIDTH 1
731 #define WM831X_LDO3_SLP_VSEL_MASK 0x001F
732 #define WM831X_LDO3_SLP_VSEL_SHIFT 0
733 #define WM831X_LDO3_SLP_VSEL_WIDTH 5
734
735
736
737
738 #define WM831X_LDO4_ERR_ACT_MASK 0xC000
739 #define WM831X_LDO4_ERR_ACT_SHIFT 14
740 #define WM831X_LDO4_ERR_ACT_WIDTH 2
741 #define WM831X_LDO4_HWC_SRC_MASK 0x1800
742 #define WM831X_LDO4_HWC_SRC_SHIFT 11
743 #define WM831X_LDO4_HWC_SRC_WIDTH 2
744 #define WM831X_LDO4_HWC_VSEL 0x0400
745 #define WM831X_LDO4_HWC_VSEL_MASK 0x0400
746 #define WM831X_LDO4_HWC_VSEL_SHIFT 10
747 #define WM831X_LDO4_HWC_VSEL_WIDTH 1
748 #define WM831X_LDO4_HWC_MODE_MASK 0x0300
749 #define WM831X_LDO4_HWC_MODE_SHIFT 8
750 #define WM831X_LDO4_HWC_MODE_WIDTH 2
751 #define WM831X_LDO4_FLT 0x0080
752 #define WM831X_LDO4_FLT_MASK 0x0080
753 #define WM831X_LDO4_FLT_SHIFT 7
754 #define WM831X_LDO4_FLT_WIDTH 1
755 #define WM831X_LDO4_SWI 0x0040
756 #define WM831X_LDO4_SWI_MASK 0x0040
757 #define WM831X_LDO4_SWI_SHIFT 6
758 #define WM831X_LDO4_SWI_WIDTH 1
759 #define WM831X_LDO4_LP_MODE 0x0001
760 #define WM831X_LDO4_LP_MODE_MASK 0x0001
761 #define WM831X_LDO4_LP_MODE_SHIFT 0
762 #define WM831X_LDO4_LP_MODE_WIDTH 1
763
764
765
766
767 #define WM831X_LDO4_ON_SLOT_MASK 0xE000
768 #define WM831X_LDO4_ON_SLOT_SHIFT 13
769 #define WM831X_LDO4_ON_SLOT_WIDTH 3
770 #define WM831X_LDO4_ON_MODE 0x0100
771 #define WM831X_LDO4_ON_MODE_MASK 0x0100
772 #define WM831X_LDO4_ON_MODE_SHIFT 8
773 #define WM831X_LDO4_ON_MODE_WIDTH 1
774 #define WM831X_LDO4_ON_VSEL_MASK 0x001F
775 #define WM831X_LDO4_ON_VSEL_SHIFT 0
776 #define WM831X_LDO4_ON_VSEL_WIDTH 5
777
778
779
780
781 #define WM831X_LDO4_SLP_SLOT_MASK 0xE000
782 #define WM831X_LDO4_SLP_SLOT_SHIFT 13
783 #define WM831X_LDO4_SLP_SLOT_WIDTH 3
784 #define WM831X_LDO4_SLP_MODE 0x0100
785 #define WM831X_LDO4_SLP_MODE_MASK 0x0100
786 #define WM831X_LDO4_SLP_MODE_SHIFT 8
787 #define WM831X_LDO4_SLP_MODE_WIDTH 1
788 #define WM831X_LDO4_SLP_VSEL_MASK 0x001F
789 #define WM831X_LDO4_SLP_VSEL_SHIFT 0
790 #define WM831X_LDO4_SLP_VSEL_WIDTH 5
791
792
793
794
795 #define WM831X_LDO5_ERR_ACT_MASK 0xC000
796 #define WM831X_LDO5_ERR_ACT_SHIFT 14
797 #define WM831X_LDO5_ERR_ACT_WIDTH 2
798 #define WM831X_LDO5_HWC_SRC_MASK 0x1800
799 #define WM831X_LDO5_HWC_SRC_SHIFT 11
800 #define WM831X_LDO5_HWC_SRC_WIDTH 2
801 #define WM831X_LDO5_HWC_VSEL 0x0400
802 #define WM831X_LDO5_HWC_VSEL_MASK 0x0400
803 #define WM831X_LDO5_HWC_VSEL_SHIFT 10
804 #define WM831X_LDO5_HWC_VSEL_WIDTH 1
805 #define WM831X_LDO5_HWC_MODE_MASK 0x0300
806 #define WM831X_LDO5_HWC_MODE_SHIFT 8
807 #define WM831X_LDO5_HWC_MODE_WIDTH 2
808 #define WM831X_LDO5_FLT 0x0080
809 #define WM831X_LDO5_FLT_MASK 0x0080
810 #define WM831X_LDO5_FLT_SHIFT 7
811 #define WM831X_LDO5_FLT_WIDTH 1
812 #define WM831X_LDO5_SWI 0x0040
813 #define WM831X_LDO5_SWI_MASK 0x0040
814 #define WM831X_LDO5_SWI_SHIFT 6
815 #define WM831X_LDO5_SWI_WIDTH 1
816 #define WM831X_LDO5_LP_MODE 0x0001
817 #define WM831X_LDO5_LP_MODE_MASK 0x0001
818 #define WM831X_LDO5_LP_MODE_SHIFT 0
819 #define WM831X_LDO5_LP_MODE_WIDTH 1
820
821
822
823
824 #define WM831X_LDO5_ON_SLOT_MASK 0xE000
825 #define WM831X_LDO5_ON_SLOT_SHIFT 13
826 #define WM831X_LDO5_ON_SLOT_WIDTH 3
827 #define WM831X_LDO5_ON_MODE 0x0100
828 #define WM831X_LDO5_ON_MODE_MASK 0x0100
829 #define WM831X_LDO5_ON_MODE_SHIFT 8
830 #define WM831X_LDO5_ON_MODE_WIDTH 1
831 #define WM831X_LDO5_ON_VSEL_MASK 0x001F
832 #define WM831X_LDO5_ON_VSEL_SHIFT 0
833 #define WM831X_LDO5_ON_VSEL_WIDTH 5
834
835
836
837
838 #define WM831X_LDO5_SLP_SLOT_MASK 0xE000
839 #define WM831X_LDO5_SLP_SLOT_SHIFT 13
840 #define WM831X_LDO5_SLP_SLOT_WIDTH 3
841 #define WM831X_LDO5_SLP_MODE 0x0100
842 #define WM831X_LDO5_SLP_MODE_MASK 0x0100
843 #define WM831X_LDO5_SLP_MODE_SHIFT 8
844 #define WM831X_LDO5_SLP_MODE_WIDTH 1
845 #define WM831X_LDO5_SLP_VSEL_MASK 0x001F
846 #define WM831X_LDO5_SLP_VSEL_SHIFT 0
847 #define WM831X_LDO5_SLP_VSEL_WIDTH 5
848
849
850
851
852 #define WM831X_LDO6_ERR_ACT_MASK 0xC000
853 #define WM831X_LDO6_ERR_ACT_SHIFT 14
854 #define WM831X_LDO6_ERR_ACT_WIDTH 2
855 #define WM831X_LDO6_HWC_SRC_MASK 0x1800
856 #define WM831X_LDO6_HWC_SRC_SHIFT 11
857 #define WM831X_LDO6_HWC_SRC_WIDTH 2
858 #define WM831X_LDO6_HWC_VSEL 0x0400
859 #define WM831X_LDO6_HWC_VSEL_MASK 0x0400
860 #define WM831X_LDO6_HWC_VSEL_SHIFT 10
861 #define WM831X_LDO6_HWC_VSEL_WIDTH 1
862 #define WM831X_LDO6_HWC_MODE_MASK 0x0300
863 #define WM831X_LDO6_HWC_MODE_SHIFT 8
864 #define WM831X_LDO6_HWC_MODE_WIDTH 2
865 #define WM831X_LDO6_FLT 0x0080
866 #define WM831X_LDO6_FLT_MASK 0x0080
867 #define WM831X_LDO6_FLT_SHIFT 7
868 #define WM831X_LDO6_FLT_WIDTH 1
869 #define WM831X_LDO6_SWI 0x0040
870 #define WM831X_LDO6_SWI_MASK 0x0040
871 #define WM831X_LDO6_SWI_SHIFT 6
872 #define WM831X_LDO6_SWI_WIDTH 1
873 #define WM831X_LDO6_LP_MODE 0x0001
874 #define WM831X_LDO6_LP_MODE_MASK 0x0001
875 #define WM831X_LDO6_LP_MODE_SHIFT 0
876 #define WM831X_LDO6_LP_MODE_WIDTH 1
877
878
879
880
881 #define WM831X_LDO6_ON_SLOT_MASK 0xE000
882 #define WM831X_LDO6_ON_SLOT_SHIFT 13
883 #define WM831X_LDO6_ON_SLOT_WIDTH 3
884 #define WM831X_LDO6_ON_MODE 0x0100
885 #define WM831X_LDO6_ON_MODE_MASK 0x0100
886 #define WM831X_LDO6_ON_MODE_SHIFT 8
887 #define WM831X_LDO6_ON_MODE_WIDTH 1
888 #define WM831X_LDO6_ON_VSEL_MASK 0x001F
889 #define WM831X_LDO6_ON_VSEL_SHIFT 0
890 #define WM831X_LDO6_ON_VSEL_WIDTH 5
891
892
893
894
895 #define WM831X_LDO6_SLP_SLOT_MASK 0xE000
896 #define WM831X_LDO6_SLP_SLOT_SHIFT 13
897 #define WM831X_LDO6_SLP_SLOT_WIDTH 3
898 #define WM831X_LDO6_SLP_MODE 0x0100
899 #define WM831X_LDO6_SLP_MODE_MASK 0x0100
900 #define WM831X_LDO6_SLP_MODE_SHIFT 8
901 #define WM831X_LDO6_SLP_MODE_WIDTH 1
902 #define WM831X_LDO6_SLP_VSEL_MASK 0x001F
903 #define WM831X_LDO6_SLP_VSEL_SHIFT 0
904 #define WM831X_LDO6_SLP_VSEL_WIDTH 5
905
906
907
908
909 #define WM831X_LDO7_ERR_ACT_MASK 0xC000
910 #define WM831X_LDO7_ERR_ACT_SHIFT 14
911 #define WM831X_LDO7_ERR_ACT_WIDTH 2
912 #define WM831X_LDO7_HWC_SRC_MASK 0x1800
913 #define WM831X_LDO7_HWC_SRC_SHIFT 11
914 #define WM831X_LDO7_HWC_SRC_WIDTH 2
915 #define WM831X_LDO7_HWC_VSEL 0x0400
916 #define WM831X_LDO7_HWC_VSEL_MASK 0x0400
917 #define WM831X_LDO7_HWC_VSEL_SHIFT 10
918 #define WM831X_LDO7_HWC_VSEL_WIDTH 1
919 #define WM831X_LDO7_HWC_MODE_MASK 0x0300
920 #define WM831X_LDO7_HWC_MODE_SHIFT 8
921 #define WM831X_LDO7_HWC_MODE_WIDTH 2
922 #define WM831X_LDO7_FLT 0x0080
923 #define WM831X_LDO7_FLT_MASK 0x0080
924 #define WM831X_LDO7_FLT_SHIFT 7
925 #define WM831X_LDO7_FLT_WIDTH 1
926 #define WM831X_LDO7_SWI 0x0040
927 #define WM831X_LDO7_SWI_MASK 0x0040
928 #define WM831X_LDO7_SWI_SHIFT 6
929 #define WM831X_LDO7_SWI_WIDTH 1
930
931
932
933
934 #define WM831X_LDO7_ON_SLOT_MASK 0xE000
935 #define WM831X_LDO7_ON_SLOT_SHIFT 13
936 #define WM831X_LDO7_ON_SLOT_WIDTH 3
937 #define WM831X_LDO7_ON_MODE 0x0100
938 #define WM831X_LDO7_ON_MODE_MASK 0x0100
939 #define WM831X_LDO7_ON_MODE_SHIFT 8
940 #define WM831X_LDO7_ON_MODE_WIDTH 1
941 #define WM831X_LDO7_ON_VSEL_MASK 0x001F
942 #define WM831X_LDO7_ON_VSEL_SHIFT 0
943 #define WM831X_LDO7_ON_VSEL_WIDTH 5
944
945
946
947
948 #define WM831X_LDO7_SLP_SLOT_MASK 0xE000
949 #define WM831X_LDO7_SLP_SLOT_SHIFT 13
950 #define WM831X_LDO7_SLP_SLOT_WIDTH 3
951 #define WM831X_LDO7_SLP_MODE 0x0100
952 #define WM831X_LDO7_SLP_MODE_MASK 0x0100
953 #define WM831X_LDO7_SLP_MODE_SHIFT 8
954 #define WM831X_LDO7_SLP_MODE_WIDTH 1
955 #define WM831X_LDO7_SLP_VSEL_MASK 0x001F
956 #define WM831X_LDO7_SLP_VSEL_SHIFT 0
957 #define WM831X_LDO7_SLP_VSEL_WIDTH 5
958
959
960
961
962 #define WM831X_LDO8_ERR_ACT_MASK 0xC000
963 #define WM831X_LDO8_ERR_ACT_SHIFT 14
964 #define WM831X_LDO8_ERR_ACT_WIDTH 2
965 #define WM831X_LDO8_HWC_SRC_MASK 0x1800
966 #define WM831X_LDO8_HWC_SRC_SHIFT 11
967 #define WM831X_LDO8_HWC_SRC_WIDTH 2
968 #define WM831X_LDO8_HWC_VSEL 0x0400
969 #define WM831X_LDO8_HWC_VSEL_MASK 0x0400
970 #define WM831X_LDO8_HWC_VSEL_SHIFT 10
971 #define WM831X_LDO8_HWC_VSEL_WIDTH 1
972 #define WM831X_LDO8_HWC_MODE_MASK 0x0300
973 #define WM831X_LDO8_HWC_MODE_SHIFT 8
974 #define WM831X_LDO8_HWC_MODE_WIDTH 2
975 #define WM831X_LDO8_FLT 0x0080
976 #define WM831X_LDO8_FLT_MASK 0x0080
977 #define WM831X_LDO8_FLT_SHIFT 7
978 #define WM831X_LDO8_FLT_WIDTH 1
979 #define WM831X_LDO8_SWI 0x0040
980 #define WM831X_LDO8_SWI_MASK 0x0040
981 #define WM831X_LDO8_SWI_SHIFT 6
982 #define WM831X_LDO8_SWI_WIDTH 1
983
984
985
986
987 #define WM831X_LDO8_ON_SLOT_MASK 0xE000
988 #define WM831X_LDO8_ON_SLOT_SHIFT 13
989 #define WM831X_LDO8_ON_SLOT_WIDTH 3
990 #define WM831X_LDO8_ON_MODE 0x0100
991 #define WM831X_LDO8_ON_MODE_MASK 0x0100
992 #define WM831X_LDO8_ON_MODE_SHIFT 8
993 #define WM831X_LDO8_ON_MODE_WIDTH 1
994 #define WM831X_LDO8_ON_VSEL_MASK 0x001F
995 #define WM831X_LDO8_ON_VSEL_SHIFT 0
996 #define WM831X_LDO8_ON_VSEL_WIDTH 5
997
998
999
1000
1001 #define WM831X_LDO8_SLP_SLOT_MASK 0xE000
1002 #define WM831X_LDO8_SLP_SLOT_SHIFT 13
1003 #define WM831X_LDO8_SLP_SLOT_WIDTH 3
1004 #define WM831X_LDO8_SLP_MODE 0x0100
1005 #define WM831X_LDO8_SLP_MODE_MASK 0x0100
1006 #define WM831X_LDO8_SLP_MODE_SHIFT 8
1007 #define WM831X_LDO8_SLP_MODE_WIDTH 1
1008 #define WM831X_LDO8_SLP_VSEL_MASK 0x001F
1009 #define WM831X_LDO8_SLP_VSEL_SHIFT 0
1010 #define WM831X_LDO8_SLP_VSEL_WIDTH 5
1011
1012
1013
1014
1015 #define WM831X_LDO9_ERR_ACT_MASK 0xC000
1016 #define WM831X_LDO9_ERR_ACT_SHIFT 14
1017 #define WM831X_LDO9_ERR_ACT_WIDTH 2
1018 #define WM831X_LDO9_HWC_SRC_MASK 0x1800
1019 #define WM831X_LDO9_HWC_SRC_SHIFT 11
1020 #define WM831X_LDO9_HWC_SRC_WIDTH 2
1021 #define WM831X_LDO9_HWC_VSEL 0x0400
1022 #define WM831X_LDO9_HWC_VSEL_MASK 0x0400
1023 #define WM831X_LDO9_HWC_VSEL_SHIFT 10
1024 #define WM831X_LDO9_HWC_VSEL_WIDTH 1
1025 #define WM831X_LDO9_HWC_MODE_MASK 0x0300
1026 #define WM831X_LDO9_HWC_MODE_SHIFT 8
1027 #define WM831X_LDO9_HWC_MODE_WIDTH 2
1028 #define WM831X_LDO9_FLT 0x0080
1029 #define WM831X_LDO9_FLT_MASK 0x0080
1030 #define WM831X_LDO9_FLT_SHIFT 7
1031 #define WM831X_LDO9_FLT_WIDTH 1
1032 #define WM831X_LDO9_SWI 0x0040
1033 #define WM831X_LDO9_SWI_MASK 0x0040
1034 #define WM831X_LDO9_SWI_SHIFT 6
1035 #define WM831X_LDO9_SWI_WIDTH 1
1036
1037
1038
1039
1040 #define WM831X_LDO9_ON_SLOT_MASK 0xE000
1041 #define WM831X_LDO9_ON_SLOT_SHIFT 13
1042 #define WM831X_LDO9_ON_SLOT_WIDTH 3
1043 #define WM831X_LDO9_ON_MODE 0x0100
1044 #define WM831X_LDO9_ON_MODE_MASK 0x0100
1045 #define WM831X_LDO9_ON_MODE_SHIFT 8
1046 #define WM831X_LDO9_ON_MODE_WIDTH 1
1047 #define WM831X_LDO9_ON_VSEL_MASK 0x001F
1048 #define WM831X_LDO9_ON_VSEL_SHIFT 0
1049 #define WM831X_LDO9_ON_VSEL_WIDTH 5
1050
1051
1052
1053
1054 #define WM831X_LDO9_SLP_SLOT_MASK 0xE000
1055 #define WM831X_LDO9_SLP_SLOT_SHIFT 13
1056 #define WM831X_LDO9_SLP_SLOT_WIDTH 3
1057 #define WM831X_LDO9_SLP_MODE 0x0100
1058 #define WM831X_LDO9_SLP_MODE_MASK 0x0100
1059 #define WM831X_LDO9_SLP_MODE_SHIFT 8
1060 #define WM831X_LDO9_SLP_MODE_WIDTH 1
1061 #define WM831X_LDO9_SLP_VSEL_MASK 0x001F
1062 #define WM831X_LDO9_SLP_VSEL_SHIFT 0
1063 #define WM831X_LDO9_SLP_VSEL_WIDTH 5
1064
1065
1066
1067
1068 #define WM831X_LDO10_ERR_ACT_MASK 0xC000
1069 #define WM831X_LDO10_ERR_ACT_SHIFT 14
1070 #define WM831X_LDO10_ERR_ACT_WIDTH 2
1071 #define WM831X_LDO10_HWC_SRC_MASK 0x1800
1072 #define WM831X_LDO10_HWC_SRC_SHIFT 11
1073 #define WM831X_LDO10_HWC_SRC_WIDTH 2
1074 #define WM831X_LDO10_HWC_VSEL 0x0400
1075 #define WM831X_LDO10_HWC_VSEL_MASK 0x0400
1076 #define WM831X_LDO10_HWC_VSEL_SHIFT 10
1077 #define WM831X_LDO10_HWC_VSEL_WIDTH 1
1078 #define WM831X_LDO10_HWC_MODE_MASK 0x0300
1079 #define WM831X_LDO10_HWC_MODE_SHIFT 8
1080 #define WM831X_LDO10_HWC_MODE_WIDTH 2
1081 #define WM831X_LDO10_FLT 0x0080
1082 #define WM831X_LDO10_FLT_MASK 0x0080
1083 #define WM831X_LDO10_FLT_SHIFT 7
1084 #define WM831X_LDO10_FLT_WIDTH 1
1085 #define WM831X_LDO10_SWI 0x0040
1086 #define WM831X_LDO10_SWI_MASK 0x0040
1087 #define WM831X_LDO10_SWI_SHIFT 6
1088 #define WM831X_LDO10_SWI_WIDTH 1
1089
1090
1091
1092
1093 #define WM831X_LDO10_ON_SLOT_MASK 0xE000
1094 #define WM831X_LDO10_ON_SLOT_SHIFT 13
1095 #define WM831X_LDO10_ON_SLOT_WIDTH 3
1096 #define WM831X_LDO10_ON_MODE 0x0100
1097 #define WM831X_LDO10_ON_MODE_MASK 0x0100
1098 #define WM831X_LDO10_ON_MODE_SHIFT 8
1099 #define WM831X_LDO10_ON_MODE_WIDTH 1
1100 #define WM831X_LDO10_ON_VSEL_MASK 0x001F
1101 #define WM831X_LDO10_ON_VSEL_SHIFT 0
1102 #define WM831X_LDO10_ON_VSEL_WIDTH 5
1103
1104
1105
1106
1107 #define WM831X_LDO10_SLP_SLOT_MASK 0xE000
1108 #define WM831X_LDO10_SLP_SLOT_SHIFT 13
1109 #define WM831X_LDO10_SLP_SLOT_WIDTH 3
1110 #define WM831X_LDO10_SLP_MODE 0x0100
1111 #define WM831X_LDO10_SLP_MODE_MASK 0x0100
1112 #define WM831X_LDO10_SLP_MODE_SHIFT 8
1113 #define WM831X_LDO10_SLP_MODE_WIDTH 1
1114 #define WM831X_LDO10_SLP_VSEL_MASK 0x001F
1115 #define WM831X_LDO10_SLP_VSEL_SHIFT 0
1116 #define WM831X_LDO10_SLP_VSEL_WIDTH 5
1117
1118
1119
1120
1121 #define WM831X_LDO11_ON_SLOT_MASK 0xE000
1122 #define WM831X_LDO11_ON_SLOT_SHIFT 13
1123 #define WM831X_LDO11_ON_SLOT_WIDTH 3
1124 #define WM831X_LDO11_OFFENA 0x1000
1125 #define WM831X_LDO11_OFFENA_MASK 0x1000
1126 #define WM831X_LDO11_OFFENA_SHIFT 12
1127 #define WM831X_LDO11_OFFENA_WIDTH 1
1128 #define WM831X_LDO11_VSEL_SRC 0x0080
1129 #define WM831X_LDO11_VSEL_SRC_MASK 0x0080
1130 #define WM831X_LDO11_VSEL_SRC_SHIFT 7
1131 #define WM831X_LDO11_VSEL_SRC_WIDTH 1
1132 #define WM831X_LDO11_ON_VSEL_MASK 0x000F
1133 #define WM831X_LDO11_ON_VSEL_SHIFT 0
1134 #define WM831X_LDO11_ON_VSEL_WIDTH 4
1135
1136
1137
1138
1139 #define WM831X_LDO11_SLP_SLOT_MASK 0xE000
1140 #define WM831X_LDO11_SLP_SLOT_SHIFT 13
1141 #define WM831X_LDO11_SLP_SLOT_WIDTH 3
1142 #define WM831X_LDO11_SLP_VSEL_MASK 0x000F
1143 #define WM831X_LDO11_SLP_VSEL_SHIFT 0
1144 #define WM831X_LDO11_SLP_VSEL_WIDTH 4
1145
1146
1147
1148
1149 #define WM831X_DC4_OK 0x0008
1150 #define WM831X_DC4_OK_MASK 0x0008
1151 #define WM831X_DC4_OK_SHIFT 3
1152 #define WM831X_DC4_OK_WIDTH 1
1153 #define WM831X_DC3_OK 0x0004
1154 #define WM831X_DC3_OK_MASK 0x0004
1155 #define WM831X_DC3_OK_SHIFT 2
1156 #define WM831X_DC3_OK_WIDTH 1
1157 #define WM831X_DC2_OK 0x0002
1158 #define WM831X_DC2_OK_MASK 0x0002
1159 #define WM831X_DC2_OK_SHIFT 1
1160 #define WM831X_DC2_OK_WIDTH 1
1161 #define WM831X_DC1_OK 0x0001
1162 #define WM831X_DC1_OK_MASK 0x0001
1163 #define WM831X_DC1_OK_SHIFT 0
1164 #define WM831X_DC1_OK_WIDTH 1
1165
1166
1167
1168
1169 #define WM831X_LDO10_OK 0x0200
1170 #define WM831X_LDO10_OK_MASK 0x0200
1171 #define WM831X_LDO10_OK_SHIFT 9
1172 #define WM831X_LDO10_OK_WIDTH 1
1173 #define WM831X_LDO9_OK 0x0100
1174 #define WM831X_LDO9_OK_MASK 0x0100
1175 #define WM831X_LDO9_OK_SHIFT 8
1176 #define WM831X_LDO9_OK_WIDTH 1
1177 #define WM831X_LDO8_OK 0x0080
1178 #define WM831X_LDO8_OK_MASK 0x0080
1179 #define WM831X_LDO8_OK_SHIFT 7
1180 #define WM831X_LDO8_OK_WIDTH 1
1181 #define WM831X_LDO7_OK 0x0040
1182 #define WM831X_LDO7_OK_MASK 0x0040
1183 #define WM831X_LDO7_OK_SHIFT 6
1184 #define WM831X_LDO7_OK_WIDTH 1
1185 #define WM831X_LDO6_OK 0x0020
1186 #define WM831X_LDO6_OK_MASK 0x0020
1187 #define WM831X_LDO6_OK_SHIFT 5
1188 #define WM831X_LDO6_OK_WIDTH 1
1189 #define WM831X_LDO5_OK 0x0010
1190 #define WM831X_LDO5_OK_MASK 0x0010
1191 #define WM831X_LDO5_OK_SHIFT 4
1192 #define WM831X_LDO5_OK_WIDTH 1
1193 #define WM831X_LDO4_OK 0x0008
1194 #define WM831X_LDO4_OK_MASK 0x0008
1195 #define WM831X_LDO4_OK_SHIFT 3
1196 #define WM831X_LDO4_OK_WIDTH 1
1197 #define WM831X_LDO3_OK 0x0004
1198 #define WM831X_LDO3_OK_MASK 0x0004
1199 #define WM831X_LDO3_OK_SHIFT 2
1200 #define WM831X_LDO3_OK_WIDTH 1
1201 #define WM831X_LDO2_OK 0x0002
1202 #define WM831X_LDO2_OK_MASK 0x0002
1203 #define WM831X_LDO2_OK_SHIFT 1
1204 #define WM831X_LDO2_OK_WIDTH 1
1205 #define WM831X_LDO1_OK 0x0001
1206 #define WM831X_LDO1_OK_MASK 0x0001
1207 #define WM831X_LDO1_OK_SHIFT 0
1208 #define WM831X_LDO1_OK_WIDTH 1
1209
1210 #define WM831X_ISINK_MAX_ISEL 55
1211 extern const unsigned int wm831x_isinkv_values[WM831X_ISINK_MAX_ISEL + 1];
1212
1213 #endif