Go to the documentation of this file.
13 #ifndef __LINUX_MFD_WM8350_PMIC_H
14 #define __LINUX_MFD_WM8350_PMIC_H
24 #define WM8350_CURRENT_SINK_DRIVER_A 0xAC
25 #define WM8350_CSA_FLASH_CONTROL 0xAD
26 #define WM8350_CURRENT_SINK_DRIVER_B 0xAE
27 #define WM8350_CSB_FLASH_CONTROL 0xAF
28 #define WM8350_DCDC_LDO_REQUESTED 0xB0
29 #define WM8350_DCDC_ACTIVE_OPTIONS 0xB1
30 #define WM8350_DCDC_SLEEP_OPTIONS 0xB2
31 #define WM8350_POWER_CHECK_COMPARATOR 0xB3
32 #define WM8350_DCDC1_CONTROL 0xB4
33 #define WM8350_DCDC1_TIMEOUTS 0xB5
34 #define WM8350_DCDC1_LOW_POWER 0xB6
35 #define WM8350_DCDC2_CONTROL 0xB7
36 #define WM8350_DCDC2_TIMEOUTS 0xB8
37 #define WM8350_DCDC3_CONTROL 0xBA
38 #define WM8350_DCDC3_TIMEOUTS 0xBB
39 #define WM8350_DCDC3_LOW_POWER 0xBC
40 #define WM8350_DCDC4_CONTROL 0xBD
41 #define WM8350_DCDC4_TIMEOUTS 0xBE
42 #define WM8350_DCDC4_LOW_POWER 0xBF
43 #define WM8350_DCDC5_CONTROL 0xC0
44 #define WM8350_DCDC5_TIMEOUTS 0xC1
45 #define WM8350_DCDC6_CONTROL 0xC3
46 #define WM8350_DCDC6_TIMEOUTS 0xC4
47 #define WM8350_DCDC6_LOW_POWER 0xC5
48 #define WM8350_LIMIT_SWITCH_CONTROL 0xC7
49 #define WM8350_LDO1_CONTROL 0xC8
50 #define WM8350_LDO1_TIMEOUTS 0xC9
51 #define WM8350_LDO1_LOW_POWER 0xCA
52 #define WM8350_LDO2_CONTROL 0xCB
53 #define WM8350_LDO2_TIMEOUTS 0xCC
54 #define WM8350_LDO2_LOW_POWER 0xCD
55 #define WM8350_LDO3_CONTROL 0xCE
56 #define WM8350_LDO3_TIMEOUTS 0xCF
57 #define WM8350_LDO3_LOW_POWER 0xD0
58 #define WM8350_LDO4_CONTROL 0xD1
59 #define WM8350_LDO4_TIMEOUTS 0xD2
60 #define WM8350_LDO4_LOW_POWER 0xD3
61 #define WM8350_VCC_FAULT_MASKS 0xD7
62 #define WM8350_MAIN_BANDGAP_CONTROL 0xD8
63 #define WM8350_OSC_CONTROL 0xD9
64 #define WM8350_RTC_TICK_CONTROL 0xDA
65 #define WM8350_SECURITY 0xDB
66 #define WM8350_RAM_BIST_1 0xDC
67 #define WM8350_DCDC_LDO_STATUS 0xE1
68 #define WM8350_GPIO_PIN_STATUS 0xE6
70 #define WM8350_DCDC1_FORCE_PWM 0xF8
71 #define WM8350_DCDC3_FORCE_PWM 0xFA
72 #define WM8350_DCDC4_FORCE_PWM 0xFB
73 #define WM8350_DCDC6_FORCE_PWM 0xFD
78 #define WM8350_CS1_HIB_MODE 0x1000
79 #define WM8350_CS1_HIB_MODE_MASK 0x1000
80 #define WM8350_CS1_HIB_MODE_SHIFT 12
81 #define WM8350_CS1_ISEL_MASK 0x003F
82 #define WM8350_CS1_ISEL_SHIFT 0
85 #define WM8350_CS1_HIB_MODE_DISABLE 0
86 #define WM8350_CS1_HIB_MODE_LEAVE 1
88 #define WM8350_CS1_ISEL_220M 0x3F
93 #define WM8350_CS1_FLASH_MODE 0x8000
94 #define WM8350_CS1_TRIGSRC 0x4000
95 #define WM8350_CS1_DRIVE 0x2000
96 #define WM8350_CS1_FLASH_DUR_MASK 0x0300
97 #define WM8350_CS1_OFF_RAMP_MASK 0x0030
98 #define WM8350_CS1_ON_RAMP_MASK 0x0003
103 #define WM8350_CS2_HIB_MODE 0x1000
104 #define WM8350_CS2_ISEL_MASK 0x003F
109 #define WM8350_CS2_FLASH_MODE 0x8000
110 #define WM8350_CS2_TRIGSRC 0x4000
111 #define WM8350_CS2_DRIVE 0x2000
112 #define WM8350_CS2_FLASH_DUR_MASK 0x0300
113 #define WM8350_CS2_OFF_RAMP_MASK 0x0030
114 #define WM8350_CS2_ON_RAMP_MASK 0x0003
119 #define WM8350_LS_ENA 0x8000
120 #define WM8350_LDO4_ENA 0x0800
121 #define WM8350_LDO3_ENA 0x0400
122 #define WM8350_LDO2_ENA 0x0200
123 #define WM8350_LDO1_ENA 0x0100
124 #define WM8350_DC6_ENA 0x0020
125 #define WM8350_DC5_ENA 0x0010
126 #define WM8350_DC4_ENA 0x0008
127 #define WM8350_DC3_ENA 0x0004
128 #define WM8350_DC2_ENA 0x0002
129 #define WM8350_DC1_ENA 0x0001
134 #define WM8350_PUTO_MASK 0x3000
135 #define WM8350_PWRUP_DELAY_MASK 0x0300
136 #define WM8350_DC6_ACTIVE 0x0020
137 #define WM8350_DC4_ACTIVE 0x0008
138 #define WM8350_DC3_ACTIVE 0x0004
139 #define WM8350_DC1_ACTIVE 0x0001
144 #define WM8350_DC6_SLEEP 0x0020
145 #define WM8350_DC4_SLEEP 0x0008
146 #define WM8350_DC3_SLEEP 0x0004
147 #define WM8350_DC1_SLEEP 0x0001
152 #define WM8350_PCCMP_ERRACT 0x4000
153 #define WM8350_PCCMP_RAIL 0x0100
154 #define WM8350_PCCMP_OFF_THR_MASK 0x0070
155 #define WM8350_PCCMP_ON_THR_MASK 0x0007
160 #define WM8350_DC1_OPFLT 0x0400
161 #define WM8350_DC1_VSEL_MASK 0x007F
162 #define WM8350_DC1_VSEL_SHIFT 0
167 #define WM8350_DC1_ERRACT_MASK 0xC000
168 #define WM8350_DC1_ERRACT_SHIFT 14
169 #define WM8350_DC1_ENSLOT_MASK 0x3C00
170 #define WM8350_DC1_ENSLOT_SHIFT 10
171 #define WM8350_DC1_SDSLOT_MASK 0x03C0
172 #define WM8350_DC1_UVTO_MASK 0x0030
173 #define WM8350_DC1_SDSLOT_SHIFT 6
176 #define WM8350_DC1_ERRACT_NONE 0
177 #define WM8350_DC1_ERRACT_SHUTDOWN_CONV 1
178 #define WM8350_DC1_ERRACT_SHUTDOWN_SYS 2
183 #define WM8350_DC1_HIB_MODE_MASK 0x7000
184 #define WM8350_DC1_HIB_TRIG_MASK 0x0300
185 #define WM8350_DC1_VIMG_MASK 0x007F
190 #define WM8350_DC2_MODE 0x4000
191 #define WM8350_DC2_MODE_MASK 0x4000
192 #define WM8350_DC2_MODE_SHIFT 14
193 #define WM8350_DC2_HIB_MODE 0x1000
194 #define WM8350_DC2_HIB_MODE_MASK 0x1000
195 #define WM8350_DC2_HIB_MODE_SHIFT 12
196 #define WM8350_DC2_HIB_TRIG_MASK 0x0300
197 #define WM8350_DC2_HIB_TRIG_SHIFT 8
198 #define WM8350_DC2_ILIM 0x0040
199 #define WM8350_DC2_ILIM_MASK 0x0040
200 #define WM8350_DC2_ILIM_SHIFT 6
201 #define WM8350_DC2_RMP_MASK 0x0018
202 #define WM8350_DC2_RMP_SHIFT 3
203 #define WM8350_DC2_FBSRC_MASK 0x0003
204 #define WM8350_DC2_FBSRC_SHIFT 0
207 #define WM8350_DC2_MODE_BOOST 0
208 #define WM8350_DC2_MODE_SWITCH 1
210 #define WM8350_DC2_HIB_MODE_ACTIVE 1
211 #define WM8350_DC2_HIB_MODE_DISABLE 0
213 #define WM8350_DC2_HIB_TRIG_NONE 0
214 #define WM8350_DC2_HIB_TRIG_LPWR1 1
215 #define WM8350_DC2_HIB_TRIG_LPWR2 2
216 #define WM8350_DC2_HIB_TRIG_LPWR3 3
218 #define WM8350_DC2_ILIM_HIGH 0
219 #define WM8350_DC2_ILIM_LOW 1
221 #define WM8350_DC2_RMP_30V 0
222 #define WM8350_DC2_RMP_20V 1
223 #define WM8350_DC2_RMP_10V 2
224 #define WM8350_DC2_RMP_5V 3
226 #define WM8350_DC2_FBSRC_FB2 0
227 #define WM8350_DC2_FBSRC_ISINKA 1
228 #define WM8350_DC2_FBSRC_ISINKB 2
229 #define WM8350_DC2_FBSRC_USB 3
234 #define WM8350_DC2_ERRACT_MASK 0xC000
235 #define WM8350_DC2_ERRACT_SHIFT 14
236 #define WM8350_DC2_ENSLOT_MASK 0x3C00
237 #define WM8350_DC2_ENSLOT_SHIFT 10
238 #define WM8350_DC2_SDSLOT_MASK 0x03C0
239 #define WM8350_DC2_UVTO_MASK 0x0030
242 #define WM8350_DC2_ERRACT_NONE 0
243 #define WM8350_DC2_ERRACT_SHUTDOWN_CONV 1
244 #define WM8350_DC2_ERRACT_SHUTDOWN_SYS 2
249 #define WM8350_DC3_OPFLT 0x0400
250 #define WM8350_DC3_VSEL_MASK 0x007F
251 #define WM8350_DC3_VSEL_SHIFT 0
256 #define WM8350_DC3_ERRACT_MASK 0xC000
257 #define WM8350_DC3_ERRACT_SHIFT 14
258 #define WM8350_DC3_ENSLOT_MASK 0x3C00
259 #define WM8350_DC3_ENSLOT_SHIFT 10
260 #define WM8350_DC3_SDSLOT_MASK 0x03C0
261 #define WM8350_DC3_UVTO_MASK 0x0030
262 #define WM8350_DC3_SDSLOT_SHIFT 6
265 #define WM8350_DC3_ERRACT_NONE 0
266 #define WM8350_DC3_ERRACT_SHUTDOWN_CONV 1
267 #define WM8350_DC3_ERRACT_SHUTDOWN_SYS 2
271 #define WM8350_DC3_HIB_MODE_MASK 0x7000
272 #define WM8350_DC3_HIB_TRIG_MASK 0x0300
273 #define WM8350_DC3_VIMG_MASK 0x007F
278 #define WM8350_DC4_OPFLT 0x0400
279 #define WM8350_DC4_VSEL_MASK 0x007F
280 #define WM8350_DC4_VSEL_SHIFT 0
285 #define WM8350_DC4_ERRACT_MASK 0xC000
286 #define WM8350_DC4_ERRACT_SHIFT 14
287 #define WM8350_DC4_ENSLOT_MASK 0x3C00
288 #define WM8350_DC4_ENSLOT_SHIFT 10
289 #define WM8350_DC4_SDSLOT_MASK 0x03C0
290 #define WM8350_DC4_UVTO_MASK 0x0030
291 #define WM8350_DC4_SDSLOT_SHIFT 6
294 #define WM8350_DC4_ERRACT_NONE 0
295 #define WM8350_DC4_ERRACT_SHUTDOWN_CONV 1
296 #define WM8350_DC4_ERRACT_SHUTDOWN_SYS 2
301 #define WM8350_DC4_HIB_MODE_MASK 0x7000
302 #define WM8350_DC4_HIB_TRIG_MASK 0x0300
303 #define WM8350_DC4_VIMG_MASK 0x007F
308 #define WM8350_DC5_MODE 0x4000
309 #define WM8350_DC5_MODE_MASK 0x4000
310 #define WM8350_DC5_MODE_SHIFT 14
311 #define WM8350_DC5_HIB_MODE 0x1000
312 #define WM8350_DC5_HIB_MODE_MASK 0x1000
313 #define WM8350_DC5_HIB_MODE_SHIFT 12
314 #define WM8350_DC5_HIB_TRIG_MASK 0x0300
315 #define WM8350_DC5_HIB_TRIG_SHIFT 8
316 #define WM8350_DC5_ILIM 0x0040
317 #define WM8350_DC5_ILIM_MASK 0x0040
318 #define WM8350_DC5_ILIM_SHIFT 6
319 #define WM8350_DC5_RMP_MASK 0x0018
320 #define WM8350_DC5_RMP_SHIFT 3
321 #define WM8350_DC5_FBSRC_MASK 0x0003
322 #define WM8350_DC5_FBSRC_SHIFT 0
325 #define WM8350_DC5_MODE_BOOST 0
326 #define WM8350_DC5_MODE_SWITCH 1
328 #define WM8350_DC5_HIB_MODE_ACTIVE 1
329 #define WM8350_DC5_HIB_MODE_DISABLE 0
331 #define WM8350_DC5_HIB_TRIG_NONE 0
332 #define WM8350_DC5_HIB_TRIG_LPWR1 1
333 #define WM8350_DC5_HIB_TRIG_LPWR2 2
334 #define WM8350_DC5_HIB_TRIG_LPWR3 3
336 #define WM8350_DC5_ILIM_HIGH 0
337 #define WM8350_DC5_ILIM_LOW 1
339 #define WM8350_DC5_RMP_30V 0
340 #define WM8350_DC5_RMP_20V 1
341 #define WM8350_DC5_RMP_10V 2
342 #define WM8350_DC5_RMP_5V 3
344 #define WM8350_DC5_FBSRC_FB2 0
345 #define WM8350_DC5_FBSRC_ISINKA 1
346 #define WM8350_DC5_FBSRC_ISINKB 2
347 #define WM8350_DC5_FBSRC_USB 3
352 #define WM8350_DC5_ERRACT_MASK 0xC000
353 #define WM8350_DC5_ERRACT_SHIFT 14
354 #define WM8350_DC5_ENSLOT_MASK 0x3C00
355 #define WM8350_DC5_ENSLOT_SHIFT 10
356 #define WM8350_DC5_SDSLOT_MASK 0x03C0
357 #define WM8350_DC5_UVTO_MASK 0x0030
358 #define WM8350_DC5_SDSLOT_SHIFT 6
361 #define WM8350_DC5_ERRACT_NONE 0
362 #define WM8350_DC5_ERRACT_SHUTDOWN_CONV 1
363 #define WM8350_DC5_ERRACT_SHUTDOWN_SYS 2
368 #define WM8350_DC6_OPFLT 0x0400
369 #define WM8350_DC6_VSEL_MASK 0x007F
370 #define WM8350_DC6_VSEL_SHIFT 0
375 #define WM8350_DC6_ERRACT_MASK 0xC000
376 #define WM8350_DC6_ERRACT_SHIFT 14
377 #define WM8350_DC6_ENSLOT_MASK 0x3C00
378 #define WM8350_DC6_ENSLOT_SHIFT 10
379 #define WM8350_DC6_SDSLOT_MASK 0x03C0
380 #define WM8350_DC6_UVTO_MASK 0x0030
381 #define WM8350_DC6_SDSLOT_SHIFT 6
384 #define WM8350_DC6_ERRACT_NONE 0
385 #define WM8350_DC6_ERRACT_SHUTDOWN_CONV 1
386 #define WM8350_DC6_ERRACT_SHUTDOWN_SYS 2
391 #define WM8350_DC6_HIB_MODE_MASK 0x7000
392 #define WM8350_DC6_HIB_TRIG_MASK 0x0300
393 #define WM8350_DC6_VIMG_MASK 0x007F
398 #define WM8350_LS_ERRACT_MASK 0xC000
399 #define WM8350_LS_ERRACT_SHIFT 14
400 #define WM8350_LS_ENSLOT_MASK 0x3C00
401 #define WM8350_LS_ENSLOT_SHIFT 10
402 #define WM8350_LS_SDSLOT_MASK 0x03C0
403 #define WM8350_LS_SDSLOT_SHIFT 6
404 #define WM8350_LS_HIB_MODE 0x0010
405 #define WM8350_LS_HIB_MODE_MASK 0x0010
406 #define WM8350_LS_HIB_MODE_SHIFT 4
407 #define WM8350_LS_HIB_PROT 0x0002
408 #define WM8350_LS_HIB_PROT_MASK 0x0002
409 #define WM8350_LS_HIB_PROT_SHIFT 1
410 #define WM8350_LS_PROT 0x0001
411 #define WM8350_LS_PROT_MASK 0x0001
412 #define WM8350_LS_PROT_SHIFT 0
415 #define WM8350_LS_ERRACT_NONE 0
416 #define WM8350_LS_ERRACT_SHUTDOWN_CONV 1
417 #define WM8350_LS_ERRACT_SHUTDOWN_SYS 2
422 #define WM8350_LDO1_SWI 0x4000
423 #define WM8350_LDO1_OPFLT 0x0400
424 #define WM8350_LDO1_VSEL_MASK 0x001F
425 #define WM8350_LDO1_VSEL_SHIFT 0
430 #define WM8350_LDO1_ERRACT_MASK 0xC000
431 #define WM8350_LDO1_ERRACT_SHIFT 14
432 #define WM8350_LDO1_ENSLOT_MASK 0x3C00
433 #define WM8350_LDO1_ENSLOT_SHIFT 10
434 #define WM8350_LDO1_SDSLOT_MASK 0x03C0
435 #define WM8350_LDO1_UVTO_MASK 0x0030
436 #define WM8350_LDO1_SDSLOT_SHIFT 6
439 #define WM8350_LDO1_ERRACT_NONE 0
440 #define WM8350_LDO1_ERRACT_SHUTDOWN_CONV 1
441 #define WM8350_LDO1_ERRACT_SHUTDOWN_SYS 2
446 #define WM8350_LDO1_HIB_MODE_MASK 0x3000
447 #define WM8350_LDO1_HIB_TRIG_MASK 0x0300
448 #define WM8350_LDO1_VIMG_MASK 0x001F
449 #define WM8350_LDO1_HIB_MODE_DIS (0x1 << 12)
455 #define WM8350_LDO2_SWI 0x4000
456 #define WM8350_LDO2_OPFLT 0x0400
457 #define WM8350_LDO2_VSEL_MASK 0x001F
458 #define WM8350_LDO2_VSEL_SHIFT 0
463 #define WM8350_LDO2_ERRACT_MASK 0xC000
464 #define WM8350_LDO2_ERRACT_SHIFT 14
465 #define WM8350_LDO2_ENSLOT_MASK 0x3C00
466 #define WM8350_LDO2_ENSLOT_SHIFT 10
467 #define WM8350_LDO2_SDSLOT_MASK 0x03C0
468 #define WM8350_LDO2_SDSLOT_SHIFT 6
471 #define WM8350_LDO2_ERRACT_NONE 0
472 #define WM8350_LDO2_ERRACT_SHUTDOWN_CONV 1
473 #define WM8350_LDO2_ERRACT_SHUTDOWN_SYS 2
478 #define WM8350_LDO2_HIB_MODE_MASK 0x3000
479 #define WM8350_LDO2_HIB_TRIG_MASK 0x0300
480 #define WM8350_LDO2_VIMG_MASK 0x001F
485 #define WM8350_LDO3_SWI 0x4000
486 #define WM8350_LDO3_OPFLT 0x0400
487 #define WM8350_LDO3_VSEL_MASK 0x001F
488 #define WM8350_LDO3_VSEL_SHIFT 0
493 #define WM8350_LDO3_ERRACT_MASK 0xC000
494 #define WM8350_LDO3_ERRACT_SHIFT 14
495 #define WM8350_LDO3_ENSLOT_MASK 0x3C00
496 #define WM8350_LDO3_ENSLOT_SHIFT 10
497 #define WM8350_LDO3_SDSLOT_MASK 0x03C0
498 #define WM8350_LDO3_UVTO_MASK 0x0030
499 #define WM8350_LDO3_SDSLOT_SHIFT 6
502 #define WM8350_LDO3_ERRACT_NONE 0
503 #define WM8350_LDO3_ERRACT_SHUTDOWN_CONV 1
504 #define WM8350_LDO3_ERRACT_SHUTDOWN_SYS 2
509 #define WM8350_LDO3_HIB_MODE_MASK 0x3000
510 #define WM8350_LDO3_HIB_TRIG_MASK 0x0300
511 #define WM8350_LDO3_VIMG_MASK 0x001F
516 #define WM8350_LDO4_SWI 0x4000
517 #define WM8350_LDO4_OPFLT 0x0400
518 #define WM8350_LDO4_VSEL_MASK 0x001F
519 #define WM8350_LDO4_VSEL_SHIFT 0
524 #define WM8350_LDO4_ERRACT_MASK 0xC000
525 #define WM8350_LDO4_ERRACT_SHIFT 14
526 #define WM8350_LDO4_ENSLOT_MASK 0x3C00
527 #define WM8350_LDO4_ENSLOT_SHIFT 10
528 #define WM8350_LDO4_SDSLOT_MASK 0x03C0
529 #define WM8350_LDO4_UVTO_MASK 0x0030
530 #define WM8350_LDO4_SDSLOT_SHIFT 6
533 #define WM8350_LDO4_ERRACT_NONE 0
534 #define WM8350_LDO4_ERRACT_SHUTDOWN_CONV 1
535 #define WM8350_LDO4_ERRACT_SHUTDOWN_SYS 2
540 #define WM8350_LDO4_HIB_MODE_MASK 0x3000
541 #define WM8350_LDO4_HIB_TRIG_MASK 0x0300
542 #define WM8350_LDO4_VIMG_MASK 0x001F
547 #define WM8350_LS_FAULT 0x8000
548 #define WM8350_LDO4_FAULT 0x0800
549 #define WM8350_LDO3_FAULT 0x0400
550 #define WM8350_LDO2_FAULT 0x0200
551 #define WM8350_LDO1_FAULT 0x0100
552 #define WM8350_DC6_FAULT 0x0020
553 #define WM8350_DC5_FAULT 0x0010
554 #define WM8350_DC4_FAULT 0x0008
555 #define WM8350_DC3_FAULT 0x0004
556 #define WM8350_DC2_FAULT 0x0002
557 #define WM8350_DC1_FAULT 0x0001
562 #define WM8350_MBG_LOAD_FUSES 0x8000
563 #define WM8350_MBG_FUSE_WPREP 0x4000
564 #define WM8350_MBG_FUSE_WRITE 0x2000
565 #define WM8350_MBG_FUSE_TRIM_MASK 0x1F00
566 #define WM8350_MBG_TRIM_SRC 0x0020
567 #define WM8350_MBG_USER_TRIM_MASK 0x001F
572 #define WM8350_OSC_LOAD_FUSES 0x8000
573 #define WM8350_OSC_FUSE_WPREP 0x4000
574 #define WM8350_OSC_FUSE_WRITE 0x2000
575 #define WM8350_OSC_FUSE_TRIM_MASK 0x0F00
576 #define WM8350_OSC_TRIM_SRC 0x0020
577 #define WM8350_OSC_USER_TRIM_MASK 0x000F
582 #define WM8350_DCDC1_FORCE_PWM_ENA 0x0010
587 #define WM8350_DCDC3_FORCE_PWM_ENA 0x0010
592 #define WM8350_DCDC4_FORCE_PWM_ENA 0x0010
597 #define WM8350_DCDC6_FORCE_PWM_ENA 0x0010
602 #define WM8350_DCDC_1 0
603 #define WM8350_DCDC_2 1
604 #define WM8350_DCDC_3 2
605 #define WM8350_DCDC_4 3
606 #define WM8350_DCDC_5 4
607 #define WM8350_DCDC_6 5
610 #define WM8350_DCDC_ACTIVE_STANDBY 0
611 #define WM8350_DCDC_ACTIVE_PULSE 1
612 #define WM8350_DCDC_SLEEP_NORMAL 0
613 #define WM8350_DCDC_SLEEP_LOW 1
616 #define WM8350_DCDC_HIB_MODE_CUR (0 << 12)
617 #define WM8350_DCDC_HIB_MODE_IMAGE (1 << 12)
618 #define WM8350_DCDC_HIB_MODE_STANDBY (2 << 12)
619 #define WM8350_DCDC_HIB_MODE_LDO (4 << 12)
620 #define WM8350_DCDC_HIB_MODE_LDO_IM (5 << 12)
621 #define WM8350_DCDC_HIB_MODE_DIS (7 << 12)
622 #define WM8350_DCDC_HIB_MODE_MASK (7 << 12)
625 #define WM8350_DCDC_HIB_SIG_REG (0 << 8)
626 #define WM8350_DCDC_HIB_SIG_LPWR1 (1 << 8)
627 #define WM8350_DCDC_HIB_SIG_LPWR2 (2 << 8)
628 #define WM8350_DCDC_HIB_SIG_LPWR3 (3 << 8)
631 #define WM8350_LDO_HIB_MODE_IMAGE (0 << 0)
632 #define WM8350_LDO_HIB_MODE_DIS (1 << 0)
635 #define WM8350_LDO_HIB_SIG_REG (0 << 8)
636 #define WM8350_LDO_HIB_SIG_LPWR1 (1 << 8)
637 #define WM8350_LDO_HIB_SIG_LPWR2 (2 << 8)
638 #define WM8350_LDO_HIB_SIG_LPWR3 (3 << 8)
643 #define WM8350_LDO_1 6
644 #define WM8350_LDO_2 7
645 #define WM8350_LDO_3 8
646 #define WM8350_LDO_4 9
651 #define WM8350_ISINK_A 10
652 #define WM8350_ISINK_B 11
654 #define WM8350_ISINK_MODE_BOOST 0
655 #define WM8350_ISINK_MODE_SWITCH 1
656 #define WM8350_ISINK_ILIM_NORMAL 0
657 #define WM8350_ISINK_ILIM_LOW 1
659 #define WM8350_ISINK_FLASH_DISABLE 0
660 #define WM8350_ISINK_FLASH_ENABLE 1
661 #define WM8350_ISINK_FLASH_TRIG_BIT 0
662 #define WM8350_ISINK_FLASH_TRIG_GPIO 1
663 #define WM8350_ISINK_FLASH_MODE_EN (1 << 13)
664 #define WM8350_ISINK_FLASH_MODE_DIS (0 << 13)
665 #define WM8350_ISINK_FLASH_DUR_32MS (0 << 8)
666 #define WM8350_ISINK_FLASH_DUR_64MS (1 << 8)
667 #define WM8350_ISINK_FLASH_DUR_96MS (2 << 8)
668 #define WM8350_ISINK_FLASH_DUR_1024MS (3 << 8)
669 #define WM8350_ISINK_FLASH_ON_INSTANT (0 << 0)
670 #define WM8350_ISINK_FLASH_ON_0_25S (1 << 0)
671 #define WM8350_ISINK_FLASH_ON_0_50S (2 << 0)
672 #define WM8350_ISINK_FLASH_ON_1_00S (3 << 0)
673 #define WM8350_ISINK_FLASH_ON_1_95S (1 << 0)
674 #define WM8350_ISINK_FLASH_ON_3_91S (2 << 0)
675 #define WM8350_ISINK_FLASH_ON_7_80S (3 << 0)
676 #define WM8350_ISINK_FLASH_OFF_INSTANT (0 << 4)
677 #define WM8350_ISINK_FLASH_OFF_0_25S (1 << 4)
678 #define WM8350_ISINK_FLASH_OFF_0_50S (2 << 4)
679 #define WM8350_ISINK_FLASH_OFF_1_00S (3 << 4)
680 #define WM8350_ISINK_FLASH_OFF_1_95S (1 << 4)
681 #define WM8350_ISINK_FLASH_OFF_3_91S (2 << 4)
682 #define WM8350_ISINK_FLASH_OFF_7_80S (3 << 4)
687 #define WM8350_IRQ_CS1 13
688 #define WM8350_IRQ_CS2 14
689 #define WM8350_IRQ_UV_LDO4 25
690 #define WM8350_IRQ_UV_LDO3 26
691 #define WM8350_IRQ_UV_LDO2 27
692 #define WM8350_IRQ_UV_LDO1 28
693 #define WM8350_IRQ_UV_DC6 29
694 #define WM8350_IRQ_UV_DC5 30
695 #define WM8350_IRQ_UV_DC4 31
696 #define WM8350_IRQ_UV_DC3 32
697 #define WM8350_IRQ_UV_DC2 33
698 #define WM8350_IRQ_UV_DC1 34
699 #define WM8350_IRQ_OC_LS 35
701 #define NUM_WM8350_REGULATORS 12