Go to the documentation of this file.
15 #ifndef __MFD_WM831X_IRQ_H__
16 #define __MFD_WM831X_IRQ_H__
19 #define WM831X_IRQ_TEMP_THW 0
20 #define WM831X_IRQ_GPIO_1 1
21 #define WM831X_IRQ_GPIO_2 2
22 #define WM831X_IRQ_GPIO_3 3
23 #define WM831X_IRQ_GPIO_4 4
24 #define WM831X_IRQ_GPIO_5 5
25 #define WM831X_IRQ_GPIO_6 6
26 #define WM831X_IRQ_GPIO_7 7
27 #define WM831X_IRQ_GPIO_8 8
28 #define WM831X_IRQ_GPIO_9 9
29 #define WM831X_IRQ_GPIO_10 10
30 #define WM831X_IRQ_GPIO_11 11
31 #define WM831X_IRQ_GPIO_12 12
32 #define WM831X_IRQ_GPIO_13 13
33 #define WM831X_IRQ_GPIO_14 14
34 #define WM831X_IRQ_GPIO_15 15
35 #define WM831X_IRQ_GPIO_16 16
36 #define WM831X_IRQ_ON 17
37 #define WM831X_IRQ_PPM_SYSLO 18
38 #define WM831X_IRQ_PPM_PWR_SRC 19
39 #define WM831X_IRQ_PPM_USB_CURR 20
40 #define WM831X_IRQ_WDOG_TO 21
41 #define WM831X_IRQ_RTC_PER 22
42 #define WM831X_IRQ_RTC_ALM 23
43 #define WM831X_IRQ_CHG_BATT_HOT 24
44 #define WM831X_IRQ_CHG_BATT_COLD 25
45 #define WM831X_IRQ_CHG_BATT_FAIL 26
46 #define WM831X_IRQ_CHG_OV 27
47 #define WM831X_IRQ_CHG_END 29
48 #define WM831X_IRQ_CHG_TO 30
49 #define WM831X_IRQ_CHG_MODE 31
50 #define WM831X_IRQ_CHG_START 32
51 #define WM831X_IRQ_TCHDATA 33
52 #define WM831X_IRQ_TCHPD 34
53 #define WM831X_IRQ_AUXADC_DATA 35
54 #define WM831X_IRQ_AUXADC_DCOMP1 36
55 #define WM831X_IRQ_AUXADC_DCOMP2 37
56 #define WM831X_IRQ_AUXADC_DCOMP3 38
57 #define WM831X_IRQ_AUXADC_DCOMP4 39
58 #define WM831X_IRQ_CS1 40
59 #define WM831X_IRQ_CS2 41
60 #define WM831X_IRQ_HC_DC1 42
61 #define WM831X_IRQ_HC_DC2 43
62 #define WM831X_IRQ_UV_LDO1 44
63 #define WM831X_IRQ_UV_LDO2 45
64 #define WM831X_IRQ_UV_LDO3 46
65 #define WM831X_IRQ_UV_LDO4 47
66 #define WM831X_IRQ_UV_LDO5 48
67 #define WM831X_IRQ_UV_LDO6 49
68 #define WM831X_IRQ_UV_LDO7 50
69 #define WM831X_IRQ_UV_LDO8 51
70 #define WM831X_IRQ_UV_LDO9 52
71 #define WM831X_IRQ_UV_LDO10 53
72 #define WM831X_IRQ_UV_DC1 54
73 #define WM831X_IRQ_UV_DC2 55
74 #define WM831X_IRQ_UV_DC3 56
75 #define WM831X_IRQ_UV_DC4 57
77 #define WM831X_NUM_IRQS 58
82 #define WM831X_PS_INT 0x8000
83 #define WM831X_PS_INT_MASK 0x8000
84 #define WM831X_PS_INT_SHIFT 15
85 #define WM831X_PS_INT_WIDTH 1
86 #define WM831X_TEMP_INT 0x4000
87 #define WM831X_TEMP_INT_MASK 0x4000
88 #define WM831X_TEMP_INT_SHIFT 14
89 #define WM831X_TEMP_INT_WIDTH 1
90 #define WM831X_GP_INT 0x2000
91 #define WM831X_GP_INT_MASK 0x2000
92 #define WM831X_GP_INT_SHIFT 13
93 #define WM831X_GP_INT_WIDTH 1
94 #define WM831X_ON_PIN_INT 0x1000
95 #define WM831X_ON_PIN_INT_MASK 0x1000
96 #define WM831X_ON_PIN_INT_SHIFT 12
97 #define WM831X_ON_PIN_INT_WIDTH 1
98 #define WM831X_WDOG_INT 0x0800
99 #define WM831X_WDOG_INT_MASK 0x0800
100 #define WM831X_WDOG_INT_SHIFT 11
101 #define WM831X_WDOG_INT_WIDTH 1
102 #define WM831X_TCHDATA_INT 0x0400
103 #define WM831X_TCHDATA_INT_MASK 0x0400
104 #define WM831X_TCHDATA_INT_SHIFT 10
105 #define WM831X_TCHDATA_INT_WIDTH 1
106 #define WM831X_TCHPD_INT 0x0200
107 #define WM831X_TCHPD_INT_MASK 0x0200
108 #define WM831X_TCHPD_INT_SHIFT 9
109 #define WM831X_TCHPD_INT_WIDTH 1
110 #define WM831X_AUXADC_INT 0x0100
111 #define WM831X_AUXADC_INT_MASK 0x0100
112 #define WM831X_AUXADC_INT_SHIFT 8
113 #define WM831X_AUXADC_INT_WIDTH 1
114 #define WM831X_PPM_INT 0x0080
115 #define WM831X_PPM_INT_MASK 0x0080
116 #define WM831X_PPM_INT_SHIFT 7
117 #define WM831X_PPM_INT_WIDTH 1
118 #define WM831X_CS_INT 0x0040
119 #define WM831X_CS_INT_MASK 0x0040
120 #define WM831X_CS_INT_SHIFT 6
121 #define WM831X_CS_INT_WIDTH 1
122 #define WM831X_RTC_INT 0x0020
123 #define WM831X_RTC_INT_MASK 0x0020
124 #define WM831X_RTC_INT_SHIFT 5
125 #define WM831X_RTC_INT_WIDTH 1
126 #define WM831X_OTP_INT 0x0010
127 #define WM831X_OTP_INT_MASK 0x0010
128 #define WM831X_OTP_INT_SHIFT 4
129 #define WM831X_OTP_INT_WIDTH 1
130 #define WM831X_CHILD_INT 0x0008
131 #define WM831X_CHILD_INT_MASK 0x0008
132 #define WM831X_CHILD_INT_SHIFT 3
133 #define WM831X_CHILD_INT_WIDTH 1
134 #define WM831X_CHG_INT 0x0004
135 #define WM831X_CHG_INT_MASK 0x0004
136 #define WM831X_CHG_INT_SHIFT 2
137 #define WM831X_CHG_INT_WIDTH 1
138 #define WM831X_HC_INT 0x0002
139 #define WM831X_HC_INT_MASK 0x0002
140 #define WM831X_HC_INT_SHIFT 1
141 #define WM831X_HC_INT_WIDTH 1
142 #define WM831X_UV_INT 0x0001
143 #define WM831X_UV_INT_MASK 0x0001
144 #define WM831X_UV_INT_SHIFT 0
145 #define WM831X_UV_INT_WIDTH 1
150 #define WM831X_PPM_SYSLO_EINT 0x8000
151 #define WM831X_PPM_SYSLO_EINT_MASK 0x8000
152 #define WM831X_PPM_SYSLO_EINT_SHIFT 15
153 #define WM831X_PPM_SYSLO_EINT_WIDTH 1
154 #define WM831X_PPM_PWR_SRC_EINT 0x4000
155 #define WM831X_PPM_PWR_SRC_EINT_MASK 0x4000
156 #define WM831X_PPM_PWR_SRC_EINT_SHIFT 14
157 #define WM831X_PPM_PWR_SRC_EINT_WIDTH 1
158 #define WM831X_PPM_USB_CURR_EINT 0x2000
159 #define WM831X_PPM_USB_CURR_EINT_MASK 0x2000
160 #define WM831X_PPM_USB_CURR_EINT_SHIFT 13
161 #define WM831X_PPM_USB_CURR_EINT_WIDTH 1
162 #define WM831X_ON_PIN_EINT 0x1000
163 #define WM831X_ON_PIN_EINT_MASK 0x1000
164 #define WM831X_ON_PIN_EINT_SHIFT 12
165 #define WM831X_ON_PIN_EINT_WIDTH 1
166 #define WM831X_WDOG_TO_EINT 0x0800
167 #define WM831X_WDOG_TO_EINT_MASK 0x0800
168 #define WM831X_WDOG_TO_EINT_SHIFT 11
169 #define WM831X_WDOG_TO_EINT_WIDTH 1
170 #define WM831X_TCHDATA_EINT 0x0400
171 #define WM831X_TCHDATA_EINT_MASK 0x0400
172 #define WM831X_TCHDATA_EINT_SHIFT 10
173 #define WM831X_TCHDATA_EINT_WIDTH 1
174 #define WM831X_TCHPD_EINT 0x0200
175 #define WM831X_TCHPD_EINT_MASK 0x0200
176 #define WM831X_TCHPD_EINT_SHIFT 9
177 #define WM831X_TCHPD_EINT_WIDTH 1
178 #define WM831X_AUXADC_DATA_EINT 0x0100
179 #define WM831X_AUXADC_DATA_EINT_MASK 0x0100
180 #define WM831X_AUXADC_DATA_EINT_SHIFT 8
181 #define WM831X_AUXADC_DATA_EINT_WIDTH 1
182 #define WM831X_AUXADC_DCOMP4_EINT 0x0080
183 #define WM831X_AUXADC_DCOMP4_EINT_MASK 0x0080
184 #define WM831X_AUXADC_DCOMP4_EINT_SHIFT 7
185 #define WM831X_AUXADC_DCOMP4_EINT_WIDTH 1
186 #define WM831X_AUXADC_DCOMP3_EINT 0x0040
187 #define WM831X_AUXADC_DCOMP3_EINT_MASK 0x0040
188 #define WM831X_AUXADC_DCOMP3_EINT_SHIFT 6
189 #define WM831X_AUXADC_DCOMP3_EINT_WIDTH 1
190 #define WM831X_AUXADC_DCOMP2_EINT 0x0020
191 #define WM831X_AUXADC_DCOMP2_EINT_MASK 0x0020
192 #define WM831X_AUXADC_DCOMP2_EINT_SHIFT 5
193 #define WM831X_AUXADC_DCOMP2_EINT_WIDTH 1
194 #define WM831X_AUXADC_DCOMP1_EINT 0x0010
195 #define WM831X_AUXADC_DCOMP1_EINT_MASK 0x0010
196 #define WM831X_AUXADC_DCOMP1_EINT_SHIFT 4
197 #define WM831X_AUXADC_DCOMP1_EINT_WIDTH 1
198 #define WM831X_RTC_PER_EINT 0x0008
199 #define WM831X_RTC_PER_EINT_MASK 0x0008
200 #define WM831X_RTC_PER_EINT_SHIFT 3
201 #define WM831X_RTC_PER_EINT_WIDTH 1
202 #define WM831X_RTC_ALM_EINT 0x0004
203 #define WM831X_RTC_ALM_EINT_MASK 0x0004
204 #define WM831X_RTC_ALM_EINT_SHIFT 2
205 #define WM831X_RTC_ALM_EINT_WIDTH 1
206 #define WM831X_TEMP_THW_EINT 0x0002
207 #define WM831X_TEMP_THW_EINT_MASK 0x0002
208 #define WM831X_TEMP_THW_EINT_SHIFT 1
209 #define WM831X_TEMP_THW_EINT_WIDTH 1
214 #define WM831X_CHG_BATT_HOT_EINT 0x8000
215 #define WM831X_CHG_BATT_HOT_EINT_MASK 0x8000
216 #define WM831X_CHG_BATT_HOT_EINT_SHIFT 15
217 #define WM831X_CHG_BATT_HOT_EINT_WIDTH 1
218 #define WM831X_CHG_BATT_COLD_EINT 0x4000
219 #define WM831X_CHG_BATT_COLD_EINT_MASK 0x4000
220 #define WM831X_CHG_BATT_COLD_EINT_SHIFT 14
221 #define WM831X_CHG_BATT_COLD_EINT_WIDTH 1
222 #define WM831X_CHG_BATT_FAIL_EINT 0x2000
223 #define WM831X_CHG_BATT_FAIL_EINT_MASK 0x2000
224 #define WM831X_CHG_BATT_FAIL_EINT_SHIFT 13
225 #define WM831X_CHG_BATT_FAIL_EINT_WIDTH 1
226 #define WM831X_CHG_OV_EINT 0x1000
227 #define WM831X_CHG_OV_EINT_MASK 0x1000
228 #define WM831X_CHG_OV_EINT_SHIFT 12
229 #define WM831X_CHG_OV_EINT_WIDTH 1
230 #define WM831X_CHG_END_EINT 0x0800
231 #define WM831X_CHG_END_EINT_MASK 0x0800
232 #define WM831X_CHG_END_EINT_SHIFT 11
233 #define WM831X_CHG_END_EINT_WIDTH 1
234 #define WM831X_CHG_TO_EINT 0x0400
235 #define WM831X_CHG_TO_EINT_MASK 0x0400
236 #define WM831X_CHG_TO_EINT_SHIFT 10
237 #define WM831X_CHG_TO_EINT_WIDTH 1
238 #define WM831X_CHG_MODE_EINT 0x0200
239 #define WM831X_CHG_MODE_EINT_MASK 0x0200
240 #define WM831X_CHG_MODE_EINT_SHIFT 9
241 #define WM831X_CHG_MODE_EINT_WIDTH 1
242 #define WM831X_CHG_START_EINT 0x0100
243 #define WM831X_CHG_START_EINT_MASK 0x0100
244 #define WM831X_CHG_START_EINT_SHIFT 8
245 #define WM831X_CHG_START_EINT_WIDTH 1
246 #define WM831X_CS2_EINT 0x0080
247 #define WM831X_CS2_EINT_MASK 0x0080
248 #define WM831X_CS2_EINT_SHIFT 7
249 #define WM831X_CS2_EINT_WIDTH 1
250 #define WM831X_CS1_EINT 0x0040
251 #define WM831X_CS1_EINT_MASK 0x0040
252 #define WM831X_CS1_EINT_SHIFT 6
253 #define WM831X_CS1_EINT_WIDTH 1
254 #define WM831X_OTP_CMD_END_EINT 0x0020
255 #define WM831X_OTP_CMD_END_EINT_MASK 0x0020
256 #define WM831X_OTP_CMD_END_EINT_SHIFT 5
257 #define WM831X_OTP_CMD_END_EINT_WIDTH 1
258 #define WM831X_OTP_ERR_EINT 0x0010
259 #define WM831X_OTP_ERR_EINT_MASK 0x0010
260 #define WM831X_OTP_ERR_EINT_SHIFT 4
261 #define WM831X_OTP_ERR_EINT_WIDTH 1
262 #define WM831X_PS_POR_EINT 0x0004
263 #define WM831X_PS_POR_EINT_MASK 0x0004
264 #define WM831X_PS_POR_EINT_SHIFT 2
265 #define WM831X_PS_POR_EINT_WIDTH 1
266 #define WM831X_PS_SLEEP_OFF_EINT 0x0002
267 #define WM831X_PS_SLEEP_OFF_EINT_MASK 0x0002
268 #define WM831X_PS_SLEEP_OFF_EINT_SHIFT 1
269 #define WM831X_PS_SLEEP_OFF_EINT_WIDTH 1
270 #define WM831X_PS_ON_WAKE_EINT 0x0001
271 #define WM831X_PS_ON_WAKE_EINT_MASK 0x0001
272 #define WM831X_PS_ON_WAKE_EINT_SHIFT 0
273 #define WM831X_PS_ON_WAKE_EINT_WIDTH 1
278 #define WM831X_UV_LDO10_EINT 0x0200
279 #define WM831X_UV_LDO10_EINT_MASK 0x0200
280 #define WM831X_UV_LDO10_EINT_SHIFT 9
281 #define WM831X_UV_LDO10_EINT_WIDTH 1
282 #define WM831X_UV_LDO9_EINT 0x0100
283 #define WM831X_UV_LDO9_EINT_MASK 0x0100
284 #define WM831X_UV_LDO9_EINT_SHIFT 8
285 #define WM831X_UV_LDO9_EINT_WIDTH 1
286 #define WM831X_UV_LDO8_EINT 0x0080
287 #define WM831X_UV_LDO8_EINT_MASK 0x0080
288 #define WM831X_UV_LDO8_EINT_SHIFT 7
289 #define WM831X_UV_LDO8_EINT_WIDTH 1
290 #define WM831X_UV_LDO7_EINT 0x0040
291 #define WM831X_UV_LDO7_EINT_MASK 0x0040
292 #define WM831X_UV_LDO7_EINT_SHIFT 6
293 #define WM831X_UV_LDO7_EINT_WIDTH 1
294 #define WM831X_UV_LDO6_EINT 0x0020
295 #define WM831X_UV_LDO6_EINT_MASK 0x0020
296 #define WM831X_UV_LDO6_EINT_SHIFT 5
297 #define WM831X_UV_LDO6_EINT_WIDTH 1
298 #define WM831X_UV_LDO5_EINT 0x0010
299 #define WM831X_UV_LDO5_EINT_MASK 0x0010
300 #define WM831X_UV_LDO5_EINT_SHIFT 4
301 #define WM831X_UV_LDO5_EINT_WIDTH 1
302 #define WM831X_UV_LDO4_EINT 0x0008
303 #define WM831X_UV_LDO4_EINT_MASK 0x0008
304 #define WM831X_UV_LDO4_EINT_SHIFT 3
305 #define WM831X_UV_LDO4_EINT_WIDTH 1
306 #define WM831X_UV_LDO3_EINT 0x0004
307 #define WM831X_UV_LDO3_EINT_MASK 0x0004
308 #define WM831X_UV_LDO3_EINT_SHIFT 2
309 #define WM831X_UV_LDO3_EINT_WIDTH 1
310 #define WM831X_UV_LDO2_EINT 0x0002
311 #define WM831X_UV_LDO2_EINT_MASK 0x0002
312 #define WM831X_UV_LDO2_EINT_SHIFT 1
313 #define WM831X_UV_LDO2_EINT_WIDTH 1
314 #define WM831X_UV_LDO1_EINT 0x0001
315 #define WM831X_UV_LDO1_EINT_MASK 0x0001
316 #define WM831X_UV_LDO1_EINT_SHIFT 0
317 #define WM831X_UV_LDO1_EINT_WIDTH 1
322 #define WM831X_HC_DC2_EINT 0x0200
323 #define WM831X_HC_DC2_EINT_MASK 0x0200
324 #define WM831X_HC_DC2_EINT_SHIFT 9
325 #define WM831X_HC_DC2_EINT_WIDTH 1
326 #define WM831X_HC_DC1_EINT 0x0100
327 #define WM831X_HC_DC1_EINT_MASK 0x0100
328 #define WM831X_HC_DC1_EINT_SHIFT 8
329 #define WM831X_HC_DC1_EINT_WIDTH 1
330 #define WM831X_UV_DC4_EINT 0x0008
331 #define WM831X_UV_DC4_EINT_MASK 0x0008
332 #define WM831X_UV_DC4_EINT_SHIFT 3
333 #define WM831X_UV_DC4_EINT_WIDTH 1
334 #define WM831X_UV_DC3_EINT 0x0004
335 #define WM831X_UV_DC3_EINT_MASK 0x0004
336 #define WM831X_UV_DC3_EINT_SHIFT 2
337 #define WM831X_UV_DC3_EINT_WIDTH 1
338 #define WM831X_UV_DC2_EINT 0x0002
339 #define WM831X_UV_DC2_EINT_MASK 0x0002
340 #define WM831X_UV_DC2_EINT_SHIFT 1
341 #define WM831X_UV_DC2_EINT_WIDTH 1
342 #define WM831X_UV_DC1_EINT 0x0001
343 #define WM831X_UV_DC1_EINT_MASK 0x0001
344 #define WM831X_UV_DC1_EINT_SHIFT 0
345 #define WM831X_UV_DC1_EINT_WIDTH 1
350 #define WM831X_GP16_EINT 0x8000
351 #define WM831X_GP16_EINT_MASK 0x8000
352 #define WM831X_GP16_EINT_SHIFT 15
353 #define WM831X_GP16_EINT_WIDTH 1
354 #define WM831X_GP15_EINT 0x4000
355 #define WM831X_GP15_EINT_MASK 0x4000
356 #define WM831X_GP15_EINT_SHIFT 14
357 #define WM831X_GP15_EINT_WIDTH 1
358 #define WM831X_GP14_EINT 0x2000
359 #define WM831X_GP14_EINT_MASK 0x2000
360 #define WM831X_GP14_EINT_SHIFT 13
361 #define WM831X_GP14_EINT_WIDTH 1
362 #define WM831X_GP13_EINT 0x1000
363 #define WM831X_GP13_EINT_MASK 0x1000
364 #define WM831X_GP13_EINT_SHIFT 12
365 #define WM831X_GP13_EINT_WIDTH 1
366 #define WM831X_GP12_EINT 0x0800
367 #define WM831X_GP12_EINT_MASK 0x0800
368 #define WM831X_GP12_EINT_SHIFT 11
369 #define WM831X_GP12_EINT_WIDTH 1
370 #define WM831X_GP11_EINT 0x0400
371 #define WM831X_GP11_EINT_MASK 0x0400
372 #define WM831X_GP11_EINT_SHIFT 10
373 #define WM831X_GP11_EINT_WIDTH 1
374 #define WM831X_GP10_EINT 0x0200
375 #define WM831X_GP10_EINT_MASK 0x0200
376 #define WM831X_GP10_EINT_SHIFT 9
377 #define WM831X_GP10_EINT_WIDTH 1
378 #define WM831X_GP9_EINT 0x0100
379 #define WM831X_GP9_EINT_MASK 0x0100
380 #define WM831X_GP9_EINT_SHIFT 8
381 #define WM831X_GP9_EINT_WIDTH 1
382 #define WM831X_GP8_EINT 0x0080
383 #define WM831X_GP8_EINT_MASK 0x0080
384 #define WM831X_GP8_EINT_SHIFT 7
385 #define WM831X_GP8_EINT_WIDTH 1
386 #define WM831X_GP7_EINT 0x0040
387 #define WM831X_GP7_EINT_MASK 0x0040
388 #define WM831X_GP7_EINT_SHIFT 6
389 #define WM831X_GP7_EINT_WIDTH 1
390 #define WM831X_GP6_EINT 0x0020
391 #define WM831X_GP6_EINT_MASK 0x0020
392 #define WM831X_GP6_EINT_SHIFT 5
393 #define WM831X_GP6_EINT_WIDTH 1
394 #define WM831X_GP5_EINT 0x0010
395 #define WM831X_GP5_EINT_MASK 0x0010
396 #define WM831X_GP5_EINT_SHIFT 4
397 #define WM831X_GP5_EINT_WIDTH 1
398 #define WM831X_GP4_EINT 0x0008
399 #define WM831X_GP4_EINT_MASK 0x0008
400 #define WM831X_GP4_EINT_SHIFT 3
401 #define WM831X_GP4_EINT_WIDTH 1
402 #define WM831X_GP3_EINT 0x0004
403 #define WM831X_GP3_EINT_MASK 0x0004
404 #define WM831X_GP3_EINT_SHIFT 2
405 #define WM831X_GP3_EINT_WIDTH 1
406 #define WM831X_GP2_EINT 0x0002
407 #define WM831X_GP2_EINT_MASK 0x0002
408 #define WM831X_GP2_EINT_SHIFT 1
409 #define WM831X_GP2_EINT_WIDTH 1
410 #define WM831X_GP1_EINT 0x0001
411 #define WM831X_GP1_EINT_MASK 0x0001
412 #define WM831X_GP1_EINT_SHIFT 0
413 #define WM831X_GP1_EINT_WIDTH 1
418 #define WM831X_IRQ_OD 0x0002
419 #define WM831X_IRQ_OD_MASK 0x0002
420 #define WM831X_IRQ_OD_SHIFT 1
421 #define WM831X_IRQ_OD_WIDTH 1
422 #define WM831X_IM_IRQ 0x0001
423 #define WM831X_IM_IRQ_MASK 0x0001
424 #define WM831X_IM_IRQ_SHIFT 0
425 #define WM831X_IM_IRQ_WIDTH 1
430 #define WM831X_IM_PS_INT 0x8000
431 #define WM831X_IM_PS_INT_MASK 0x8000
432 #define WM831X_IM_PS_INT_SHIFT 15
433 #define WM831X_IM_PS_INT_WIDTH 1
434 #define WM831X_IM_TEMP_INT 0x4000
435 #define WM831X_IM_TEMP_INT_MASK 0x4000
436 #define WM831X_IM_TEMP_INT_SHIFT 14
437 #define WM831X_IM_TEMP_INT_WIDTH 1
438 #define WM831X_IM_GP_INT 0x2000
439 #define WM831X_IM_GP_INT_MASK 0x2000
440 #define WM831X_IM_GP_INT_SHIFT 13
441 #define WM831X_IM_GP_INT_WIDTH 1
442 #define WM831X_IM_ON_PIN_INT 0x1000
443 #define WM831X_IM_ON_PIN_INT_MASK 0x1000
444 #define WM831X_IM_ON_PIN_INT_SHIFT 12
445 #define WM831X_IM_ON_PIN_INT_WIDTH 1
446 #define WM831X_IM_WDOG_INT 0x0800
447 #define WM831X_IM_WDOG_INT_MASK 0x0800
448 #define WM831X_IM_WDOG_INT_SHIFT 11
449 #define WM831X_IM_WDOG_INT_WIDTH 1
450 #define WM831X_IM_TCHDATA_INT 0x0400
451 #define WM831X_IM_TCHDATA_INT_MASK 0x0400
452 #define WM831X_IM_TCHDATA_INT_SHIFT 10
453 #define WM831X_IM_TCHDATA_INT_WIDTH 1
454 #define WM831X_IM_TCHPD_INT 0x0200
455 #define WM831X_IM_TCHPD_INT_MASK 0x0200
456 #define WM831X_IM_TCHPD_INT_SHIFT 9
457 #define WM831X_IM_TCHPD_INT_WIDTH 1
458 #define WM831X_IM_AUXADC_INT 0x0100
459 #define WM831X_IM_AUXADC_INT_MASK 0x0100
460 #define WM831X_IM_AUXADC_INT_SHIFT 8
461 #define WM831X_IM_AUXADC_INT_WIDTH 1
462 #define WM831X_IM_PPM_INT 0x0080
463 #define WM831X_IM_PPM_INT_MASK 0x0080
464 #define WM831X_IM_PPM_INT_SHIFT 7
465 #define WM831X_IM_PPM_INT_WIDTH 1
466 #define WM831X_IM_CS_INT 0x0040
467 #define WM831X_IM_CS_INT_MASK 0x0040
468 #define WM831X_IM_CS_INT_SHIFT 6
469 #define WM831X_IM_CS_INT_WIDTH 1
470 #define WM831X_IM_RTC_INT 0x0020
471 #define WM831X_IM_RTC_INT_MASK 0x0020
472 #define WM831X_IM_RTC_INT_SHIFT 5
473 #define WM831X_IM_RTC_INT_WIDTH 1
474 #define WM831X_IM_OTP_INT 0x0010
475 #define WM831X_IM_OTP_INT_MASK 0x0010
476 #define WM831X_IM_OTP_INT_SHIFT 4
477 #define WM831X_IM_OTP_INT_WIDTH 1
478 #define WM831X_IM_CHILD_INT 0x0008
479 #define WM831X_IM_CHILD_INT_MASK 0x0008
480 #define WM831X_IM_CHILD_INT_SHIFT 3
481 #define WM831X_IM_CHILD_INT_WIDTH 1
482 #define WM831X_IM_CHG_INT 0x0004
483 #define WM831X_IM_CHG_INT_MASK 0x0004
484 #define WM831X_IM_CHG_INT_SHIFT 2
485 #define WM831X_IM_CHG_INT_WIDTH 1
486 #define WM831X_IM_HC_INT 0x0002
487 #define WM831X_IM_HC_INT_MASK 0x0002
488 #define WM831X_IM_HC_INT_SHIFT 1
489 #define WM831X_IM_HC_INT_WIDTH 1
490 #define WM831X_IM_UV_INT 0x0001
491 #define WM831X_IM_UV_INT_MASK 0x0001
492 #define WM831X_IM_UV_INT_SHIFT 0
493 #define WM831X_IM_UV_INT_WIDTH 1
498 #define WM831X_IM_PPM_SYSLO_EINT 0x8000
499 #define WM831X_IM_PPM_SYSLO_EINT_MASK 0x8000
500 #define WM831X_IM_PPM_SYSLO_EINT_SHIFT 15
501 #define WM831X_IM_PPM_SYSLO_EINT_WIDTH 1
502 #define WM831X_IM_PPM_PWR_SRC_EINT 0x4000
503 #define WM831X_IM_PPM_PWR_SRC_EINT_MASK 0x4000
504 #define WM831X_IM_PPM_PWR_SRC_EINT_SHIFT 14
505 #define WM831X_IM_PPM_PWR_SRC_EINT_WIDTH 1
506 #define WM831X_IM_PPM_USB_CURR_EINT 0x2000
507 #define WM831X_IM_PPM_USB_CURR_EINT_MASK 0x2000
508 #define WM831X_IM_PPM_USB_CURR_EINT_SHIFT 13
509 #define WM831X_IM_PPM_USB_CURR_EINT_WIDTH 1
510 #define WM831X_IM_ON_PIN_EINT 0x1000
511 #define WM831X_IM_ON_PIN_EINT_MASK 0x1000
512 #define WM831X_IM_ON_PIN_EINT_SHIFT 12
513 #define WM831X_IM_ON_PIN_EINT_WIDTH 1
514 #define WM831X_IM_WDOG_TO_EINT 0x0800
515 #define WM831X_IM_WDOG_TO_EINT_MASK 0x0800
516 #define WM831X_IM_WDOG_TO_EINT_SHIFT 11
517 #define WM831X_IM_WDOG_TO_EINT_WIDTH 1
518 #define WM831X_IM_TCHDATA_EINT 0x0400
519 #define WM831X_IM_TCHDATA_EINT_MASK 0x0400
520 #define WM831X_IM_TCHDATA_EINT_SHIFT 10
521 #define WM831X_IM_TCHDATA_EINT_WIDTH 1
522 #define WM831X_IM_TCHPD_EINT 0x0200
523 #define WM831X_IM_TCHPD_EINT_MASK 0x0200
524 #define WM831X_IM_TCHPD_EINT_SHIFT 9
525 #define WM831X_IM_TCHPD_EINT_WIDTH 1
526 #define WM831X_IM_AUXADC_DATA_EINT 0x0100
527 #define WM831X_IM_AUXADC_DATA_EINT_MASK 0x0100
528 #define WM831X_IM_AUXADC_DATA_EINT_SHIFT 8
529 #define WM831X_IM_AUXADC_DATA_EINT_WIDTH 1
530 #define WM831X_IM_AUXADC_DCOMP4_EINT 0x0080
531 #define WM831X_IM_AUXADC_DCOMP4_EINT_MASK 0x0080
532 #define WM831X_IM_AUXADC_DCOMP4_EINT_SHIFT 7
533 #define WM831X_IM_AUXADC_DCOMP4_EINT_WIDTH 1
534 #define WM831X_IM_AUXADC_DCOMP3_EINT 0x0040
535 #define WM831X_IM_AUXADC_DCOMP3_EINT_MASK 0x0040
536 #define WM831X_IM_AUXADC_DCOMP3_EINT_SHIFT 6
537 #define WM831X_IM_AUXADC_DCOMP3_EINT_WIDTH 1
538 #define WM831X_IM_AUXADC_DCOMP2_EINT 0x0020
539 #define WM831X_IM_AUXADC_DCOMP2_EINT_MASK 0x0020
540 #define WM831X_IM_AUXADC_DCOMP2_EINT_SHIFT 5
541 #define WM831X_IM_AUXADC_DCOMP2_EINT_WIDTH 1
542 #define WM831X_IM_AUXADC_DCOMP1_EINT 0x0010
543 #define WM831X_IM_AUXADC_DCOMP1_EINT_MASK 0x0010
544 #define WM831X_IM_AUXADC_DCOMP1_EINT_SHIFT 4
545 #define WM831X_IM_AUXADC_DCOMP1_EINT_WIDTH 1
546 #define WM831X_IM_RTC_PER_EINT 0x0008
547 #define WM831X_IM_RTC_PER_EINT_MASK 0x0008
548 #define WM831X_IM_RTC_PER_EINT_SHIFT 3
549 #define WM831X_IM_RTC_PER_EINT_WIDTH 1
550 #define WM831X_IM_RTC_ALM_EINT 0x0004
551 #define WM831X_IM_RTC_ALM_EINT_MASK 0x0004
552 #define WM831X_IM_RTC_ALM_EINT_SHIFT 2
553 #define WM831X_IM_RTC_ALM_EINT_WIDTH 1
554 #define WM831X_IM_TEMP_THW_EINT 0x0002
555 #define WM831X_IM_TEMP_THW_EINT_MASK 0x0002
556 #define WM831X_IM_TEMP_THW_EINT_SHIFT 1
557 #define WM831X_IM_TEMP_THW_EINT_WIDTH 1
562 #define WM831X_IM_CHG_BATT_HOT_EINT 0x8000
563 #define WM831X_IM_CHG_BATT_HOT_EINT_MASK 0x8000
564 #define WM831X_IM_CHG_BATT_HOT_EINT_SHIFT 15
565 #define WM831X_IM_CHG_BATT_HOT_EINT_WIDTH 1
566 #define WM831X_IM_CHG_BATT_COLD_EINT 0x4000
567 #define WM831X_IM_CHG_BATT_COLD_EINT_MASK 0x4000
568 #define WM831X_IM_CHG_BATT_COLD_EINT_SHIFT 14
569 #define WM831X_IM_CHG_BATT_COLD_EINT_WIDTH 1
570 #define WM831X_IM_CHG_BATT_FAIL_EINT 0x2000
571 #define WM831X_IM_CHG_BATT_FAIL_EINT_MASK 0x2000
572 #define WM831X_IM_CHG_BATT_FAIL_EINT_SHIFT 13
573 #define WM831X_IM_CHG_BATT_FAIL_EINT_WIDTH 1
574 #define WM831X_IM_CHG_OV_EINT 0x1000
575 #define WM831X_IM_CHG_OV_EINT_MASK 0x1000
576 #define WM831X_IM_CHG_OV_EINT_SHIFT 12
577 #define WM831X_IM_CHG_OV_EINT_WIDTH 1
578 #define WM831X_IM_CHG_END_EINT 0x0800
579 #define WM831X_IM_CHG_END_EINT_MASK 0x0800
580 #define WM831X_IM_CHG_END_EINT_SHIFT 11
581 #define WM831X_IM_CHG_END_EINT_WIDTH 1
582 #define WM831X_IM_CHG_TO_EINT 0x0400
583 #define WM831X_IM_CHG_TO_EINT_MASK 0x0400
584 #define WM831X_IM_CHG_TO_EINT_SHIFT 10
585 #define WM831X_IM_CHG_TO_EINT_WIDTH 1
586 #define WM831X_IM_CHG_MODE_EINT 0x0200
587 #define WM831X_IM_CHG_MODE_EINT_MASK 0x0200
588 #define WM831X_IM_CHG_MODE_EINT_SHIFT 9
589 #define WM831X_IM_CHG_MODE_EINT_WIDTH 1
590 #define WM831X_IM_CHG_START_EINT 0x0100
591 #define WM831X_IM_CHG_START_EINT_MASK 0x0100
592 #define WM831X_IM_CHG_START_EINT_SHIFT 8
593 #define WM831X_IM_CHG_START_EINT_WIDTH 1
594 #define WM831X_IM_CS2_EINT 0x0080
595 #define WM831X_IM_CS2_EINT_MASK 0x0080
596 #define WM831X_IM_CS2_EINT_SHIFT 7
597 #define WM831X_IM_CS2_EINT_WIDTH 1
598 #define WM831X_IM_CS1_EINT 0x0040
599 #define WM831X_IM_CS1_EINT_MASK 0x0040
600 #define WM831X_IM_CS1_EINT_SHIFT 6
601 #define WM831X_IM_CS1_EINT_WIDTH 1
602 #define WM831X_IM_OTP_CMD_END_EINT 0x0020
603 #define WM831X_IM_OTP_CMD_END_EINT_MASK 0x0020
604 #define WM831X_IM_OTP_CMD_END_EINT_SHIFT 5
605 #define WM831X_IM_OTP_CMD_END_EINT_WIDTH 1
606 #define WM831X_IM_OTP_ERR_EINT 0x0010
607 #define WM831X_IM_OTP_ERR_EINT_MASK 0x0010
608 #define WM831X_IM_OTP_ERR_EINT_SHIFT 4
609 #define WM831X_IM_OTP_ERR_EINT_WIDTH 1
610 #define WM831X_IM_PS_POR_EINT 0x0004
611 #define WM831X_IM_PS_POR_EINT_MASK 0x0004
612 #define WM831X_IM_PS_POR_EINT_SHIFT 2
613 #define WM831X_IM_PS_POR_EINT_WIDTH 1
614 #define WM831X_IM_PS_SLEEP_OFF_EINT 0x0002
615 #define WM831X_IM_PS_SLEEP_OFF_EINT_MASK 0x0002
616 #define WM831X_IM_PS_SLEEP_OFF_EINT_SHIFT 1
617 #define WM831X_IM_PS_SLEEP_OFF_EINT_WIDTH 1
618 #define WM831X_IM_PS_ON_WAKE_EINT 0x0001
619 #define WM831X_IM_PS_ON_WAKE_EINT_MASK 0x0001
620 #define WM831X_IM_PS_ON_WAKE_EINT_SHIFT 0
621 #define WM831X_IM_PS_ON_WAKE_EINT_WIDTH 1
626 #define WM831X_IM_UV_LDO10_EINT 0x0200
627 #define WM831X_IM_UV_LDO10_EINT_MASK 0x0200
628 #define WM831X_IM_UV_LDO10_EINT_SHIFT 9
629 #define WM831X_IM_UV_LDO10_EINT_WIDTH 1
630 #define WM831X_IM_UV_LDO9_EINT 0x0100
631 #define WM831X_IM_UV_LDO9_EINT_MASK 0x0100
632 #define WM831X_IM_UV_LDO9_EINT_SHIFT 8
633 #define WM831X_IM_UV_LDO9_EINT_WIDTH 1
634 #define WM831X_IM_UV_LDO8_EINT 0x0080
635 #define WM831X_IM_UV_LDO8_EINT_MASK 0x0080
636 #define WM831X_IM_UV_LDO8_EINT_SHIFT 7
637 #define WM831X_IM_UV_LDO8_EINT_WIDTH 1
638 #define WM831X_IM_UV_LDO7_EINT 0x0040
639 #define WM831X_IM_UV_LDO7_EINT_MASK 0x0040
640 #define WM831X_IM_UV_LDO7_EINT_SHIFT 6
641 #define WM831X_IM_UV_LDO7_EINT_WIDTH 1
642 #define WM831X_IM_UV_LDO6_EINT 0x0020
643 #define WM831X_IM_UV_LDO6_EINT_MASK 0x0020
644 #define WM831X_IM_UV_LDO6_EINT_SHIFT 5
645 #define WM831X_IM_UV_LDO6_EINT_WIDTH 1
646 #define WM831X_IM_UV_LDO5_EINT 0x0010
647 #define WM831X_IM_UV_LDO5_EINT_MASK 0x0010
648 #define WM831X_IM_UV_LDO5_EINT_SHIFT 4
649 #define WM831X_IM_UV_LDO5_EINT_WIDTH 1
650 #define WM831X_IM_UV_LDO4_EINT 0x0008
651 #define WM831X_IM_UV_LDO4_EINT_MASK 0x0008
652 #define WM831X_IM_UV_LDO4_EINT_SHIFT 3
653 #define WM831X_IM_UV_LDO4_EINT_WIDTH 1
654 #define WM831X_IM_UV_LDO3_EINT 0x0004
655 #define WM831X_IM_UV_LDO3_EINT_MASK 0x0004
656 #define WM831X_IM_UV_LDO3_EINT_SHIFT 2
657 #define WM831X_IM_UV_LDO3_EINT_WIDTH 1
658 #define WM831X_IM_UV_LDO2_EINT 0x0002
659 #define WM831X_IM_UV_LDO2_EINT_MASK 0x0002
660 #define WM831X_IM_UV_LDO2_EINT_SHIFT 1
661 #define WM831X_IM_UV_LDO2_EINT_WIDTH 1
662 #define WM831X_IM_UV_LDO1_EINT 0x0001
663 #define WM831X_IM_UV_LDO1_EINT_MASK 0x0001
664 #define WM831X_IM_UV_LDO1_EINT_SHIFT 0
665 #define WM831X_IM_UV_LDO1_EINT_WIDTH 1
670 #define WM831X_IM_HC_DC2_EINT 0x0200
671 #define WM831X_IM_HC_DC2_EINT_MASK 0x0200
672 #define WM831X_IM_HC_DC2_EINT_SHIFT 9
673 #define WM831X_IM_HC_DC2_EINT_WIDTH 1
674 #define WM831X_IM_HC_DC1_EINT 0x0100
675 #define WM831X_IM_HC_DC1_EINT_MASK 0x0100
676 #define WM831X_IM_HC_DC1_EINT_SHIFT 8
677 #define WM831X_IM_HC_DC1_EINT_WIDTH 1
678 #define WM831X_IM_UV_DC4_EINT 0x0008
679 #define WM831X_IM_UV_DC4_EINT_MASK 0x0008
680 #define WM831X_IM_UV_DC4_EINT_SHIFT 3
681 #define WM831X_IM_UV_DC4_EINT_WIDTH 1
682 #define WM831X_IM_UV_DC3_EINT 0x0004
683 #define WM831X_IM_UV_DC3_EINT_MASK 0x0004
684 #define WM831X_IM_UV_DC3_EINT_SHIFT 2
685 #define WM831X_IM_UV_DC3_EINT_WIDTH 1
686 #define WM831X_IM_UV_DC2_EINT 0x0002
687 #define WM831X_IM_UV_DC2_EINT_MASK 0x0002
688 #define WM831X_IM_UV_DC2_EINT_SHIFT 1
689 #define WM831X_IM_UV_DC2_EINT_WIDTH 1
690 #define WM831X_IM_UV_DC1_EINT 0x0001
691 #define WM831X_IM_UV_DC1_EINT_MASK 0x0001
692 #define WM831X_IM_UV_DC1_EINT_SHIFT 0
693 #define WM831X_IM_UV_DC1_EINT_WIDTH 1
698 #define WM831X_IM_GP16_EINT 0x8000
699 #define WM831X_IM_GP16_EINT_MASK 0x8000
700 #define WM831X_IM_GP16_EINT_SHIFT 15
701 #define WM831X_IM_GP16_EINT_WIDTH 1
702 #define WM831X_IM_GP15_EINT 0x4000
703 #define WM831X_IM_GP15_EINT_MASK 0x4000
704 #define WM831X_IM_GP15_EINT_SHIFT 14
705 #define WM831X_IM_GP15_EINT_WIDTH 1
706 #define WM831X_IM_GP14_EINT 0x2000
707 #define WM831X_IM_GP14_EINT_MASK 0x2000
708 #define WM831X_IM_GP14_EINT_SHIFT 13
709 #define WM831X_IM_GP14_EINT_WIDTH 1
710 #define WM831X_IM_GP13_EINT 0x1000
711 #define WM831X_IM_GP13_EINT_MASK 0x1000
712 #define WM831X_IM_GP13_EINT_SHIFT 12
713 #define WM831X_IM_GP13_EINT_WIDTH 1
714 #define WM831X_IM_GP12_EINT 0x0800
715 #define WM831X_IM_GP12_EINT_MASK 0x0800
716 #define WM831X_IM_GP12_EINT_SHIFT 11
717 #define WM831X_IM_GP12_EINT_WIDTH 1
718 #define WM831X_IM_GP11_EINT 0x0400
719 #define WM831X_IM_GP11_EINT_MASK 0x0400
720 #define WM831X_IM_GP11_EINT_SHIFT 10
721 #define WM831X_IM_GP11_EINT_WIDTH 1
722 #define WM831X_IM_GP10_EINT 0x0200
723 #define WM831X_IM_GP10_EINT_MASK 0x0200
724 #define WM831X_IM_GP10_EINT_SHIFT 9
725 #define WM831X_IM_GP10_EINT_WIDTH 1
726 #define WM831X_IM_GP9_EINT 0x0100
727 #define WM831X_IM_GP9_EINT_MASK 0x0100
728 #define WM831X_IM_GP9_EINT_SHIFT 8
729 #define WM831X_IM_GP9_EINT_WIDTH 1
730 #define WM831X_IM_GP8_EINT 0x0080
731 #define WM831X_IM_GP8_EINT_MASK 0x0080
732 #define WM831X_IM_GP8_EINT_SHIFT 7
733 #define WM831X_IM_GP8_EINT_WIDTH 1
734 #define WM831X_IM_GP7_EINT 0x0040
735 #define WM831X_IM_GP7_EINT_MASK 0x0040
736 #define WM831X_IM_GP7_EINT_SHIFT 6
737 #define WM831X_IM_GP7_EINT_WIDTH 1
738 #define WM831X_IM_GP6_EINT 0x0020
739 #define WM831X_IM_GP6_EINT_MASK 0x0020
740 #define WM831X_IM_GP6_EINT_SHIFT 5
741 #define WM831X_IM_GP6_EINT_WIDTH 1
742 #define WM831X_IM_GP5_EINT 0x0010
743 #define WM831X_IM_GP5_EINT_MASK 0x0010
744 #define WM831X_IM_GP5_EINT_SHIFT 4
745 #define WM831X_IM_GP5_EINT_WIDTH 1
746 #define WM831X_IM_GP4_EINT 0x0008
747 #define WM831X_IM_GP4_EINT_MASK 0x0008
748 #define WM831X_IM_GP4_EINT_SHIFT 3
749 #define WM831X_IM_GP4_EINT_WIDTH 1
750 #define WM831X_IM_GP3_EINT 0x0004
751 #define WM831X_IM_GP3_EINT_MASK 0x0004
752 #define WM831X_IM_GP3_EINT_SHIFT 2
753 #define WM831X_IM_GP3_EINT_WIDTH 1
754 #define WM831X_IM_GP2_EINT 0x0002
755 #define WM831X_IM_GP2_EINT_MASK 0x0002
756 #define WM831X_IM_GP2_EINT_SHIFT 1
757 #define WM831X_IM_GP2_EINT_WIDTH 1
758 #define WM831X_IM_GP1_EINT 0x0001
759 #define WM831X_IM_GP1_EINT_MASK 0x0001
760 #define WM831X_IM_GP1_EINT_SHIFT 0
761 #define WM831X_IM_GP1_EINT_WIDTH 1