3 * Copyright (c) 2012 Samsung Electronics Co., Ltd
4 * http://www.samsung.com
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.
13 #ifndef __LINUX_MFD_SEC_IRQ_H
14 #define __LINUX_MFD_SEC_IRQ_H
43 #define S2MPA01_IRQ_PWRONF_MASK (1 << 0)
44 #define S2MPA01_IRQ_PWRONR_MASK (1 << 1)
45 #define S2MPA01_IRQ_JIGONBF_MASK (1 << 2)
46 #define S2MPA01_IRQ_JIGONBR_MASK (1 << 3)
47 #define S2MPA01_IRQ_ACOKBF_MASK (1 << 4)
48 #define S2MPA01_IRQ_ACOKBR_MASK (1 << 5)
49 #define S2MPA01_IRQ_PWRON1S_MASK (1 << 6)
50 #define S2MPA01_IRQ_MRB_MASK (1 << 7)
52 #define S2MPA01_IRQ_RTC60S_MASK (1 << 0)
53 #define S2MPA01_IRQ_RTCA1_MASK (1 << 1)
54 #define S2MPA01_IRQ_RTCA0_MASK (1 << 2)
55 #define S2MPA01_IRQ_SMPL_MASK (1 << 3)
56 #define S2MPA01_IRQ_RTC1S_MASK (1 << 4)
57 #define S2MPA01_IRQ_WTSR_MASK (1 << 5)
59 #define S2MPA01_IRQ_INT120C_MASK (1 << 0)
60 #define S2MPA01_IRQ_INT140C_MASK (1 << 1)
61 #define S2MPA01_IRQ_LDO3_TSD_MASK (1 << 2)
62 #define S2MPA01_IRQ_B16_TSD_MASK (1 << 3)
63 #define S2MPA01_IRQ_B24_TSD_MASK (1 << 4)
64 #define S2MPA01_IRQ_B35_TSD_MASK (1 << 5)
89 #define S2MPS11_IRQ_PWRONF_MASK (1 << 0)
90 #define S2MPS11_IRQ_PWRONR_MASK (1 << 1)
91 #define S2MPS11_IRQ_JIGONBF_MASK (1 << 2)
92 #define S2MPS11_IRQ_JIGONBR_MASK (1 << 3)
93 #define S2MPS11_IRQ_ACOKBF_MASK (1 << 4)
94 #define S2MPS11_IRQ_ACOKBR_MASK (1 << 5)
95 #define S2MPS11_IRQ_PWRON1S_MASK (1 << 6)
96 #define S2MPS11_IRQ_MRB_MASK (1 << 7)
98 #define S2MPS11_IRQ_RTC60S_MASK (1 << 0)
99 #define S2MPS11_IRQ_RTCA1_MASK (1 << 1)
100 #define S2MPS11_IRQ_RTCA0_MASK (1 << 2)
101 #define S2MPS11_IRQ_SMPL_MASK (1 << 3)
102 #define S2MPS11_IRQ_RTC1S_MASK (1 << 4)
103 #define S2MPS11_IRQ_WTSR_MASK (1 << 5)
105 #define S2MPS11_IRQ_INT120C_MASK (1 << 0)
106 #define S2MPS11_IRQ_INT140C_MASK (1 << 1)
156 /* Masks for interrupts are the same as in s2mps11 */
157 #define S2MPS14_IRQ_TSD_MASK (1 << 2)
183 #define S5M8767_IRQ_PWRR_MASK (1 << 0)
184 #define S5M8767_IRQ_PWRF_MASK (1 << 1)
185 #define S5M8767_IRQ_PWR1S_MASK (1 << 3)
186 #define S5M8767_IRQ_JIGR_MASK (1 << 4)
187 #define S5M8767_IRQ_JIGF_MASK (1 << 5)
188 #define S5M8767_IRQ_LOWBAT2_MASK (1 << 6)
189 #define S5M8767_IRQ_LOWBAT1_MASK (1 << 7)
191 #define S5M8767_IRQ_MRB_MASK (1 << 2)
192 #define S5M8767_IRQ_DVSOK2_MASK (1 << 3)
193 #define S5M8767_IRQ_DVSOK3_MASK (1 << 4)
194 #define S5M8767_IRQ_DVSOK4_MASK (1 << 5)
196 #define S5M8767_IRQ_RTC60S_MASK (1 << 0)
197 #define S5M8767_IRQ_RTCA1_MASK (1 << 1)
198 #define S5M8767_IRQ_RTCA2_MASK (1 << 2)
199 #define S5M8767_IRQ_SMPL_MASK (1 << 3)
200 #define S5M8767_IRQ_RTC1S_MASK (1 << 4)
201 #define S5M8767_IRQ_WTSR_MASK (1 << 5)
211 S5M8763_IRQ_WTSREVNT
,
212 S5M8763_IRQ_SMPLEVNT
,
218 S5M8763_IRQ_DCINOVPR
,
221 S5M8763_IRQ_CHGFAULT
,
229 #define S5M8763_IRQ_DCINF_MASK (1 << 2)
230 #define S5M8763_IRQ_DCINR_MASK (1 << 3)
231 #define S5M8763_IRQ_JIGF_MASK (1 << 4)
232 #define S5M8763_IRQ_JIGR_MASK (1 << 5)
233 #define S5M8763_IRQ_PWRONF_MASK (1 << 6)
234 #define S5M8763_IRQ_PWRONR_MASK (1 << 7)
236 #define S5M8763_IRQ_WTSREVNT_MASK (1 << 0)
237 #define S5M8763_IRQ_SMPLEVNT_MASK (1 << 1)
238 #define S5M8763_IRQ_ALARM1_MASK (1 << 2)
239 #define S5M8763_IRQ_ALARM0_MASK (1 << 3)
241 #define S5M8763_IRQ_ONKEY1S_MASK (1 << 0)
242 #define S5M8763_IRQ_TOPOFFR_MASK (1 << 2)
243 #define S5M8763_IRQ_DCINOVPR_MASK (1 << 3)
244 #define S5M8763_IRQ_CHGRSTF_MASK (1 << 4)
245 #define S5M8763_IRQ_DONER_MASK (1 << 5)
246 #define S5M8763_IRQ_CHGFAULT_MASK (1 << 7)
248 #define S5M8763_IRQ_LOBAT1_MASK (1 << 0)
249 #define S5M8763_IRQ_LOBAT2_MASK (1 << 1)
251 #define S5M8763_ENRAMP (1 << 4)
253 #endif /* __LINUX_MFD_SEC_IRQ_H */