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