Lines Matching +full:2 +full:x32 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0-only */
61 #define PM800_ONKEY_STS1 BIT(0)
62 #define PM800_EXTON_STS1 BIT(1)
63 #define PM800_CHG_STS1 BIT(2)
64 #define PM800_BAT_STS1 BIT(3)
65 #define PM800_VBUS_STS1 BIT(4)
66 #define PM800_LDO_PGOOD_STS1 BIT(5)
67 #define PM800_BUCK_PGOOD_STS1 BIT(6)
70 #define PM800_RTC_ALARM_STS2 BIT(0)
76 #define PM800_WAKEUP2_INV_INT BIT(0)
77 #define PM800_WAKEUP2_INT_CLEAR BIT(1)
78 #define PM800_WAKEUP2_INT_MASK BIT(2)
90 #define PM800_GPIO0_VAL BIT(0)
92 #define PM800_GPIO1_VAL BIT(4)
96 #define PM800_GPIO2_VAL BIT(0)
98 #define PM800_GPIO3_VAL BIT(4)
103 #define PM800_GPIO_4_CNTRL (0x32)
104 #define PM800_GPIO4_VAL BIT(0)
108 #define PM800_HEADSET_DET_EN BIT(7)
109 #define PM800_HSDET_SLP BIT(1)
123 /* bit definitions of RTC Register 1 (0xD0) */
124 #define PM800_ALARM1_EN BIT(0)
125 #define PM800_ALARM_WAKEUP BIT(4)
126 #define PM800_ALARM BIT(5)
127 #define PM800_RTC1_USE_XO BIT(7)
139 /* page 2 GPADC: slave adder 0x02 */
141 #define PM800_MEAS_EN1_VBAT BIT(2)
143 #define PM800_MEAS_EN2_RFTMP BIT(0)
144 #define PM800_MEAS_GP0_EN BIT(2)
145 #define PM800_MEAS_GP1_EN BIT(3)
146 #define PM800_MEAS_GP2_EN BIT(4)
147 #define PM800_MEAS_GP3_EN BIT(5)
148 #define PM800_MEAS_GP4_EN BIT(6)
152 #define PM800_GPADC_MISC_GPFSM_EN BIT(0)
163 #define PM800_GPADC_GP_BIAS_EN0 BIT(0)
164 #define PM800_GPADC_GP_BIAS_EN1 BIT(1)
165 #define PM800_GPADC_GP_BIAS_EN2 BIT(2)
166 #define PM800_GPADC_GP_BIAS_EN3 BIT(3)
169 #define PM800_BIAS_OUT_GP0 BIT(0)
170 #define PM800_BIAS_OUT_GP1 BIT(1)
171 #define PM800_BIAS_OUT_GP2 BIT(2)
172 #define PM800_BIAS_OUT_GP3 BIT(3)
182 #define PM800_GPADC2_UPP_TH 0x32
219 #define PM800_STATUS0_INT_MASK (1 << 2)
223 #define PM805_INT1_HP1_SHRT BIT(0)
224 #define PM805_INT1_HP2_SHRT BIT(1)
225 #define PM805_INT1_MIC_CONFLICT BIT(2)
226 #define PM805_INT1_CLIP_FAULT BIT(3)
227 #define PM805_INT1_LDO_OFF BIT(4)
228 #define PM805_INT1_SRC_DPLL_LOCK BIT(5)
232 #define PM805_INT2_MIC_DET BIT(0)
233 #define PM805_INT2_SHRT_BTN_DET BIT(1)
234 #define PM805_INT2_VOLM_BTN_DET BIT(2)
235 #define PM805_INT2_VOLP_BTN_DET BIT(3)
236 #define PM805_INT2_RAW_PLL_FAULT BIT(4)
237 #define PM805_INT2_FINE_PLL_FAULT BIT(5)
241 #define PM805_SHRT_BTN_DET BIT(1)
244 #define PM805_INT_REG_NUM (2)
247 #define PM805_MIC_DET_EN_MIC_DET BIT(0)
329 if (!pm80x->irq_data) in pm80x_request_irq()
330 return -EINVAL; in pm80x_request_irq()
331 return request_threaded_irq(regmap_irq_get_virq(pm80x->irq_data, irq), in pm80x_request_irq()
337 if (!pm80x->irq_data) in pm80x_free_irq()
339 free_irq(regmap_irq_get_virq(pm80x->irq_data, irq), data); in pm80x_free_irq()
346 struct pm80x_chip *chip = dev_get_drvdata(pdev->dev.parent); in pm80x_dev_suspend()
350 set_bit(irq, &chip->wu_flag); in pm80x_dev_suspend()
358 struct pm80x_chip *chip = dev_get_drvdata(pdev->dev.parent); in pm80x_dev_resume()
362 clear_bit(irq, &chip->wu_flag); in pm80x_dev_resume()