Go to the documentation of this file.
21 #ifndef __LINUX_MFD_WM8400_PRIV_H
22 #define __LINUX_MFD_WM8400_PRIV_H
29 #define WM8400_REGISTER_COUNT 0x55
41 #define WM8400_RESET_ID 0x00
42 #define WM8400_ID 0x01
43 #define WM8400_POWER_MANAGEMENT_1 0x02
44 #define WM8400_POWER_MANAGEMENT_2 0x03
45 #define WM8400_POWER_MANAGEMENT_3 0x04
46 #define WM8400_AUDIO_INTERFACE_1 0x05
47 #define WM8400_AUDIO_INTERFACE_2 0x06
48 #define WM8400_CLOCKING_1 0x07
49 #define WM8400_CLOCKING_2 0x08
50 #define WM8400_AUDIO_INTERFACE_3 0x09
51 #define WM8400_AUDIO_INTERFACE_4 0x0A
52 #define WM8400_DAC_CTRL 0x0B
53 #define WM8400_LEFT_DAC_DIGITAL_VOLUME 0x0C
54 #define WM8400_RIGHT_DAC_DIGITAL_VOLUME 0x0D
55 #define WM8400_DIGITAL_SIDE_TONE 0x0E
56 #define WM8400_ADC_CTRL 0x0F
57 #define WM8400_LEFT_ADC_DIGITAL_VOLUME 0x10
58 #define WM8400_RIGHT_ADC_DIGITAL_VOLUME 0x11
59 #define WM8400_GPIO_CTRL_1 0x12
60 #define WM8400_GPIO1_GPIO2 0x13
61 #define WM8400_GPIO3_GPIO4 0x14
62 #define WM8400_GPIO5_GPIO6 0x15
63 #define WM8400_GPIOCTRL_2 0x16
64 #define WM8400_GPIO_POL 0x17
65 #define WM8400_LEFT_LINE_INPUT_1_2_VOLUME 0x18
66 #define WM8400_LEFT_LINE_INPUT_3_4_VOLUME 0x19
67 #define WM8400_RIGHT_LINE_INPUT_1_2_VOLUME 0x1A
68 #define WM8400_RIGHT_LINE_INPUT_3_4_VOLUME 0x1B
69 #define WM8400_LEFT_OUTPUT_VOLUME 0x1C
70 #define WM8400_RIGHT_OUTPUT_VOLUME 0x1D
71 #define WM8400_LINE_OUTPUTS_VOLUME 0x1E
72 #define WM8400_OUT3_4_VOLUME 0x1F
73 #define WM8400_LEFT_OPGA_VOLUME 0x20
74 #define WM8400_RIGHT_OPGA_VOLUME 0x21
75 #define WM8400_SPEAKER_VOLUME 0x22
76 #define WM8400_CLASSD1 0x23
77 #define WM8400_CLASSD3 0x25
78 #define WM8400_INPUT_MIXER1 0x27
79 #define WM8400_INPUT_MIXER2 0x28
80 #define WM8400_INPUT_MIXER3 0x29
81 #define WM8400_INPUT_MIXER4 0x2A
82 #define WM8400_INPUT_MIXER5 0x2B
83 #define WM8400_INPUT_MIXER6 0x2C
84 #define WM8400_OUTPUT_MIXER1 0x2D
85 #define WM8400_OUTPUT_MIXER2 0x2E
86 #define WM8400_OUTPUT_MIXER3 0x2F
87 #define WM8400_OUTPUT_MIXER4 0x30
88 #define WM8400_OUTPUT_MIXER5 0x31
89 #define WM8400_OUTPUT_MIXER6 0x32
90 #define WM8400_OUT3_4_MIXER 0x33
91 #define WM8400_LINE_MIXER1 0x34
92 #define WM8400_LINE_MIXER2 0x35
93 #define WM8400_SPEAKER_MIXER 0x36
94 #define WM8400_ADDITIONAL_CONTROL 0x37
95 #define WM8400_ANTIPOP1 0x38
96 #define WM8400_ANTIPOP2 0x39
97 #define WM8400_MICBIAS 0x3A
98 #define WM8400_FLL_CONTROL_1 0x3C
99 #define WM8400_FLL_CONTROL_2 0x3D
100 #define WM8400_FLL_CONTROL_3 0x3E
101 #define WM8400_FLL_CONTROL_4 0x3F
102 #define WM8400_LDO1_CONTROL 0x41
103 #define WM8400_LDO2_CONTROL 0x42
104 #define WM8400_LDO3_CONTROL 0x43
105 #define WM8400_LDO4_CONTROL 0x44
106 #define WM8400_DCDC1_CONTROL_1 0x46
107 #define WM8400_DCDC1_CONTROL_2 0x47
108 #define WM8400_DCDC2_CONTROL_1 0x48
109 #define WM8400_DCDC2_CONTROL_2 0x49
110 #define WM8400_INTERFACE 0x4B
111 #define WM8400_PM_GENERAL 0x4C
112 #define WM8400_PM_SHUTDOWN_CONTROL 0x4E
113 #define WM8400_INTERRUPT_STATUS_1 0x4F
114 #define WM8400_INTERRUPT_STATUS_1_MASK 0x50
115 #define WM8400_INTERRUPT_LEVELS 0x51
116 #define WM8400_SHUTDOWN_REASON 0x52
117 #define WM8400_LINE_CIRCUITS 0x54
126 #define WM8400_SW_RESET_CHIP_ID_MASK 0xFFFF
127 #define WM8400_SW_RESET_CHIP_ID_SHIFT 0
128 #define WM8400_SW_RESET_CHIP_ID_WIDTH 16
133 #define WM8400_CHIP_REV_MASK 0x7000
134 #define WM8400_CHIP_REV_SHIFT 12
135 #define WM8400_CHIP_REV_WIDTH 3
140 #define WM8400_IRQ 0x1000
141 #define WM8400_IRQ_MASK 0x1000
142 #define WM8400_IRQ_SHIFT 12
143 #define WM8400_IRQ_WIDTH 1
144 #define WM8400_TEMPOK 0x0800
145 #define WM8400_TEMPOK_MASK 0x0800
146 #define WM8400_TEMPOK_SHIFT 11
147 #define WM8400_TEMPOK_WIDTH 1
148 #define WM8400_MIC1SHRT 0x0400
149 #define WM8400_MIC1SHRT_MASK 0x0400
150 #define WM8400_MIC1SHRT_SHIFT 10
151 #define WM8400_MIC1SHRT_WIDTH 1
152 #define WM8400_MIC1DET 0x0200
153 #define WM8400_MIC1DET_MASK 0x0200
154 #define WM8400_MIC1DET_SHIFT 9
155 #define WM8400_MIC1DET_WIDTH 1
156 #define WM8400_FLL_LCK 0x0100
157 #define WM8400_FLL_LCK_MASK 0x0100
158 #define WM8400_FLL_LCK_SHIFT 8
159 #define WM8400_FLL_LCK_WIDTH 1
160 #define WM8400_GPIO_STATUS_MASK 0x00FF
161 #define WM8400_GPIO_STATUS_SHIFT 0
162 #define WM8400_GPIO_STATUS_WIDTH 8
167 #define WM8400_GPIO2_DEB_ENA 0x8000
168 #define WM8400_GPIO2_DEB_ENA_MASK 0x8000
169 #define WM8400_GPIO2_DEB_ENA_SHIFT 15
170 #define WM8400_GPIO2_DEB_ENA_WIDTH 1
171 #define WM8400_GPIO2_IRQ_ENA 0x4000
172 #define WM8400_GPIO2_IRQ_ENA_MASK 0x4000
173 #define WM8400_GPIO2_IRQ_ENA_SHIFT 14
174 #define WM8400_GPIO2_IRQ_ENA_WIDTH 1
175 #define WM8400_GPIO2_PU 0x2000
176 #define WM8400_GPIO2_PU_MASK 0x2000
177 #define WM8400_GPIO2_PU_SHIFT 13
178 #define WM8400_GPIO2_PU_WIDTH 1
179 #define WM8400_GPIO2_PD 0x1000
180 #define WM8400_GPIO2_PD_MASK 0x1000
181 #define WM8400_GPIO2_PD_SHIFT 12
182 #define WM8400_GPIO2_PD_WIDTH 1
183 #define WM8400_GPIO2_SEL_MASK 0x0F00
184 #define WM8400_GPIO2_SEL_SHIFT 8
185 #define WM8400_GPIO2_SEL_WIDTH 4
186 #define WM8400_GPIO1_DEB_ENA 0x0080
187 #define WM8400_GPIO1_DEB_ENA_MASK 0x0080
188 #define WM8400_GPIO1_DEB_ENA_SHIFT 7
189 #define WM8400_GPIO1_DEB_ENA_WIDTH 1
190 #define WM8400_GPIO1_IRQ_ENA 0x0040
191 #define WM8400_GPIO1_IRQ_ENA_MASK 0x0040
192 #define WM8400_GPIO1_IRQ_ENA_SHIFT 6
193 #define WM8400_GPIO1_IRQ_ENA_WIDTH 1
194 #define WM8400_GPIO1_PU 0x0020
195 #define WM8400_GPIO1_PU_MASK 0x0020
196 #define WM8400_GPIO1_PU_SHIFT 5
197 #define WM8400_GPIO1_PU_WIDTH 1
198 #define WM8400_GPIO1_PD 0x0010
199 #define WM8400_GPIO1_PD_MASK 0x0010
200 #define WM8400_GPIO1_PD_SHIFT 4
201 #define WM8400_GPIO1_PD_WIDTH 1
202 #define WM8400_GPIO1_SEL_MASK 0x000F
203 #define WM8400_GPIO1_SEL_SHIFT 0
204 #define WM8400_GPIO1_SEL_WIDTH 4
209 #define WM8400_GPIO4_DEB_ENA 0x8000
210 #define WM8400_GPIO4_DEB_ENA_MASK 0x8000
211 #define WM8400_GPIO4_DEB_ENA_SHIFT 15
212 #define WM8400_GPIO4_DEB_ENA_WIDTH 1
213 #define WM8400_GPIO4_IRQ_ENA 0x4000
214 #define WM8400_GPIO4_IRQ_ENA_MASK 0x4000
215 #define WM8400_GPIO4_IRQ_ENA_SHIFT 14
216 #define WM8400_GPIO4_IRQ_ENA_WIDTH 1
217 #define WM8400_GPIO4_PU 0x2000
218 #define WM8400_GPIO4_PU_MASK 0x2000
219 #define WM8400_GPIO4_PU_SHIFT 13
220 #define WM8400_GPIO4_PU_WIDTH 1
221 #define WM8400_GPIO4_PD 0x1000
222 #define WM8400_GPIO4_PD_MASK 0x1000
223 #define WM8400_GPIO4_PD_SHIFT 12
224 #define WM8400_GPIO4_PD_WIDTH 1
225 #define WM8400_GPIO4_SEL_MASK 0x0F00
226 #define WM8400_GPIO4_SEL_SHIFT 8
227 #define WM8400_GPIO4_SEL_WIDTH 4
228 #define WM8400_GPIO3_DEB_ENA 0x0080
229 #define WM8400_GPIO3_DEB_ENA_MASK 0x0080
230 #define WM8400_GPIO3_DEB_ENA_SHIFT 7
231 #define WM8400_GPIO3_DEB_ENA_WIDTH 1
232 #define WM8400_GPIO3_IRQ_ENA 0x0040
233 #define WM8400_GPIO3_IRQ_ENA_MASK 0x0040
234 #define WM8400_GPIO3_IRQ_ENA_SHIFT 6
235 #define WM8400_GPIO3_IRQ_ENA_WIDTH 1
236 #define WM8400_GPIO3_PU 0x0020
237 #define WM8400_GPIO3_PU_MASK 0x0020
238 #define WM8400_GPIO3_PU_SHIFT 5
239 #define WM8400_GPIO3_PU_WIDTH 1
240 #define WM8400_GPIO3_PD 0x0010
241 #define WM8400_GPIO3_PD_MASK 0x0010
242 #define WM8400_GPIO3_PD_SHIFT 4
243 #define WM8400_GPIO3_PD_WIDTH 1
244 #define WM8400_GPIO3_SEL_MASK 0x000F
245 #define WM8400_GPIO3_SEL_SHIFT 0
246 #define WM8400_GPIO3_SEL_WIDTH 4
251 #define WM8400_GPIO6_DEB_ENA 0x8000
252 #define WM8400_GPIO6_DEB_ENA_MASK 0x8000
253 #define WM8400_GPIO6_DEB_ENA_SHIFT 15
254 #define WM8400_GPIO6_DEB_ENA_WIDTH 1
255 #define WM8400_GPIO6_IRQ_ENA 0x4000
256 #define WM8400_GPIO6_IRQ_ENA_MASK 0x4000
257 #define WM8400_GPIO6_IRQ_ENA_SHIFT 14
258 #define WM8400_GPIO6_IRQ_ENA_WIDTH 1
259 #define WM8400_GPIO6_PU 0x2000
260 #define WM8400_GPIO6_PU_MASK 0x2000
261 #define WM8400_GPIO6_PU_SHIFT 13
262 #define WM8400_GPIO6_PU_WIDTH 1
263 #define WM8400_GPIO6_PD 0x1000
264 #define WM8400_GPIO6_PD_MASK 0x1000
265 #define WM8400_GPIO6_PD_SHIFT 12
266 #define WM8400_GPIO6_PD_WIDTH 1
267 #define WM8400_GPIO6_SEL_MASK 0x0F00
268 #define WM8400_GPIO6_SEL_SHIFT 8
269 #define WM8400_GPIO6_SEL_WIDTH 4
270 #define WM8400_GPIO5_DEB_ENA 0x0080
271 #define WM8400_GPIO5_DEB_ENA_MASK 0x0080
272 #define WM8400_GPIO5_DEB_ENA_SHIFT 7
273 #define WM8400_GPIO5_DEB_ENA_WIDTH 1
274 #define WM8400_GPIO5_IRQ_ENA 0x0040
275 #define WM8400_GPIO5_IRQ_ENA_MASK 0x0040
276 #define WM8400_GPIO5_IRQ_ENA_SHIFT 6
277 #define WM8400_GPIO5_IRQ_ENA_WIDTH 1
278 #define WM8400_GPIO5_PU 0x0020
279 #define WM8400_GPIO5_PU_MASK 0x0020
280 #define WM8400_GPIO5_PU_SHIFT 5
281 #define WM8400_GPIO5_PU_WIDTH 1
282 #define WM8400_GPIO5_PD 0x0010
283 #define WM8400_GPIO5_PD_MASK 0x0010
284 #define WM8400_GPIO5_PD_SHIFT 4
285 #define WM8400_GPIO5_PD_WIDTH 1
286 #define WM8400_GPIO5_SEL_MASK 0x000F
287 #define WM8400_GPIO5_SEL_SHIFT 0
288 #define WM8400_GPIO5_SEL_WIDTH 4
293 #define WM8400_TEMPOK_IRQ_ENA 0x0800
294 #define WM8400_TEMPOK_IRQ_ENA_MASK 0x0800
295 #define WM8400_TEMPOK_IRQ_ENA_SHIFT 11
296 #define WM8400_TEMPOK_IRQ_ENA_WIDTH 1
297 #define WM8400_MIC1SHRT_IRQ_ENA 0x0400
298 #define WM8400_MIC1SHRT_IRQ_ENA_MASK 0x0400
299 #define WM8400_MIC1SHRT_IRQ_ENA_SHIFT 10
300 #define WM8400_MIC1SHRT_IRQ_ENA_WIDTH 1
301 #define WM8400_MIC1DET_IRQ_ENA 0x0200
302 #define WM8400_MIC1DET_IRQ_ENA_MASK 0x0200
303 #define WM8400_MIC1DET_IRQ_ENA_SHIFT 9
304 #define WM8400_MIC1DET_IRQ_ENA_WIDTH 1
305 #define WM8400_FLL_LCK_IRQ_ENA 0x0100
306 #define WM8400_FLL_LCK_IRQ_ENA_MASK 0x0100
307 #define WM8400_FLL_LCK_IRQ_ENA_SHIFT 8
308 #define WM8400_FLL_LCK_IRQ_ENA_WIDTH 1
309 #define WM8400_GPI8_DEB_ENA 0x0080
310 #define WM8400_GPI8_DEB_ENA_MASK 0x0080
311 #define WM8400_GPI8_DEB_ENA_SHIFT 7
312 #define WM8400_GPI8_DEB_ENA_WIDTH 1
313 #define WM8400_GPI8_IRQ_ENA 0x0040
314 #define WM8400_GPI8_IRQ_ENA_MASK 0x0040
315 #define WM8400_GPI8_IRQ_ENA_SHIFT 6
316 #define WM8400_GPI8_IRQ_ENA_WIDTH 1
317 #define WM8400_GPI8_ENA 0x0010
318 #define WM8400_GPI8_ENA_MASK 0x0010
319 #define WM8400_GPI8_ENA_SHIFT 4
320 #define WM8400_GPI8_ENA_WIDTH 1
321 #define WM8400_GPI7_DEB_ENA 0x0008
322 #define WM8400_GPI7_DEB_ENA_MASK 0x0008
323 #define WM8400_GPI7_DEB_ENA_SHIFT 3
324 #define WM8400_GPI7_DEB_ENA_WIDTH 1
325 #define WM8400_GPI7_IRQ_ENA 0x0004
326 #define WM8400_GPI7_IRQ_ENA_MASK 0x0004
327 #define WM8400_GPI7_IRQ_ENA_SHIFT 2
328 #define WM8400_GPI7_IRQ_ENA_WIDTH 1
329 #define WM8400_GPI7_ENA 0x0001
330 #define WM8400_GPI7_ENA_MASK 0x0001
331 #define WM8400_GPI7_ENA_SHIFT 0
332 #define WM8400_GPI7_ENA_WIDTH 1
337 #define WM8400_IRQ_INV 0x1000
338 #define WM8400_IRQ_INV_MASK 0x1000
339 #define WM8400_IRQ_INV_SHIFT 12
340 #define WM8400_IRQ_INV_WIDTH 1
341 #define WM8400_TEMPOK_POL 0x0800
342 #define WM8400_TEMPOK_POL_MASK 0x0800
343 #define WM8400_TEMPOK_POL_SHIFT 11
344 #define WM8400_TEMPOK_POL_WIDTH 1
345 #define WM8400_MIC1SHRT_POL 0x0400
346 #define WM8400_MIC1SHRT_POL_MASK 0x0400
347 #define WM8400_MIC1SHRT_POL_SHIFT 10
348 #define WM8400_MIC1SHRT_POL_WIDTH 1
349 #define WM8400_MIC1DET_POL 0x0200
350 #define WM8400_MIC1DET_POL_MASK 0x0200
351 #define WM8400_MIC1DET_POL_SHIFT 9
352 #define WM8400_MIC1DET_POL_WIDTH 1
353 #define WM8400_FLL_LCK_POL 0x0100
354 #define WM8400_FLL_LCK_POL_MASK 0x0100
355 #define WM8400_FLL_LCK_POL_SHIFT 8
356 #define WM8400_FLL_LCK_POL_WIDTH 1
357 #define WM8400_GPIO_POL_MASK 0x00FF
358 #define WM8400_GPIO_POL_SHIFT 0
359 #define WM8400_GPIO_POL_WIDTH 8
364 #define WM8400_LDO1_ENA 0x8000
365 #define WM8400_LDO1_ENA_MASK 0x8000
366 #define WM8400_LDO1_ENA_SHIFT 15
367 #define WM8400_LDO1_ENA_WIDTH 1
368 #define WM8400_LDO1_SWI 0x4000
369 #define WM8400_LDO1_SWI_MASK 0x4000
370 #define WM8400_LDO1_SWI_SHIFT 14
371 #define WM8400_LDO1_SWI_WIDTH 1
372 #define WM8400_LDO1_OPFLT 0x1000
373 #define WM8400_LDO1_OPFLT_MASK 0x1000
374 #define WM8400_LDO1_OPFLT_SHIFT 12
375 #define WM8400_LDO1_OPFLT_WIDTH 1
376 #define WM8400_LDO1_ERRACT 0x0800
377 #define WM8400_LDO1_ERRACT_MASK 0x0800
378 #define WM8400_LDO1_ERRACT_SHIFT 11
379 #define WM8400_LDO1_ERRACT_WIDTH 1
380 #define WM8400_LDO1_HIB_MODE 0x0400
381 #define WM8400_LDO1_HIB_MODE_MASK 0x0400
382 #define WM8400_LDO1_HIB_MODE_SHIFT 10
383 #define WM8400_LDO1_HIB_MODE_WIDTH 1
384 #define WM8400_LDO1_VIMG_MASK 0x03E0
385 #define WM8400_LDO1_VIMG_SHIFT 5
386 #define WM8400_LDO1_VIMG_WIDTH 5
387 #define WM8400_LDO1_VSEL_MASK 0x001F
388 #define WM8400_LDO1_VSEL_SHIFT 0
389 #define WM8400_LDO1_VSEL_WIDTH 5
394 #define WM8400_LDO2_ENA 0x8000
395 #define WM8400_LDO2_ENA_MASK 0x8000
396 #define WM8400_LDO2_ENA_SHIFT 15
397 #define WM8400_LDO2_ENA_WIDTH 1
398 #define WM8400_LDO2_SWI 0x4000
399 #define WM8400_LDO2_SWI_MASK 0x4000
400 #define WM8400_LDO2_SWI_SHIFT 14
401 #define WM8400_LDO2_SWI_WIDTH 1
402 #define WM8400_LDO2_OPFLT 0x1000
403 #define WM8400_LDO2_OPFLT_MASK 0x1000
404 #define WM8400_LDO2_OPFLT_SHIFT 12
405 #define WM8400_LDO2_OPFLT_WIDTH 1
406 #define WM8400_LDO2_ERRACT 0x0800
407 #define WM8400_LDO2_ERRACT_MASK 0x0800
408 #define WM8400_LDO2_ERRACT_SHIFT 11
409 #define WM8400_LDO2_ERRACT_WIDTH 1
410 #define WM8400_LDO2_HIB_MODE 0x0400
411 #define WM8400_LDO2_HIB_MODE_MASK 0x0400
412 #define WM8400_LDO2_HIB_MODE_SHIFT 10
413 #define WM8400_LDO2_HIB_MODE_WIDTH 1
414 #define WM8400_LDO2_VIMG_MASK 0x03E0
415 #define WM8400_LDO2_VIMG_SHIFT 5
416 #define WM8400_LDO2_VIMG_WIDTH 5
417 #define WM8400_LDO2_VSEL_MASK 0x001F
418 #define WM8400_LDO2_VSEL_SHIFT 0
419 #define WM8400_LDO2_VSEL_WIDTH 5
424 #define WM8400_LDO3_ENA 0x8000
425 #define WM8400_LDO3_ENA_MASK 0x8000
426 #define WM8400_LDO3_ENA_SHIFT 15
427 #define WM8400_LDO3_ENA_WIDTH 1
428 #define WM8400_LDO3_SWI 0x4000
429 #define WM8400_LDO3_SWI_MASK 0x4000
430 #define WM8400_LDO3_SWI_SHIFT 14
431 #define WM8400_LDO3_SWI_WIDTH 1
432 #define WM8400_LDO3_OPFLT 0x1000
433 #define WM8400_LDO3_OPFLT_MASK 0x1000
434 #define WM8400_LDO3_OPFLT_SHIFT 12
435 #define WM8400_LDO3_OPFLT_WIDTH 1
436 #define WM8400_LDO3_ERRACT 0x0800
437 #define WM8400_LDO3_ERRACT_MASK 0x0800
438 #define WM8400_LDO3_ERRACT_SHIFT 11
439 #define WM8400_LDO3_ERRACT_WIDTH 1
440 #define WM8400_LDO3_HIB_MODE 0x0400
441 #define WM8400_LDO3_HIB_MODE_MASK 0x0400
442 #define WM8400_LDO3_HIB_MODE_SHIFT 10
443 #define WM8400_LDO3_HIB_MODE_WIDTH 1
444 #define WM8400_LDO3_VIMG_MASK 0x03E0
445 #define WM8400_LDO3_VIMG_SHIFT 5
446 #define WM8400_LDO3_VIMG_WIDTH 5
447 #define WM8400_LDO3_VSEL_MASK 0x001F
448 #define WM8400_LDO3_VSEL_SHIFT 0
449 #define WM8400_LDO3_VSEL_WIDTH 5
454 #define WM8400_LDO4_ENA 0x8000
455 #define WM8400_LDO4_ENA_MASK 0x8000
456 #define WM8400_LDO4_ENA_SHIFT 15
457 #define WM8400_LDO4_ENA_WIDTH 1
458 #define WM8400_LDO4_SWI 0x4000
459 #define WM8400_LDO4_SWI_MASK 0x4000
460 #define WM8400_LDO4_SWI_SHIFT 14
461 #define WM8400_LDO4_SWI_WIDTH 1
462 #define WM8400_LDO4_OPFLT 0x1000
463 #define WM8400_LDO4_OPFLT_MASK 0x1000
464 #define WM8400_LDO4_OPFLT_SHIFT 12
465 #define WM8400_LDO4_OPFLT_WIDTH 1
466 #define WM8400_LDO4_ERRACT 0x0800
467 #define WM8400_LDO4_ERRACT_MASK 0x0800
468 #define WM8400_LDO4_ERRACT_SHIFT 11
469 #define WM8400_LDO4_ERRACT_WIDTH 1
470 #define WM8400_LDO4_HIB_MODE 0x0400
471 #define WM8400_LDO4_HIB_MODE_MASK 0x0400
472 #define WM8400_LDO4_HIB_MODE_SHIFT 10
473 #define WM8400_LDO4_HIB_MODE_WIDTH 1
474 #define WM8400_LDO4_VIMG_MASK 0x03E0
475 #define WM8400_LDO4_VIMG_SHIFT 5
476 #define WM8400_LDO4_VIMG_WIDTH 5
477 #define WM8400_LDO4_VSEL_MASK 0x001F
478 #define WM8400_LDO4_VSEL_SHIFT 0
479 #define WM8400_LDO4_VSEL_WIDTH 5
484 #define WM8400_DC1_ENA 0x8000
485 #define WM8400_DC1_ENA_MASK 0x8000
486 #define WM8400_DC1_ENA_SHIFT 15
487 #define WM8400_DC1_ENA_WIDTH 1
488 #define WM8400_DC1_ACTIVE 0x4000
489 #define WM8400_DC1_ACTIVE_MASK 0x4000
490 #define WM8400_DC1_ACTIVE_SHIFT 14
491 #define WM8400_DC1_ACTIVE_WIDTH 1
492 #define WM8400_DC1_SLEEP 0x2000
493 #define WM8400_DC1_SLEEP_MASK 0x2000
494 #define WM8400_DC1_SLEEP_SHIFT 13
495 #define WM8400_DC1_SLEEP_WIDTH 1
496 #define WM8400_DC1_OPFLT 0x1000
497 #define WM8400_DC1_OPFLT_MASK 0x1000
498 #define WM8400_DC1_OPFLT_SHIFT 12
499 #define WM8400_DC1_OPFLT_WIDTH 1
500 #define WM8400_DC1_ERRACT 0x0800
501 #define WM8400_DC1_ERRACT_MASK 0x0800
502 #define WM8400_DC1_ERRACT_SHIFT 11
503 #define WM8400_DC1_ERRACT_WIDTH 1
504 #define WM8400_DC1_HIB_MODE 0x0400
505 #define WM8400_DC1_HIB_MODE_MASK 0x0400
506 #define WM8400_DC1_HIB_MODE_SHIFT 10
507 #define WM8400_DC1_HIB_MODE_WIDTH 1
508 #define WM8400_DC1_SOFTST_MASK 0x0300
509 #define WM8400_DC1_SOFTST_SHIFT 8
510 #define WM8400_DC1_SOFTST_WIDTH 2
511 #define WM8400_DC1_OV_PROT 0x0080
512 #define WM8400_DC1_OV_PROT_MASK 0x0080
513 #define WM8400_DC1_OV_PROT_SHIFT 7
514 #define WM8400_DC1_OV_PROT_WIDTH 1
515 #define WM8400_DC1_VSEL_MASK 0x007F
516 #define WM8400_DC1_VSEL_SHIFT 0
517 #define WM8400_DC1_VSEL_WIDTH 7
522 #define WM8400_DC1_FRC_PWM 0x2000
523 #define WM8400_DC1_FRC_PWM_MASK 0x2000
524 #define WM8400_DC1_FRC_PWM_SHIFT 13
525 #define WM8400_DC1_FRC_PWM_WIDTH 1
526 #define WM8400_DC1_STBY_LIM_MASK 0x0300
527 #define WM8400_DC1_STBY_LIM_SHIFT 8
528 #define WM8400_DC1_STBY_LIM_WIDTH 2
529 #define WM8400_DC1_ACT_LIM 0x0080
530 #define WM8400_DC1_ACT_LIM_MASK 0x0080
531 #define WM8400_DC1_ACT_LIM_SHIFT 7
532 #define WM8400_DC1_ACT_LIM_WIDTH 1
533 #define WM8400_DC1_VIMG_MASK 0x007F
534 #define WM8400_DC1_VIMG_SHIFT 0
535 #define WM8400_DC1_VIMG_WIDTH 7
540 #define WM8400_DC2_ENA 0x8000
541 #define WM8400_DC2_ENA_MASK 0x8000
542 #define WM8400_DC2_ENA_SHIFT 15
543 #define WM8400_DC2_ENA_WIDTH 1
544 #define WM8400_DC2_ACTIVE 0x4000
545 #define WM8400_DC2_ACTIVE_MASK 0x4000
546 #define WM8400_DC2_ACTIVE_SHIFT 14
547 #define WM8400_DC2_ACTIVE_WIDTH 1
548 #define WM8400_DC2_SLEEP 0x2000
549 #define WM8400_DC2_SLEEP_MASK 0x2000
550 #define WM8400_DC2_SLEEP_SHIFT 13
551 #define WM8400_DC2_SLEEP_WIDTH 1
552 #define WM8400_DC2_OPFLT 0x1000
553 #define WM8400_DC2_OPFLT_MASK 0x1000
554 #define WM8400_DC2_OPFLT_SHIFT 12
555 #define WM8400_DC2_OPFLT_WIDTH 1
556 #define WM8400_DC2_ERRACT 0x0800
557 #define WM8400_DC2_ERRACT_MASK 0x0800
558 #define WM8400_DC2_ERRACT_SHIFT 11
559 #define WM8400_DC2_ERRACT_WIDTH 1
560 #define WM8400_DC2_HIB_MODE 0x0400
561 #define WM8400_DC2_HIB_MODE_MASK 0x0400
562 #define WM8400_DC2_HIB_MODE_SHIFT 10
563 #define WM8400_DC2_HIB_MODE_WIDTH 1
564 #define WM8400_DC2_SOFTST_MASK 0x0300
565 #define WM8400_DC2_SOFTST_SHIFT 8
566 #define WM8400_DC2_SOFTST_WIDTH 2
567 #define WM8400_DC2_OV_PROT 0x0080
568 #define WM8400_DC2_OV_PROT_MASK 0x0080
569 #define WM8400_DC2_OV_PROT_SHIFT 7
570 #define WM8400_DC2_OV_PROT_WIDTH 1
571 #define WM8400_DC2_VSEL_MASK 0x007F
572 #define WM8400_DC2_VSEL_SHIFT 0
573 #define WM8400_DC2_VSEL_WIDTH 7
578 #define WM8400_DC2_FRC_PWM 0x2000
579 #define WM8400_DC2_FRC_PWM_MASK 0x2000
580 #define WM8400_DC2_FRC_PWM_SHIFT 13
581 #define WM8400_DC2_FRC_PWM_WIDTH 1
582 #define WM8400_DC2_STBY_LIM_MASK 0x0300
583 #define WM8400_DC2_STBY_LIM_SHIFT 8
584 #define WM8400_DC2_STBY_LIM_WIDTH 2
585 #define WM8400_DC2_ACT_LIM 0x0080
586 #define WM8400_DC2_ACT_LIM_MASK 0x0080
587 #define WM8400_DC2_ACT_LIM_SHIFT 7
588 #define WM8400_DC2_ACT_LIM_WIDTH 1
589 #define WM8400_DC2_VIMG_MASK 0x007F
590 #define WM8400_DC2_VIMG_SHIFT 0
591 #define WM8400_DC2_VIMG_WIDTH 7
596 #define WM8400_AUTOINC 0x0008
597 #define WM8400_AUTOINC_MASK 0x0008
598 #define WM8400_AUTOINC_SHIFT 3
599 #define WM8400_AUTOINC_WIDTH 1
600 #define WM8400_ARA_ENA 0x0004
601 #define WM8400_ARA_ENA_MASK 0x0004
602 #define WM8400_ARA_ENA_SHIFT 2
603 #define WM8400_ARA_ENA_WIDTH 1
604 #define WM8400_SPI_CFG 0x0002
605 #define WM8400_SPI_CFG_MASK 0x0002
606 #define WM8400_SPI_CFG_SHIFT 1
607 #define WM8400_SPI_CFG_WIDTH 1
612 #define WM8400_CODEC_SOFTST 0x8000
613 #define WM8400_CODEC_SOFTST_MASK 0x8000
614 #define WM8400_CODEC_SOFTST_SHIFT 15
615 #define WM8400_CODEC_SOFTST_WIDTH 1
616 #define WM8400_CODEC_SOFTSD 0x4000
617 #define WM8400_CODEC_SOFTSD_MASK 0x4000
618 #define WM8400_CODEC_SOFTSD_SHIFT 14
619 #define WM8400_CODEC_SOFTSD_WIDTH 1
620 #define WM8400_CHIP_SOFTSD 0x2000
621 #define WM8400_CHIP_SOFTSD_MASK 0x2000
622 #define WM8400_CHIP_SOFTSD_SHIFT 13
623 #define WM8400_CHIP_SOFTSD_WIDTH 1
624 #define WM8400_DSLEEP1_POL 0x0008
625 #define WM8400_DSLEEP1_POL_MASK 0x0008
626 #define WM8400_DSLEEP1_POL_SHIFT 3
627 #define WM8400_DSLEEP1_POL_WIDTH 1
628 #define WM8400_DSLEEP2_POL 0x0004
629 #define WM8400_DSLEEP2_POL_MASK 0x0004
630 #define WM8400_DSLEEP2_POL_SHIFT 2
631 #define WM8400_DSLEEP2_POL_WIDTH 1
632 #define WM8400_PWR_STATE_MASK 0x0003
633 #define WM8400_PWR_STATE_SHIFT 0
634 #define WM8400_PWR_STATE_WIDTH 2
639 #define WM8400_CHIP_GT150_ERRACT 0x0200
640 #define WM8400_CHIP_GT150_ERRACT_MASK 0x0200
641 #define WM8400_CHIP_GT150_ERRACT_SHIFT 9
642 #define WM8400_CHIP_GT150_ERRACT_WIDTH 1
643 #define WM8400_CHIP_GT115_ERRACT 0x0100
644 #define WM8400_CHIP_GT115_ERRACT_MASK 0x0100
645 #define WM8400_CHIP_GT115_ERRACT_SHIFT 8
646 #define WM8400_CHIP_GT115_ERRACT_WIDTH 1
647 #define WM8400_LINE_CMP_ERRACT 0x0080
648 #define WM8400_LINE_CMP_ERRACT_MASK 0x0080
649 #define WM8400_LINE_CMP_ERRACT_SHIFT 7
650 #define WM8400_LINE_CMP_ERRACT_WIDTH 1
651 #define WM8400_UVLO_ERRACT 0x0040
652 #define WM8400_UVLO_ERRACT_MASK 0x0040
653 #define WM8400_UVLO_ERRACT_SHIFT 6
654 #define WM8400_UVLO_ERRACT_WIDTH 1
659 #define WM8400_MICD_CINT 0x8000
660 #define WM8400_MICD_CINT_MASK 0x8000
661 #define WM8400_MICD_CINT_SHIFT 15
662 #define WM8400_MICD_CINT_WIDTH 1
663 #define WM8400_MICSCD_CINT 0x4000
664 #define WM8400_MICSCD_CINT_MASK 0x4000
665 #define WM8400_MICSCD_CINT_SHIFT 14
666 #define WM8400_MICSCD_CINT_WIDTH 1
667 #define WM8400_JDL_CINT 0x2000
668 #define WM8400_JDL_CINT_MASK 0x2000
669 #define WM8400_JDL_CINT_SHIFT 13
670 #define WM8400_JDL_CINT_WIDTH 1
671 #define WM8400_JDR_CINT 0x1000
672 #define WM8400_JDR_CINT_MASK 0x1000
673 #define WM8400_JDR_CINT_SHIFT 12
674 #define WM8400_JDR_CINT_WIDTH 1
675 #define WM8400_CODEC_SEQ_END_EINT 0x0800
676 #define WM8400_CODEC_SEQ_END_EINT_MASK 0x0800
677 #define WM8400_CODEC_SEQ_END_EINT_SHIFT 11
678 #define WM8400_CODEC_SEQ_END_EINT_WIDTH 1
679 #define WM8400_CDEL_TO_EINT 0x0400
680 #define WM8400_CDEL_TO_EINT_MASK 0x0400
681 #define WM8400_CDEL_TO_EINT_SHIFT 10
682 #define WM8400_CDEL_TO_EINT_WIDTH 1
683 #define WM8400_CHIP_GT150_EINT 0x0200
684 #define WM8400_CHIP_GT150_EINT_MASK 0x0200
685 #define WM8400_CHIP_GT150_EINT_SHIFT 9
686 #define WM8400_CHIP_GT150_EINT_WIDTH 1
687 #define WM8400_CHIP_GT115_EINT 0x0100
688 #define WM8400_CHIP_GT115_EINT_MASK 0x0100
689 #define WM8400_CHIP_GT115_EINT_SHIFT 8
690 #define WM8400_CHIP_GT115_EINT_WIDTH 1
691 #define WM8400_LINE_CMP_EINT 0x0080
692 #define WM8400_LINE_CMP_EINT_MASK 0x0080
693 #define WM8400_LINE_CMP_EINT_SHIFT 7
694 #define WM8400_LINE_CMP_EINT_WIDTH 1
695 #define WM8400_UVLO_EINT 0x0040
696 #define WM8400_UVLO_EINT_MASK 0x0040
697 #define WM8400_UVLO_EINT_SHIFT 6
698 #define WM8400_UVLO_EINT_WIDTH 1
699 #define WM8400_DC2_UV_EINT 0x0020
700 #define WM8400_DC2_UV_EINT_MASK 0x0020
701 #define WM8400_DC2_UV_EINT_SHIFT 5
702 #define WM8400_DC2_UV_EINT_WIDTH 1
703 #define WM8400_DC1_UV_EINT 0x0010
704 #define WM8400_DC1_UV_EINT_MASK 0x0010
705 #define WM8400_DC1_UV_EINT_SHIFT 4
706 #define WM8400_DC1_UV_EINT_WIDTH 1
707 #define WM8400_LDO4_UV_EINT 0x0008
708 #define WM8400_LDO4_UV_EINT_MASK 0x0008
709 #define WM8400_LDO4_UV_EINT_SHIFT 3
710 #define WM8400_LDO4_UV_EINT_WIDTH 1
711 #define WM8400_LDO3_UV_EINT 0x0004
712 #define WM8400_LDO3_UV_EINT_MASK 0x0004
713 #define WM8400_LDO3_UV_EINT_SHIFT 2
714 #define WM8400_LDO3_UV_EINT_WIDTH 1
715 #define WM8400_LDO2_UV_EINT 0x0002
716 #define WM8400_LDO2_UV_EINT_MASK 0x0002
717 #define WM8400_LDO2_UV_EINT_SHIFT 1
718 #define WM8400_LDO2_UV_EINT_WIDTH 1
719 #define WM8400_LDO1_UV_EINT 0x0001
720 #define WM8400_LDO1_UV_EINT_MASK 0x0001
721 #define WM8400_LDO1_UV_EINT_SHIFT 0
722 #define WM8400_LDO1_UV_EINT_WIDTH 1
727 #define WM8400_IM_MICD_CINT 0x8000
728 #define WM8400_IM_MICD_CINT_MASK 0x8000
729 #define WM8400_IM_MICD_CINT_SHIFT 15
730 #define WM8400_IM_MICD_CINT_WIDTH 1
731 #define WM8400_IM_MICSCD_CINT 0x4000
732 #define WM8400_IM_MICSCD_CINT_MASK 0x4000
733 #define WM8400_IM_MICSCD_CINT_SHIFT 14
734 #define WM8400_IM_MICSCD_CINT_WIDTH 1
735 #define WM8400_IM_JDL_CINT 0x2000
736 #define WM8400_IM_JDL_CINT_MASK 0x2000
737 #define WM8400_IM_JDL_CINT_SHIFT 13
738 #define WM8400_IM_JDL_CINT_WIDTH 1
739 #define WM8400_IM_JDR_CINT 0x1000
740 #define WM8400_IM_JDR_CINT_MASK 0x1000
741 #define WM8400_IM_JDR_CINT_SHIFT 12
742 #define WM8400_IM_JDR_CINT_WIDTH 1
743 #define WM8400_IM_CODEC_SEQ_END_EINT 0x0800
744 #define WM8400_IM_CODEC_SEQ_END_EINT_MASK 0x0800
745 #define WM8400_IM_CODEC_SEQ_END_EINT_SHIFT 11
746 #define WM8400_IM_CODEC_SEQ_END_EINT_WIDTH 1
747 #define WM8400_IM_CDEL_TO_EINT 0x0400
748 #define WM8400_IM_CDEL_TO_EINT_MASK 0x0400
749 #define WM8400_IM_CDEL_TO_EINT_SHIFT 10
750 #define WM8400_IM_CDEL_TO_EINT_WIDTH 1
751 #define WM8400_IM_CHIP_GT150_EINT 0x0200
752 #define WM8400_IM_CHIP_GT150_EINT_MASK 0x0200
753 #define WM8400_IM_CHIP_GT150_EINT_SHIFT 9
754 #define WM8400_IM_CHIP_GT150_EINT_WIDTH 1
755 #define WM8400_IM_CHIP_GT115_EINT 0x0100
756 #define WM8400_IM_CHIP_GT115_EINT_MASK 0x0100
757 #define WM8400_IM_CHIP_GT115_EINT_SHIFT 8
758 #define WM8400_IM_CHIP_GT115_EINT_WIDTH 1
759 #define WM8400_IM_LINE_CMP_EINT 0x0080
760 #define WM8400_IM_LINE_CMP_EINT_MASK 0x0080
761 #define WM8400_IM_LINE_CMP_EINT_SHIFT 7
762 #define WM8400_IM_LINE_CMP_EINT_WIDTH 1
763 #define WM8400_IM_UVLO_EINT 0x0040
764 #define WM8400_IM_UVLO_EINT_MASK 0x0040
765 #define WM8400_IM_UVLO_EINT_SHIFT 6
766 #define WM8400_IM_UVLO_EINT_WIDTH 1
767 #define WM8400_IM_DC2_UV_EINT 0x0020
768 #define WM8400_IM_DC2_UV_EINT_MASK 0x0020
769 #define WM8400_IM_DC2_UV_EINT_SHIFT 5
770 #define WM8400_IM_DC2_UV_EINT_WIDTH 1
771 #define WM8400_IM_DC1_UV_EINT 0x0010
772 #define WM8400_IM_DC1_UV_EINT_MASK 0x0010
773 #define WM8400_IM_DC1_UV_EINT_SHIFT 4
774 #define WM8400_IM_DC1_UV_EINT_WIDTH 1
775 #define WM8400_IM_LDO4_UV_EINT 0x0008
776 #define WM8400_IM_LDO4_UV_EINT_MASK 0x0008
777 #define WM8400_IM_LDO4_UV_EINT_SHIFT 3
778 #define WM8400_IM_LDO4_UV_EINT_WIDTH 1
779 #define WM8400_IM_LDO3_UV_EINT 0x0004
780 #define WM8400_IM_LDO3_UV_EINT_MASK 0x0004
781 #define WM8400_IM_LDO3_UV_EINT_SHIFT 2
782 #define WM8400_IM_LDO3_UV_EINT_WIDTH 1
783 #define WM8400_IM_LDO2_UV_EINT 0x0002
784 #define WM8400_IM_LDO2_UV_EINT_MASK 0x0002
785 #define WM8400_IM_LDO2_UV_EINT_SHIFT 1
786 #define WM8400_IM_LDO2_UV_EINT_WIDTH 1
787 #define WM8400_IM_LDO1_UV_EINT 0x0001
788 #define WM8400_IM_LDO1_UV_EINT_MASK 0x0001
789 #define WM8400_IM_LDO1_UV_EINT_SHIFT 0
790 #define WM8400_IM_LDO1_UV_EINT_WIDTH 1
795 #define WM8400_MICD_LVL 0x8000
796 #define WM8400_MICD_LVL_MASK 0x8000
797 #define WM8400_MICD_LVL_SHIFT 15
798 #define WM8400_MICD_LVL_WIDTH 1
799 #define WM8400_MICSCD_LVL 0x4000
800 #define WM8400_MICSCD_LVL_MASK 0x4000
801 #define WM8400_MICSCD_LVL_SHIFT 14
802 #define WM8400_MICSCD_LVL_WIDTH 1
803 #define WM8400_JDL_LVL 0x2000
804 #define WM8400_JDL_LVL_MASK 0x2000
805 #define WM8400_JDL_LVL_SHIFT 13
806 #define WM8400_JDL_LVL_WIDTH 1
807 #define WM8400_JDR_LVL 0x1000
808 #define WM8400_JDR_LVL_MASK 0x1000
809 #define WM8400_JDR_LVL_SHIFT 12
810 #define WM8400_JDR_LVL_WIDTH 1
811 #define WM8400_CODEC_SEQ_END_LVL 0x0800
812 #define WM8400_CODEC_SEQ_END_LVL_MASK 0x0800
813 #define WM8400_CODEC_SEQ_END_LVL_SHIFT 11
814 #define WM8400_CODEC_SEQ_END_LVL_WIDTH 1
815 #define WM8400_CDEL_TO_LVL 0x0400
816 #define WM8400_CDEL_TO_LVL_MASK 0x0400
817 #define WM8400_CDEL_TO_LVL_SHIFT 10
818 #define WM8400_CDEL_TO_LVL_WIDTH 1
819 #define WM8400_CHIP_GT150_LVL 0x0200
820 #define WM8400_CHIP_GT150_LVL_MASK 0x0200
821 #define WM8400_CHIP_GT150_LVL_SHIFT 9
822 #define WM8400_CHIP_GT150_LVL_WIDTH 1
823 #define WM8400_CHIP_GT115_LVL 0x0100
824 #define WM8400_CHIP_GT115_LVL_MASK 0x0100
825 #define WM8400_CHIP_GT115_LVL_SHIFT 8
826 #define WM8400_CHIP_GT115_LVL_WIDTH 1
827 #define WM8400_LINE_CMP_LVL 0x0080
828 #define WM8400_LINE_CMP_LVL_MASK 0x0080
829 #define WM8400_LINE_CMP_LVL_SHIFT 7
830 #define WM8400_LINE_CMP_LVL_WIDTH 1
831 #define WM8400_UVLO_LVL 0x0040
832 #define WM8400_UVLO_LVL_MASK 0x0040
833 #define WM8400_UVLO_LVL_SHIFT 6
834 #define WM8400_UVLO_LVL_WIDTH 1
835 #define WM8400_DC2_UV_LVL 0x0020
836 #define WM8400_DC2_UV_LVL_MASK 0x0020
837 #define WM8400_DC2_UV_LVL_SHIFT 5
838 #define WM8400_DC2_UV_LVL_WIDTH 1
839 #define WM8400_DC1_UV_LVL 0x0010
840 #define WM8400_DC1_UV_LVL_MASK 0x0010
841 #define WM8400_DC1_UV_LVL_SHIFT 4
842 #define WM8400_DC1_UV_LVL_WIDTH 1
843 #define WM8400_LDO4_UV_LVL 0x0008
844 #define WM8400_LDO4_UV_LVL_MASK 0x0008
845 #define WM8400_LDO4_UV_LVL_SHIFT 3
846 #define WM8400_LDO4_UV_LVL_WIDTH 1
847 #define WM8400_LDO3_UV_LVL 0x0004
848 #define WM8400_LDO3_UV_LVL_MASK 0x0004
849 #define WM8400_LDO3_UV_LVL_SHIFT 2
850 #define WM8400_LDO3_UV_LVL_WIDTH 1
851 #define WM8400_LDO2_UV_LVL 0x0002
852 #define WM8400_LDO2_UV_LVL_MASK 0x0002
853 #define WM8400_LDO2_UV_LVL_SHIFT 1
854 #define WM8400_LDO2_UV_LVL_WIDTH 1
855 #define WM8400_LDO1_UV_LVL 0x0001
856 #define WM8400_LDO1_UV_LVL_MASK 0x0001
857 #define WM8400_LDO1_UV_LVL_SHIFT 0
858 #define WM8400_LDO1_UV_LVL_WIDTH 1
863 #define WM8400_SDR_CHIP_SOFTSD 0x2000
864 #define WM8400_SDR_CHIP_SOFTSD_MASK 0x2000
865 #define WM8400_SDR_CHIP_SOFTSD_SHIFT 13
866 #define WM8400_SDR_CHIP_SOFTSD_WIDTH 1
867 #define WM8400_SDR_NPDN 0x0800
868 #define WM8400_SDR_NPDN_MASK 0x0800
869 #define WM8400_SDR_NPDN_SHIFT 11
870 #define WM8400_SDR_NPDN_WIDTH 1
871 #define WM8400_SDR_CHIP_GT150 0x0200
872 #define WM8400_SDR_CHIP_GT150_MASK 0x0200
873 #define WM8400_SDR_CHIP_GT150_SHIFT 9
874 #define WM8400_SDR_CHIP_GT150_WIDTH 1
875 #define WM8400_SDR_CHIP_GT115 0x0100
876 #define WM8400_SDR_CHIP_GT115_MASK 0x0100
877 #define WM8400_SDR_CHIP_GT115_SHIFT 8
878 #define WM8400_SDR_CHIP_GT115_WIDTH 1
879 #define WM8400_SDR_LINE_CMP 0x0080
880 #define WM8400_SDR_LINE_CMP_MASK 0x0080
881 #define WM8400_SDR_LINE_CMP_SHIFT 7
882 #define WM8400_SDR_LINE_CMP_WIDTH 1
883 #define WM8400_SDR_UVLO 0x0040
884 #define WM8400_SDR_UVLO_MASK 0x0040
885 #define WM8400_SDR_UVLO_SHIFT 6
886 #define WM8400_SDR_UVLO_WIDTH 1
887 #define WM8400_SDR_DC2_UV 0x0020
888 #define WM8400_SDR_DC2_UV_MASK 0x0020
889 #define WM8400_SDR_DC2_UV_SHIFT 5
890 #define WM8400_SDR_DC2_UV_WIDTH 1
891 #define WM8400_SDR_DC1_UV 0x0010
892 #define WM8400_SDR_DC1_UV_MASK 0x0010
893 #define WM8400_SDR_DC1_UV_SHIFT 4
894 #define WM8400_SDR_DC1_UV_WIDTH 1
895 #define WM8400_SDR_LDO4_UV 0x0008
896 #define WM8400_SDR_LDO4_UV_MASK 0x0008
897 #define WM8400_SDR_LDO4_UV_SHIFT 3
898 #define WM8400_SDR_LDO4_UV_WIDTH 1
899 #define WM8400_SDR_LDO3_UV 0x0004
900 #define WM8400_SDR_LDO3_UV_MASK 0x0004
901 #define WM8400_SDR_LDO3_UV_SHIFT 2
902 #define WM8400_SDR_LDO3_UV_WIDTH 1
903 #define WM8400_SDR_LDO2_UV 0x0002
904 #define WM8400_SDR_LDO2_UV_MASK 0x0002
905 #define WM8400_SDR_LDO2_UV_SHIFT 1
906 #define WM8400_SDR_LDO2_UV_WIDTH 1
907 #define WM8400_SDR_LDO1_UV 0x0001
908 #define WM8400_SDR_LDO1_UV_MASK 0x0001
909 #define WM8400_SDR_LDO1_UV_SHIFT 0
910 #define WM8400_SDR_LDO1_UV_WIDTH 1
915 #define WM8400_BG_LINE_COMP 0x8000
916 #define WM8400_BG_LINE_COMP_MASK 0x8000
917 #define WM8400_BG_LINE_COMP_SHIFT 15
918 #define WM8400_BG_LINE_COMP_WIDTH 1
919 #define WM8400_LINE_CMP_VTHI_MASK 0x00F0
920 #define WM8400_LINE_CMP_VTHI_SHIFT 4
921 #define WM8400_LINE_CMP_VTHI_WIDTH 4
922 #define WM8400_LINE_CMP_VTHD_MASK 0x000F
923 #define WM8400_LINE_CMP_VTHD_SHIFT 0
924 #define WM8400_LINE_CMP_VTHD_WIDTH 4