irq.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. /* irq.h
  2. *
  3. * Copyright (c) 2012 Samsung Electronics Co., Ltd
  4. * http://www.samsung.com
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. */
  12. #ifndef __LINUX_MFD_SEC_IRQ_H
  13. #define __LINUX_MFD_SEC_IRQ_H
  14. enum s2mpa01_irq {
  15. S2MPA01_IRQ_PWRONF,
  16. S2MPA01_IRQ_PWRONR,
  17. S2MPA01_IRQ_JIGONBF,
  18. S2MPA01_IRQ_JIGONBR,
  19. S2MPA01_IRQ_ACOKBF,
  20. S2MPA01_IRQ_ACOKBR,
  21. S2MPA01_IRQ_PWRON1S,
  22. S2MPA01_IRQ_MRB,
  23. S2MPA01_IRQ_RTC60S,
  24. S2MPA01_IRQ_RTCA1,
  25. S2MPA01_IRQ_RTCA0,
  26. S2MPA01_IRQ_SMPL,
  27. S2MPA01_IRQ_RTC1S,
  28. S2MPA01_IRQ_WTSR,
  29. S2MPA01_IRQ_INT120C,
  30. S2MPA01_IRQ_INT140C,
  31. S2MPA01_IRQ_LDO3_TSD,
  32. S2MPA01_IRQ_B16_TSD,
  33. S2MPA01_IRQ_B24_TSD,
  34. S2MPA01_IRQ_B35_TSD,
  35. S2MPA01_IRQ_NR,
  36. };
  37. #define S2MPA01_IRQ_PWRONF_MASK (1 << 0)
  38. #define S2MPA01_IRQ_PWRONR_MASK (1 << 1)
  39. #define S2MPA01_IRQ_JIGONBF_MASK (1 << 2)
  40. #define S2MPA01_IRQ_JIGONBR_MASK (1 << 3)
  41. #define S2MPA01_IRQ_ACOKBF_MASK (1 << 4)
  42. #define S2MPA01_IRQ_ACOKBR_MASK (1 << 5)
  43. #define S2MPA01_IRQ_PWRON1S_MASK (1 << 6)
  44. #define S2MPA01_IRQ_MRB_MASK (1 << 7)
  45. #define S2MPA01_IRQ_RTC60S_MASK (1 << 0)
  46. #define S2MPA01_IRQ_RTCA1_MASK (1 << 1)
  47. #define S2MPA01_IRQ_RTCA0_MASK (1 << 2)
  48. #define S2MPA01_IRQ_SMPL_MASK (1 << 3)
  49. #define S2MPA01_IRQ_RTC1S_MASK (1 << 4)
  50. #define S2MPA01_IRQ_WTSR_MASK (1 << 5)
  51. #define S2MPA01_IRQ_INT120C_MASK (1 << 0)
  52. #define S2MPA01_IRQ_INT140C_MASK (1 << 1)
  53. #define S2MPA01_IRQ_LDO3_TSD_MASK (1 << 2)
  54. #define S2MPA01_IRQ_B16_TSD_MASK (1 << 3)
  55. #define S2MPA01_IRQ_B24_TSD_MASK (1 << 4)
  56. #define S2MPA01_IRQ_B35_TSD_MASK (1 << 5)
  57. enum s2mps11_irq {
  58. S2MPS11_IRQ_PWRONF,
  59. S2MPS11_IRQ_PWRONR,
  60. S2MPS11_IRQ_JIGONBF,
  61. S2MPS11_IRQ_JIGONBR,
  62. S2MPS11_IRQ_ACOKBF,
  63. S2MPS11_IRQ_ACOKBR,
  64. S2MPS11_IRQ_PWRON1S,
  65. S2MPS11_IRQ_MRB,
  66. S2MPS11_IRQ_RTC60S,
  67. S2MPS11_IRQ_RTCA1,
  68. S2MPS11_IRQ_RTCA0,
  69. S2MPS11_IRQ_SMPL,
  70. S2MPS11_IRQ_RTC1S,
  71. S2MPS11_IRQ_WTSR,
  72. S2MPS11_IRQ_INT120C,
  73. S2MPS11_IRQ_INT140C,
  74. S2MPS11_IRQ_NR,
  75. };
  76. #define S2MPS11_IRQ_PWRONF_MASK (1 << 0)
  77. #define S2MPS11_IRQ_PWRONR_MASK (1 << 1)
  78. #define S2MPS11_IRQ_JIGONBF_MASK (1 << 2)
  79. #define S2MPS11_IRQ_JIGONBR_MASK (1 << 3)
  80. #define S2MPS11_IRQ_ACOKBF_MASK (1 << 4)
  81. #define S2MPS11_IRQ_ACOKBR_MASK (1 << 5)
  82. #define S2MPS11_IRQ_PWRON1S_MASK (1 << 6)
  83. #define S2MPS11_IRQ_MRB_MASK (1 << 7)
  84. #define S2MPS11_IRQ_RTC60S_MASK (1 << 0)
  85. #define S2MPS11_IRQ_RTCA1_MASK (1 << 1)
  86. #define S2MPS11_IRQ_RTCA0_MASK (1 << 2)
  87. #define S2MPS11_IRQ_SMPL_MASK (1 << 3)
  88. #define S2MPS11_IRQ_RTC1S_MASK (1 << 4)
  89. #define S2MPS11_IRQ_WTSR_MASK (1 << 5)
  90. #define S2MPS11_IRQ_INT120C_MASK (1 << 0)
  91. #define S2MPS11_IRQ_INT140C_MASK (1 << 1)
  92. enum s2mps14_irq {
  93. S2MPS14_IRQ_PWRONF,
  94. S2MPS14_IRQ_PWRONR,
  95. S2MPS14_IRQ_JIGONBF,
  96. S2MPS14_IRQ_JIGONBR,
  97. S2MPS14_IRQ_ACOKBF,
  98. S2MPS14_IRQ_ACOKBR,
  99. S2MPS14_IRQ_PWRON1S,
  100. S2MPS14_IRQ_MRB,
  101. S2MPS14_IRQ_RTC60S,
  102. S2MPS14_IRQ_RTCA1,
  103. S2MPS14_IRQ_RTCA0,
  104. S2MPS14_IRQ_SMPL,
  105. S2MPS14_IRQ_RTC1S,
  106. S2MPS14_IRQ_WTSR,
  107. S2MPS14_IRQ_INT120C,
  108. S2MPS14_IRQ_INT140C,
  109. S2MPS14_IRQ_TSD,
  110. S2MPS14_IRQ_NR,
  111. };
  112. enum s2mpu02_irq {
  113. S2MPU02_IRQ_PWRONF,
  114. S2MPU02_IRQ_PWRONR,
  115. S2MPU02_IRQ_JIGONBF,
  116. S2MPU02_IRQ_JIGONBR,
  117. S2MPU02_IRQ_ACOKBF,
  118. S2MPU02_IRQ_ACOKBR,
  119. S2MPU02_IRQ_PWRON1S,
  120. S2MPU02_IRQ_MRB,
  121. S2MPU02_IRQ_RTC60S,
  122. S2MPU02_IRQ_RTCA1,
  123. S2MPU02_IRQ_RTCA0,
  124. S2MPU02_IRQ_SMPL,
  125. S2MPU02_IRQ_RTC1S,
  126. S2MPU02_IRQ_WTSR,
  127. S2MPU02_IRQ_INT120C,
  128. S2MPU02_IRQ_INT140C,
  129. S2MPU02_IRQ_TSD,
  130. S2MPU02_IRQ_NR,
  131. };
  132. /* Masks for interrupts are the same as in s2mps11 */
  133. #define S2MPS14_IRQ_TSD_MASK (1 << 2)
  134. enum s5m8767_irq {
  135. S5M8767_IRQ_PWRR,
  136. S5M8767_IRQ_PWRF,
  137. S5M8767_IRQ_PWR1S,
  138. S5M8767_IRQ_JIGR,
  139. S5M8767_IRQ_JIGF,
  140. S5M8767_IRQ_LOWBAT2,
  141. S5M8767_IRQ_LOWBAT1,
  142. S5M8767_IRQ_MRB,
  143. S5M8767_IRQ_DVSOK2,
  144. S5M8767_IRQ_DVSOK3,
  145. S5M8767_IRQ_DVSOK4,
  146. S5M8767_IRQ_RTC60S,
  147. S5M8767_IRQ_RTCA1,
  148. S5M8767_IRQ_RTCA2,
  149. S5M8767_IRQ_SMPL,
  150. S5M8767_IRQ_RTC1S,
  151. S5M8767_IRQ_WTSR,
  152. S5M8767_IRQ_NR,
  153. };
  154. #define S5M8767_IRQ_PWRR_MASK (1 << 0)
  155. #define S5M8767_IRQ_PWRF_MASK (1 << 1)
  156. #define S5M8767_IRQ_PWR1S_MASK (1 << 3)
  157. #define S5M8767_IRQ_JIGR_MASK (1 << 4)
  158. #define S5M8767_IRQ_JIGF_MASK (1 << 5)
  159. #define S5M8767_IRQ_LOWBAT2_MASK (1 << 6)
  160. #define S5M8767_IRQ_LOWBAT1_MASK (1 << 7)
  161. #define S5M8767_IRQ_MRB_MASK (1 << 2)
  162. #define S5M8767_IRQ_DVSOK2_MASK (1 << 3)
  163. #define S5M8767_IRQ_DVSOK3_MASK (1 << 4)
  164. #define S5M8767_IRQ_DVSOK4_MASK (1 << 5)
  165. #define S5M8767_IRQ_RTC60S_MASK (1 << 0)
  166. #define S5M8767_IRQ_RTCA1_MASK (1 << 1)
  167. #define S5M8767_IRQ_RTCA2_MASK (1 << 2)
  168. #define S5M8767_IRQ_SMPL_MASK (1 << 3)
  169. #define S5M8767_IRQ_RTC1S_MASK (1 << 4)
  170. #define S5M8767_IRQ_WTSR_MASK (1 << 5)
  171. enum s5m8763_irq {
  172. S5M8763_IRQ_DCINF,
  173. S5M8763_IRQ_DCINR,
  174. S5M8763_IRQ_JIGF,
  175. S5M8763_IRQ_JIGR,
  176. S5M8763_IRQ_PWRONF,
  177. S5M8763_IRQ_PWRONR,
  178. S5M8763_IRQ_WTSREVNT,
  179. S5M8763_IRQ_SMPLEVNT,
  180. S5M8763_IRQ_ALARM1,
  181. S5M8763_IRQ_ALARM0,
  182. S5M8763_IRQ_ONKEY1S,
  183. S5M8763_IRQ_TOPOFFR,
  184. S5M8763_IRQ_DCINOVPR,
  185. S5M8763_IRQ_CHGRSTF,
  186. S5M8763_IRQ_DONER,
  187. S5M8763_IRQ_CHGFAULT,
  188. S5M8763_IRQ_LOBAT1,
  189. S5M8763_IRQ_LOBAT2,
  190. S5M8763_IRQ_NR,
  191. };
  192. #define S5M8763_IRQ_DCINF_MASK (1 << 2)
  193. #define S5M8763_IRQ_DCINR_MASK (1 << 3)
  194. #define S5M8763_IRQ_JIGF_MASK (1 << 4)
  195. #define S5M8763_IRQ_JIGR_MASK (1 << 5)
  196. #define S5M8763_IRQ_PWRONF_MASK (1 << 6)
  197. #define S5M8763_IRQ_PWRONR_MASK (1 << 7)
  198. #define S5M8763_IRQ_WTSREVNT_MASK (1 << 0)
  199. #define S5M8763_IRQ_SMPLEVNT_MASK (1 << 1)
  200. #define S5M8763_IRQ_ALARM1_MASK (1 << 2)
  201. #define S5M8763_IRQ_ALARM0_MASK (1 << 3)
  202. #define S5M8763_IRQ_ONKEY1S_MASK (1 << 0)
  203. #define S5M8763_IRQ_TOPOFFR_MASK (1 << 2)
  204. #define S5M8763_IRQ_DCINOVPR_MASK (1 << 3)
  205. #define S5M8763_IRQ_CHGRSTF_MASK (1 << 4)
  206. #define S5M8763_IRQ_DONER_MASK (1 << 5)
  207. #define S5M8763_IRQ_CHGFAULT_MASK (1 << 7)
  208. #define S5M8763_IRQ_LOBAT1_MASK (1 << 0)
  209. #define S5M8763_IRQ_LOBAT2_MASK (1 << 1)
  210. #define S5M8763_ENRAMP (1 << 4)
  211. #endif /* __LINUX_MFD_SEC_IRQ_H */