Home
last modified time | relevance | path

Searched refs:da9052 (Results 1 – 9 of 9) sorted by relevance

/linux-4.19.296/include/linux/mfd/da9052/
Dda9052.h97 struct da9052 { struct
111 int (*fix_io) (struct da9052 *da9052, unsigned char reg); argument
115 int da9052_adc_manual_read(struct da9052 *da9052, unsigned char channel);
116 int da9052_adc_read_temp(struct da9052 *da9052);
119 static inline int da9052_reg_read(struct da9052 *da9052, unsigned char reg) in da9052_reg_read() argument
123 ret = regmap_read(da9052->regmap, reg, &val); in da9052_reg_read()
127 if (da9052->fix_io) { in da9052_reg_read()
128 ret = da9052->fix_io(da9052, reg); in da9052_reg_read()
136 static inline int da9052_reg_write(struct da9052 *da9052, unsigned char reg, in da9052_reg_write() argument
141 ret = regmap_write(da9052->regmap, reg, val); in da9052_reg_write()
[all …]
Dpdata.h29 struct da9052;
33 int (*init) (struct da9052 *da9052);
/linux-4.19.296/drivers/gpio/
Dgpio-da9052.c50 struct da9052 *da9052; member
65 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get()
80 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get()
83 ret = da9052_reg_read(gpio->da9052, in da9052_gpio_get()
104 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + in da9052_gpio_set()
109 dev_err(gpio->da9052->dev, in da9052_gpio_set()
113 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + in da9052_gpio_set()
118 dev_err(gpio->da9052->dev, in da9052_gpio_set()
135 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + in da9052_gpio_direction_input()
141 ret = da9052_reg_update(gpio->da9052, (offset >> 1) + in da9052_gpio_direction_input()
[all …]
DMakefile43 obj-$(CONFIG_GPIO_DA9052) += gpio-da9052.o
/linux-4.19.296/drivers/rtc/
Drtc-da9052.c25 dev_err(rtc->da9052->dev, "%s: " fmt, __func__, ##__VA_ARGS__)
31 struct da9052 *da9052; member
38 ret = da9052_reg_update(rtc->da9052, DA9052_ALARM_Y_REG, in da9052_rtc_enable_alarm()
44 ret = da9052_reg_update(rtc->da9052, DA9052_ALARM_Y_REG, in da9052_rtc_enable_alarm()
68 ret = da9052_group_read(rtc->da9052, DA9052_ALARM_MI_REG, 5, &v[0][0]); in da9052_read_alarm()
75 ret = da9052_group_read(rtc->da9052, in da9052_read_alarm()
106 struct da9052 *da9052 = rtc->da9052; in da9052_set_alarm() local
124 ret = da9052_reg_update(da9052, DA9052_ALARM_MI_REG, in da9052_set_alarm()
135 ret = da9052_group_write(da9052, DA9052_ALARM_H_REG, 3, v); in da9052_set_alarm()
139 ret = da9052_reg_update(da9052, DA9052_ALARM_Y_REG, in da9052_set_alarm()
[all …]
DMakefile46 obj-$(CONFIG_RTC_DRV_DA9052) += rtc-da9052.o
/linux-4.19.296/drivers/regulator/
Dda9052-regulator.c77 struct da9052 *da9052; member
97 ret = da9052_reg_read(regulator->da9052, DA9052_BUCKA_REG + offset/2); in da9052_dcdc_get_current_limit()
110 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_get_current_limit()
127 if (regulator->da9052->chip_id == DA9052) in da9052_dcdc_set_current_limit()
147 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit()
152 return da9052_reg_update(regulator->da9052, in da9052_dcdc_set_current_limit()
166 if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052) in da9052_list_voltage()
197 if ((id == DA9052_ID_BUCK4) && (regulator->da9052->chip_id == DA9052) in da9052_map_voltage()
221 ret = da9052_reg_update(regulator->da9052, rdev->desc->vsel_reg, in da9052_regulator_set_voltage_sel()
235 ret = da9052_reg_update(regulator->da9052, DA9052_SUPPLY_REG, in da9052_regulator_set_voltage_sel()
[all …]
DMakefile33 obj-$(CONFIG_REGULATOR_DA9052) += da9052-regulator.o
/linux-4.19.296/
DMAINTAINERS4344 F: drivers/power/supply/da9052-battery.c
4353 F: include/linux/mfd/da9052/