irq.h 50 KB

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