1 /* SPDX-License-Identifier: GPL-2.0+ */ 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 2 /* 3 * Copyright (c) 2012 Samsung Electronics Co., 3 * Copyright (c) 2012 Samsung Electronics Co., Ltd 4 * http://www.samsung.com 4 * http://www.samsung.com 5 */ 5 */ 6 6 7 #ifndef __LINUX_MFD_SEC_IRQ_H 7 #ifndef __LINUX_MFD_SEC_IRQ_H 8 #define __LINUX_MFD_SEC_IRQ_H 8 #define __LINUX_MFD_SEC_IRQ_H 9 9 10 enum s2mpa01_irq { 10 enum s2mpa01_irq { 11 S2MPA01_IRQ_PWRONF, 11 S2MPA01_IRQ_PWRONF, 12 S2MPA01_IRQ_PWRONR, 12 S2MPA01_IRQ_PWRONR, 13 S2MPA01_IRQ_JIGONBF, 13 S2MPA01_IRQ_JIGONBF, 14 S2MPA01_IRQ_JIGONBR, 14 S2MPA01_IRQ_JIGONBR, 15 S2MPA01_IRQ_ACOKBF, 15 S2MPA01_IRQ_ACOKBF, 16 S2MPA01_IRQ_ACOKBR, 16 S2MPA01_IRQ_ACOKBR, 17 S2MPA01_IRQ_PWRON1S, 17 S2MPA01_IRQ_PWRON1S, 18 S2MPA01_IRQ_MRB, 18 S2MPA01_IRQ_MRB, 19 19 20 S2MPA01_IRQ_RTC60S, 20 S2MPA01_IRQ_RTC60S, 21 S2MPA01_IRQ_RTCA1, 21 S2MPA01_IRQ_RTCA1, 22 S2MPA01_IRQ_RTCA0, 22 S2MPA01_IRQ_RTCA0, 23 S2MPA01_IRQ_SMPL, 23 S2MPA01_IRQ_SMPL, 24 S2MPA01_IRQ_RTC1S, 24 S2MPA01_IRQ_RTC1S, 25 S2MPA01_IRQ_WTSR, 25 S2MPA01_IRQ_WTSR, 26 26 27 S2MPA01_IRQ_INT120C, 27 S2MPA01_IRQ_INT120C, 28 S2MPA01_IRQ_INT140C, 28 S2MPA01_IRQ_INT140C, 29 S2MPA01_IRQ_LDO3_TSD, 29 S2MPA01_IRQ_LDO3_TSD, 30 S2MPA01_IRQ_B16_TSD, 30 S2MPA01_IRQ_B16_TSD, 31 S2MPA01_IRQ_B24_TSD, 31 S2MPA01_IRQ_B24_TSD, 32 S2MPA01_IRQ_B35_TSD, 32 S2MPA01_IRQ_B35_TSD, 33 33 34 S2MPA01_IRQ_NR, 34 S2MPA01_IRQ_NR, 35 }; 35 }; 36 36 37 #define S2MPA01_IRQ_PWRONF_MASK (1 << 37 #define S2MPA01_IRQ_PWRONF_MASK (1 << 0) 38 #define S2MPA01_IRQ_PWRONR_MASK (1 << 38 #define S2MPA01_IRQ_PWRONR_MASK (1 << 1) 39 #define S2MPA01_IRQ_JIGONBF_MASK (1 << 39 #define S2MPA01_IRQ_JIGONBF_MASK (1 << 2) 40 #define S2MPA01_IRQ_JIGONBR_MASK (1 << 40 #define S2MPA01_IRQ_JIGONBR_MASK (1 << 3) 41 #define S2MPA01_IRQ_ACOKBF_MASK (1 << 41 #define S2MPA01_IRQ_ACOKBF_MASK (1 << 4) 42 #define S2MPA01_IRQ_ACOKBR_MASK (1 << 42 #define S2MPA01_IRQ_ACOKBR_MASK (1 << 5) 43 #define S2MPA01_IRQ_PWRON1S_MASK (1 << 43 #define S2MPA01_IRQ_PWRON1S_MASK (1 << 6) 44 #define S2MPA01_IRQ_MRB_MASK (1 << 44 #define S2MPA01_IRQ_MRB_MASK (1 << 7) 45 45 46 #define S2MPA01_IRQ_RTC60S_MASK (1 << 46 #define S2MPA01_IRQ_RTC60S_MASK (1 << 0) 47 #define S2MPA01_IRQ_RTCA1_MASK (1 << 47 #define S2MPA01_IRQ_RTCA1_MASK (1 << 1) 48 #define S2MPA01_IRQ_RTCA0_MASK (1 << 48 #define S2MPA01_IRQ_RTCA0_MASK (1 << 2) 49 #define S2MPA01_IRQ_SMPL_MASK (1 << 49 #define S2MPA01_IRQ_SMPL_MASK (1 << 3) 50 #define S2MPA01_IRQ_RTC1S_MASK (1 << 50 #define S2MPA01_IRQ_RTC1S_MASK (1 << 4) 51 #define S2MPA01_IRQ_WTSR_MASK (1 << 51 #define S2MPA01_IRQ_WTSR_MASK (1 << 5) 52 52 53 #define S2MPA01_IRQ_INT120C_MASK (1 << 53 #define S2MPA01_IRQ_INT120C_MASK (1 << 0) 54 #define S2MPA01_IRQ_INT140C_MASK (1 << 54 #define S2MPA01_IRQ_INT140C_MASK (1 << 1) 55 #define S2MPA01_IRQ_LDO3_TSD_MASK (1 << 55 #define S2MPA01_IRQ_LDO3_TSD_MASK (1 << 2) 56 #define S2MPA01_IRQ_B16_TSD_MASK (1 << 56 #define S2MPA01_IRQ_B16_TSD_MASK (1 << 3) 57 #define S2MPA01_IRQ_B24_TSD_MASK (1 << 57 #define S2MPA01_IRQ_B24_TSD_MASK (1 << 4) 58 #define S2MPA01_IRQ_B35_TSD_MASK (1 << 58 #define S2MPA01_IRQ_B35_TSD_MASK (1 << 5) 59 59 60 enum s2mps11_irq { 60 enum s2mps11_irq { 61 S2MPS11_IRQ_PWRONF, 61 S2MPS11_IRQ_PWRONF, 62 S2MPS11_IRQ_PWRONR, 62 S2MPS11_IRQ_PWRONR, 63 S2MPS11_IRQ_JIGONBF, 63 S2MPS11_IRQ_JIGONBF, 64 S2MPS11_IRQ_JIGONBR, 64 S2MPS11_IRQ_JIGONBR, 65 S2MPS11_IRQ_ACOKBF, 65 S2MPS11_IRQ_ACOKBF, 66 S2MPS11_IRQ_ACOKBR, 66 S2MPS11_IRQ_ACOKBR, 67 S2MPS11_IRQ_PWRON1S, 67 S2MPS11_IRQ_PWRON1S, 68 S2MPS11_IRQ_MRB, 68 S2MPS11_IRQ_MRB, 69 69 70 S2MPS11_IRQ_RTC60S, 70 S2MPS11_IRQ_RTC60S, 71 S2MPS11_IRQ_RTCA1, 71 S2MPS11_IRQ_RTCA1, 72 S2MPS11_IRQ_RTCA0, 72 S2MPS11_IRQ_RTCA0, 73 S2MPS11_IRQ_SMPL, 73 S2MPS11_IRQ_SMPL, 74 S2MPS11_IRQ_RTC1S, 74 S2MPS11_IRQ_RTC1S, 75 S2MPS11_IRQ_WTSR, 75 S2MPS11_IRQ_WTSR, 76 76 77 S2MPS11_IRQ_INT120C, 77 S2MPS11_IRQ_INT120C, 78 S2MPS11_IRQ_INT140C, 78 S2MPS11_IRQ_INT140C, 79 79 80 S2MPS11_IRQ_NR, 80 S2MPS11_IRQ_NR, 81 }; 81 }; 82 82 83 #define S2MPS11_IRQ_PWRONF_MASK (1 << 83 #define S2MPS11_IRQ_PWRONF_MASK (1 << 0) 84 #define S2MPS11_IRQ_PWRONR_MASK (1 << 84 #define S2MPS11_IRQ_PWRONR_MASK (1 << 1) 85 #define S2MPS11_IRQ_JIGONBF_MASK (1 << 85 #define S2MPS11_IRQ_JIGONBF_MASK (1 << 2) 86 #define S2MPS11_IRQ_JIGONBR_MASK (1 << 86 #define S2MPS11_IRQ_JIGONBR_MASK (1 << 3) 87 #define S2MPS11_IRQ_ACOKBF_MASK (1 << 87 #define S2MPS11_IRQ_ACOKBF_MASK (1 << 4) 88 #define S2MPS11_IRQ_ACOKBR_MASK (1 << 88 #define S2MPS11_IRQ_ACOKBR_MASK (1 << 5) 89 #define S2MPS11_IRQ_PWRON1S_MASK (1 << 89 #define S2MPS11_IRQ_PWRON1S_MASK (1 << 6) 90 #define S2MPS11_IRQ_MRB_MASK (1 << 90 #define S2MPS11_IRQ_MRB_MASK (1 << 7) 91 91 92 #define S2MPS11_IRQ_RTC60S_MASK (1 << 92 #define S2MPS11_IRQ_RTC60S_MASK (1 << 0) 93 #define S2MPS11_IRQ_RTCA1_MASK (1 << 93 #define S2MPS11_IRQ_RTCA1_MASK (1 << 1) 94 #define S2MPS11_IRQ_RTCA0_MASK (1 << 94 #define S2MPS11_IRQ_RTCA0_MASK (1 << 2) 95 #define S2MPS11_IRQ_SMPL_MASK (1 << 95 #define S2MPS11_IRQ_SMPL_MASK (1 << 3) 96 #define S2MPS11_IRQ_RTC1S_MASK (1 << 96 #define S2MPS11_IRQ_RTC1S_MASK (1 << 4) 97 #define S2MPS11_IRQ_WTSR_MASK (1 << 97 #define S2MPS11_IRQ_WTSR_MASK (1 << 5) 98 98 99 #define S2MPS11_IRQ_INT120C_MASK (1 << 99 #define S2MPS11_IRQ_INT120C_MASK (1 << 0) 100 #define S2MPS11_IRQ_INT140C_MASK (1 << 100 #define S2MPS11_IRQ_INT140C_MASK (1 << 1) 101 101 102 enum s2mps14_irq { 102 enum s2mps14_irq { 103 S2MPS14_IRQ_PWRONF, 103 S2MPS14_IRQ_PWRONF, 104 S2MPS14_IRQ_PWRONR, 104 S2MPS14_IRQ_PWRONR, 105 S2MPS14_IRQ_JIGONBF, 105 S2MPS14_IRQ_JIGONBF, 106 S2MPS14_IRQ_JIGONBR, 106 S2MPS14_IRQ_JIGONBR, 107 S2MPS14_IRQ_ACOKBF, 107 S2MPS14_IRQ_ACOKBF, 108 S2MPS14_IRQ_ACOKBR, 108 S2MPS14_IRQ_ACOKBR, 109 S2MPS14_IRQ_PWRON1S, 109 S2MPS14_IRQ_PWRON1S, 110 S2MPS14_IRQ_MRB, 110 S2MPS14_IRQ_MRB, 111 111 112 S2MPS14_IRQ_RTC60S, 112 S2MPS14_IRQ_RTC60S, 113 S2MPS14_IRQ_RTCA1, 113 S2MPS14_IRQ_RTCA1, 114 S2MPS14_IRQ_RTCA0, 114 S2MPS14_IRQ_RTCA0, 115 S2MPS14_IRQ_SMPL, 115 S2MPS14_IRQ_SMPL, 116 S2MPS14_IRQ_RTC1S, 116 S2MPS14_IRQ_RTC1S, 117 S2MPS14_IRQ_WTSR, 117 S2MPS14_IRQ_WTSR, 118 118 119 S2MPS14_IRQ_INT120C, 119 S2MPS14_IRQ_INT120C, 120 S2MPS14_IRQ_INT140C, 120 S2MPS14_IRQ_INT140C, 121 S2MPS14_IRQ_TSD, 121 S2MPS14_IRQ_TSD, 122 122 123 S2MPS14_IRQ_NR, 123 S2MPS14_IRQ_NR, 124 }; 124 }; 125 125 126 enum s2mpu02_irq { 126 enum s2mpu02_irq { 127 S2MPU02_IRQ_PWRONF, 127 S2MPU02_IRQ_PWRONF, 128 S2MPU02_IRQ_PWRONR, 128 S2MPU02_IRQ_PWRONR, 129 S2MPU02_IRQ_JIGONBF, 129 S2MPU02_IRQ_JIGONBF, 130 S2MPU02_IRQ_JIGONBR, 130 S2MPU02_IRQ_JIGONBR, 131 S2MPU02_IRQ_ACOKBF, 131 S2MPU02_IRQ_ACOKBF, 132 S2MPU02_IRQ_ACOKBR, 132 S2MPU02_IRQ_ACOKBR, 133 S2MPU02_IRQ_PWRON1S, 133 S2MPU02_IRQ_PWRON1S, 134 S2MPU02_IRQ_MRB, 134 S2MPU02_IRQ_MRB, 135 135 136 S2MPU02_IRQ_RTC60S, 136 S2MPU02_IRQ_RTC60S, 137 S2MPU02_IRQ_RTCA1, 137 S2MPU02_IRQ_RTCA1, 138 S2MPU02_IRQ_RTCA0, 138 S2MPU02_IRQ_RTCA0, 139 S2MPU02_IRQ_SMPL, 139 S2MPU02_IRQ_SMPL, 140 S2MPU02_IRQ_RTC1S, 140 S2MPU02_IRQ_RTC1S, 141 S2MPU02_IRQ_WTSR, 141 S2MPU02_IRQ_WTSR, 142 142 143 S2MPU02_IRQ_INT120C, 143 S2MPU02_IRQ_INT120C, 144 S2MPU02_IRQ_INT140C, 144 S2MPU02_IRQ_INT140C, 145 S2MPU02_IRQ_TSD, 145 S2MPU02_IRQ_TSD, 146 146 147 S2MPU02_IRQ_NR, 147 S2MPU02_IRQ_NR, 148 }; 148 }; 149 149 150 /* Masks for interrupts are the same as in s2m 150 /* Masks for interrupts are the same as in s2mps11 */ 151 #define S2MPS14_IRQ_TSD_MASK (1 << 151 #define S2MPS14_IRQ_TSD_MASK (1 << 2) 152 152 153 enum s5m8767_irq { 153 enum s5m8767_irq { 154 S5M8767_IRQ_PWRR, 154 S5M8767_IRQ_PWRR, 155 S5M8767_IRQ_PWRF, 155 S5M8767_IRQ_PWRF, 156 S5M8767_IRQ_PWR1S, 156 S5M8767_IRQ_PWR1S, 157 S5M8767_IRQ_JIGR, 157 S5M8767_IRQ_JIGR, 158 S5M8767_IRQ_JIGF, 158 S5M8767_IRQ_JIGF, 159 S5M8767_IRQ_LOWBAT2, 159 S5M8767_IRQ_LOWBAT2, 160 S5M8767_IRQ_LOWBAT1, 160 S5M8767_IRQ_LOWBAT1, 161 161 162 S5M8767_IRQ_MRB, 162 S5M8767_IRQ_MRB, 163 S5M8767_IRQ_DVSOK2, 163 S5M8767_IRQ_DVSOK2, 164 S5M8767_IRQ_DVSOK3, 164 S5M8767_IRQ_DVSOK3, 165 S5M8767_IRQ_DVSOK4, 165 S5M8767_IRQ_DVSOK4, 166 166 167 S5M8767_IRQ_RTC60S, 167 S5M8767_IRQ_RTC60S, 168 S5M8767_IRQ_RTCA1, 168 S5M8767_IRQ_RTCA1, 169 S5M8767_IRQ_RTCA2, 169 S5M8767_IRQ_RTCA2, 170 S5M8767_IRQ_SMPL, 170 S5M8767_IRQ_SMPL, 171 S5M8767_IRQ_RTC1S, 171 S5M8767_IRQ_RTC1S, 172 S5M8767_IRQ_WTSR, 172 S5M8767_IRQ_WTSR, 173 173 174 S5M8767_IRQ_NR, 174 S5M8767_IRQ_NR, 175 }; 175 }; 176 176 177 #define S5M8767_IRQ_PWRR_MASK (1 << 177 #define S5M8767_IRQ_PWRR_MASK (1 << 0) 178 #define S5M8767_IRQ_PWRF_MASK (1 << 178 #define S5M8767_IRQ_PWRF_MASK (1 << 1) 179 #define S5M8767_IRQ_PWR1S_MASK (1 << 179 #define S5M8767_IRQ_PWR1S_MASK (1 << 3) 180 #define S5M8767_IRQ_JIGR_MASK (1 << 180 #define S5M8767_IRQ_JIGR_MASK (1 << 4) 181 #define S5M8767_IRQ_JIGF_MASK (1 << 181 #define S5M8767_IRQ_JIGF_MASK (1 << 5) 182 #define S5M8767_IRQ_LOWBAT2_MASK (1 << 182 #define S5M8767_IRQ_LOWBAT2_MASK (1 << 6) 183 #define S5M8767_IRQ_LOWBAT1_MASK (1 << 183 #define S5M8767_IRQ_LOWBAT1_MASK (1 << 7) 184 184 185 #define S5M8767_IRQ_MRB_MASK (1 << 185 #define S5M8767_IRQ_MRB_MASK (1 << 2) 186 #define S5M8767_IRQ_DVSOK2_MASK (1 << 186 #define S5M8767_IRQ_DVSOK2_MASK (1 << 3) 187 #define S5M8767_IRQ_DVSOK3_MASK (1 << 187 #define S5M8767_IRQ_DVSOK3_MASK (1 << 4) 188 #define S5M8767_IRQ_DVSOK4_MASK (1 << 188 #define S5M8767_IRQ_DVSOK4_MASK (1 << 5) 189 189 190 #define S5M8767_IRQ_RTC60S_MASK (1 << 190 #define S5M8767_IRQ_RTC60S_MASK (1 << 0) 191 #define S5M8767_IRQ_RTCA1_MASK (1 << 191 #define S5M8767_IRQ_RTCA1_MASK (1 << 1) 192 #define S5M8767_IRQ_RTCA2_MASK (1 << 192 #define S5M8767_IRQ_RTCA2_MASK (1 << 2) 193 #define S5M8767_IRQ_SMPL_MASK (1 << 193 #define S5M8767_IRQ_SMPL_MASK (1 << 3) 194 #define S5M8767_IRQ_RTC1S_MASK (1 << 194 #define S5M8767_IRQ_RTC1S_MASK (1 << 4) 195 #define S5M8767_IRQ_WTSR_MASK (1 << 195 #define S5M8767_IRQ_WTSR_MASK (1 << 5) 196 196 197 #endif /* __LINUX_MFD_SEC_IRQ_H */ 197 #endif /* __LINUX_MFD_SEC_IRQ_H */ 198 198
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.