Lines Matching +full:3 +full:- +full:bit

1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2022 BayLibre Incorporated - https://www.baylibre.com/
88 #define TPS65219_REG_INT_BUCK_1_2_POS 3
103 #define TPS65219_BUCKS_UV_THR_SEL_MASK BIT(6)
104 #define TPS65219_BUCKS_BW_SEL_MASK BIT(7)
106 #define TPS65219_LDOS_BYP_CONFIG_MASK BIT(LDO_BYP_SHIFT)
107 #define TPS65219_LDOS_LSW_CONFIG_MASK BIT(7)
109 #define TPS65219_ENABLE_BUCK1_EN_MASK BIT(0)
110 #define TPS65219_ENABLE_BUCK2_EN_MASK BIT(1)
111 #define TPS65219_ENABLE_BUCK3_EN_MASK BIT(2)
112 #define TPS65219_ENABLE_LDO1_EN_MASK BIT(3)
113 #define TPS65219_ENABLE_LDO2_EN_MASK BIT(4)
114 #define TPS65219_ENABLE_LDO3_EN_MASK BIT(5)
115 #define TPS65219_ENABLE_LDO4_EN_MASK BIT(6)
116 /* power ON-OFF sequence slot */
117 #define TPS65219_BUCKS_LDOS_SEQUENCE_OFF_SLOT_MASK GENMASK(3, 0)
120 #define TPS65219_STBY1_BUCK1_STBY_EN_MASK BIT(0)
121 #define TPS65219_STBY1_BUCK2_STBY_EN_MASK BIT(1)
122 #define TPS65219_STBY1_BUCK3_STBY_EN_MASK BIT(2)
123 #define TPS65219_STBY1_LDO1_STBY_EN_MASK BIT(3)
124 #define TPS65219_STBY1_LDO2_STBY_EN_MASK BIT(4)
125 #define TPS65219_STBY1_LDO3_STBY_EN_MASK BIT(5)
126 #define TPS65219_STBY1_LDO4_STBY_EN_MASK BIT(6)
128 #define TPS65219_STBY2_GPO1_STBY_EN_MASK BIT(0)
129 #define TPS65219_STBY2_GPO2_STBY_EN_MASK BIT(1)
130 #define TPS65219_STBY2_GPIO_STBY_EN_MASK BIT(2)
132 #define TPS65219_MFP_I2C_OFF_REQ_MASK BIT(0)
133 #define TPS65219_MFP_STBY_I2C_CTRL_MASK BIT(1)
134 #define TPS65219_MFP_COLD_RESET_I2C_CTRL_MASK BIT(2)
135 #define TPS65219_MFP_WARM_RESET_I2C_CTRL_MASK BIT(3)
136 #define TPS65219_MFP_GPIO_STATUS_MASK BIT(4)
138 #define TPS65219_MFP_1_VSEL_DDR_SEL_MASK BIT(0)
139 #define TPS65219_MFP_1_VSEL_SD_POL_MASK BIT(1)
140 #define TPS65219_MFP_1_VSEL_RAIL_MASK BIT(2)
143 #define TPS65219_MFP_2_MODE_RESET_MASK BIT(2)
144 #define TPS65219_MFP_2_EN_PB_VSENSE_DEGL_MASK BIT(3)
146 #define TPS65219_MFP_2_WARM_COLD_RESET_MASK BIT(6)
147 #define TPS65219_MFP_2_PU_ON_FSD_MASK BIT(7)
149 #define TPS65219_MFP_2_PB BIT(4)
150 #define TPS65219_MFP_2_VSENSE BIT(5)
152 #define TPS65219_REG_MASK_UV_LDO1_UV_MASK BIT(0)
153 #define TPS65219_REG_MASK_UV_LDO2_UV_MASK BIT(1)
154 #define TPS65219_REG_MASK_UV_LDO3_UV_MASK BIT(2)
155 #define TPS65219_REG_MASK_UV_LDO4_UV_MASK BIT(3)
156 #define TPS65219_REG_MASK_UV_BUCK1_UV_MASK BIT(4)
157 #define TPS65219_REG_MASK_UV_BUCK2_UV_MASK BIT(5)
158 #define TPS65219_REG_MASK_UV_BUCK3_UV_MASK BIT(6)
159 #define TPS65219_REG_MASK_UV_RETRY_MASK BIT(7)
162 #define TPS65219_REG_MASK_INT_FOR_RV_MASK BIT(4)
164 #define TPS65219_REG_MASK_INT_FOR_PB_MASK BIT(7)
165 /* UnderVoltage - Short to GND - OverCurrent*/
166 /* LDO3-4 */
167 #define TPS65219_INT_LDO3_SCG_MASK BIT(0)
168 #define TPS65219_INT_LDO3_OC_MASK BIT(1)
169 #define TPS65219_INT_LDO3_UV_MASK BIT(2)
170 #define TPS65219_INT_LDO4_SCG_MASK BIT(3)
171 #define TPS65219_INT_LDO4_OC_MASK BIT(4)
172 #define TPS65219_INT_LDO4_UV_MASK BIT(5)
173 /* LDO1-2 */
174 #define TPS65219_INT_LDO1_SCG_MASK BIT(0)
175 #define TPS65219_INT_LDO1_OC_MASK BIT(1)
176 #define TPS65219_INT_LDO1_UV_MASK BIT(2)
177 #define TPS65219_INT_LDO2_SCG_MASK BIT(3)
178 #define TPS65219_INT_LDO2_OC_MASK BIT(4)
179 #define TPS65219_INT_LDO2_UV_MASK BIT(5)
181 #define TPS65219_INT_BUCK3_SCG_MASK BIT(0)
182 #define TPS65219_INT_BUCK3_OC_MASK BIT(1)
183 #define TPS65219_INT_BUCK3_NEG_OC_MASK BIT(2)
184 #define TPS65219_INT_BUCK3_UV_MASK BIT(3)
185 /* BUCK1-2 */
186 #define TPS65219_INT_BUCK1_SCG_MASK BIT(0)
187 #define TPS65219_INT_BUCK1_OC_MASK BIT(1)
188 #define TPS65219_INT_BUCK1_NEG_OC_MASK BIT(2)
189 #define TPS65219_INT_BUCK1_UV_MASK BIT(3)
190 #define TPS65219_INT_BUCK2_SCG_MASK BIT(4)
191 #define TPS65219_INT_BUCK2_OC_MASK BIT(5)
192 #define TPS65219_INT_BUCK2_NEG_OC_MASK BIT(6)
193 #define TPS65219_INT_BUCK2_UV_MASK BIT(7)
195 #define TPS65219_INT_SENSOR_3_WARM_MASK BIT(0)
196 #define TPS65219_INT_SENSOR_2_WARM_MASK BIT(1)
197 #define TPS65219_INT_SENSOR_1_WARM_MASK BIT(2)
198 #define TPS65219_INT_SENSOR_0_WARM_MASK BIT(3)
199 #define TPS65219_INT_SENSOR_3_HOT_MASK BIT(4)
200 #define TPS65219_INT_SENSOR_2_HOT_MASK BIT(5)
201 #define TPS65219_INT_SENSOR_1_HOT_MASK BIT(6)
202 #define TPS65219_INT_SENSOR_0_HOT_MASK BIT(7)
204 #define TPS65219_INT_BUCK1_RV_MASK BIT(0)
205 #define TPS65219_INT_BUCK2_RV_MASK BIT(1)
206 #define TPS65219_INT_BUCK3_RV_MASK BIT(2)
207 #define TPS65219_INT_LDO1_RV_MASK BIT(3)
208 #define TPS65219_INT_LDO2_RV_MASK BIT(4)
209 #define TPS65219_INT_LDO3_RV_MASK BIT(5)
210 #define TPS65219_INT_LDO4_RV_MASK BIT(6)
212 #define TPS65219_INT_BUCK1_RV_SD_MASK BIT(0)
213 #define TPS65219_INT_BUCK2_RV_SD_MASK BIT(1)
214 #define TPS65219_INT_BUCK3_RV_SD_MASK BIT(2)
215 #define TPS65219_INT_LDO1_RV_SD_MASK BIT(3)
216 #define TPS65219_INT_LDO2_RV_SD_MASK BIT(4)
217 #define TPS65219_INT_LDO3_RV_SD_MASK BIT(5)
218 #define TPS65219_INT_LDO4_RV_SD_MASK BIT(6)
219 #define TPS65219_INT_TIMEOUT_MASK BIT(7)
221 #define TPS65219_INT_PB_FALLING_EDGE_DETECT_MASK BIT(0)
222 #define TPS65219_INT_PB_RISING_EDGE_DETECT_MASK BIT(1)
223 #define TPS65219_INT_PB_REAL_TIME_STATUS_MASK BIT(2)
229 #define TPS65219_BUCK_1_2_POS 3
236 /* LDO3-4 register IRQs */
243 /* LDO1-2 */
255 /* BUCK1-2 */
307 /* Number of step-down converters available */
308 #define TPS65219_NUM_DCDC 3
328 * struct tps65219 - tps65219 sub-driver chip access routines