Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/power/supply/
Dbq2515x_charger.c274 static int bq2515x_wake_up(struct bq2515x_device *bq2515x) in bq2515x_wake_up() argument
283 ret = regmap_read(bq2515x->regmap, BQ2515X_STAT0, &val); in bq2515x_wake_up()
291 gpiod_set_value_cansleep(bq2515x->powerdown_gpio, 0); in bq2515x_wake_up()
293 gpiod_set_value_cansleep(bq2515x->reset_gpio, 0); in bq2515x_wake_up()
295 gpiod_set_value_cansleep(bq2515x->reset_gpio, 1); in bq2515x_wake_up()
297 return regmap_write(bq2515x->regmap, BQ2515X_ADC_READ_EN, in bq2515x_wake_up()
301 static int bq2515x_update_ps_status(struct bq2515x_device *bq2515x) in bq2515x_update_ps_status() argument
307 if (bq2515x->ac_detect_gpio) in bq2515x_update_ps_status()
308 val = gpiod_get_value_cansleep(bq2515x->ac_detect_gpio); in bq2515x_update_ps_status()
310 ret = regmap_read(bq2515x->regmap, BQ2515X_STAT0, &val); in bq2515x_update_ps_status()
[all …]