Searched refs:bq2515x (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | bq2515x_charger.c | 269 static int bq2515x_wake_up(struct bq2515x_device *bq2515x) in bq2515x_wake_up() argument 278 ret = regmap_read(bq2515x->regmap, BQ2515X_STAT0, &val); in bq2515x_wake_up() 286 gpiod_set_value_cansleep(bq2515x->powerdown_gpio, 0); in bq2515x_wake_up() 288 gpiod_set_value_cansleep(bq2515x->reset_gpio, 0); in bq2515x_wake_up() 290 gpiod_set_value_cansleep(bq2515x->reset_gpio, 1); in bq2515x_wake_up() 292 return regmap_write(bq2515x->regmap, BQ2515X_ADC_READ_EN, in bq2515x_wake_up() 296 static int bq2515x_update_ps_status(struct bq2515x_device *bq2515x) in bq2515x_update_ps_status() argument 302 if (bq2515x->ac_detect_gpio) in bq2515x_update_ps_status() 303 val = gpiod_get_value_cansleep(bq2515x->ac_detect_gpio); in bq2515x_update_ps_status() 305 ret = regmap_read(bq2515x in bq2515x_update_ps_status() 319 bq2515x_disable_watchdog_timers(struct bq2515x_device *bq2515x) bq2515x_disable_watchdog_timers() argument 332 bq2515x_get_battery_voltage_now(struct bq2515x_device *bq2515x) bq2515x_get_battery_voltage_now() argument 356 bq2515x_get_battery_current_now(struct bq2515x_device *bq2515x) bq2515x_get_battery_current_now() argument 418 bq2515x_get_charge_disable(struct bq2515x_device *bq2515x) bq2515x_get_charge_disable() argument 439 bq2515x_set_charge_disable(struct bq2515x_device *bq2515x, int val) bq2515x_set_charge_disable() argument 447 bq2515x_get_const_charge_current(struct bq2515x_device *bq2515x) bq2515x_get_const_charge_current() argument 471 bq2515x_set_const_charge_current(struct bq2515x_device *bq2515x, int val) bq2515x_set_const_charge_current() argument 503 bq2515x_get_precharge_current(struct bq2515x_device *bq2515x) bq2515x_get_precharge_current() argument 525 bq2515x_set_precharge_current(struct bq2515x_device *bq2515x, int val) bq2515x_set_precharge_current() argument 565 bq2515x_charging_status(struct bq2515x_device *bq2515x, union power_supply_propval *val) bq2515x_charging_status() argument 631 bq2515x_get_batt_reg(struct bq2515x_device *bq2515x) bq2515x_get_batt_reg() argument 643 bq2515x_set_batt_reg(struct bq2515x_device *bq2515x, int val) bq2515x_set_batt_reg() argument 655 bq2515x_get_ilim_lvl(struct bq2515x_device *bq2515x) bq2515x_get_ilim_lvl() argument 667 bq2515x_set_ilim_lvl(struct bq2515x_device *bq2515x, int val) bq2515x_set_ilim_lvl() argument 693 bq2515x_charger_get_health(struct bq2515x_device *bq2515x, union power_supply_propval *val) bq2515x_charger_get_health() argument 746 struct bq2515x_device *bq2515x = power_supply_get_drvdata(psy); bq2515x_mains_set_property() local 777 struct bq2515x_device *bq2515x = power_supply_get_drvdata(psy); bq2515x_mains_get_property() local 846 struct bq2515x_device *bq2515x = power_supply_get_drvdata(psy); bq2515x_battery_get_property() local 927 bq2515x_power_supply_register(struct bq2515x_device *bq2515x, struct device *dev, struct power_supply_config psy_cfg) bq2515x_power_supply_register() argument 945 bq2515x_hw_init(struct bq2515x_device *bq2515x) bq2515x_hw_init() argument 994 bq2515x_read_properties(struct bq2515x_device *bq2515x) bq2515x_read_properties() argument 1085 struct bq2515x_device *bq2515x; bq2515x_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | bq2515x_charger.c | 269 static int bq2515x_wake_up(struct bq2515x_device *bq2515x) in bq2515x_wake_up() argument 278 ret = regmap_read(bq2515x->regmap, BQ2515X_STAT0, &val); in bq2515x_wake_up() 286 gpiod_set_value_cansleep(bq2515x->powerdown_gpio, 0); in bq2515x_wake_up() 288 gpiod_set_value_cansleep(bq2515x->reset_gpio, 0); in bq2515x_wake_up() 290 gpiod_set_value_cansleep(bq2515x->reset_gpio, 1); in bq2515x_wake_up() 292 return regmap_write(bq2515x->regmap, BQ2515X_ADC_READ_EN, in bq2515x_wake_up() 296 static int bq2515x_update_ps_status(struct bq2515x_device *bq2515x) in bq2515x_update_ps_status() argument 302 if (bq2515x->ac_detect_gpio) in bq2515x_update_ps_status() 303 val = gpiod_get_value_cansleep(bq2515x->ac_detect_gpio); in bq2515x_update_ps_status() 305 ret = regmap_read(bq2515x in bq2515x_update_ps_status() 319 bq2515x_disable_watchdog_timers(struct bq2515x_device *bq2515x) bq2515x_disable_watchdog_timers() argument 332 bq2515x_get_battery_voltage_now(struct bq2515x_device *bq2515x) bq2515x_get_battery_voltage_now() argument 356 bq2515x_get_battery_current_now(struct bq2515x_device *bq2515x) bq2515x_get_battery_current_now() argument 418 bq2515x_get_charge_disable(struct bq2515x_device *bq2515x) bq2515x_get_charge_disable() argument 439 bq2515x_set_charge_disable(struct bq2515x_device *bq2515x, int val) bq2515x_set_charge_disable() argument 447 bq2515x_get_const_charge_current(struct bq2515x_device *bq2515x) bq2515x_get_const_charge_current() argument 471 bq2515x_set_const_charge_current(struct bq2515x_device *bq2515x, int val) bq2515x_set_const_charge_current() argument 503 bq2515x_get_precharge_current(struct bq2515x_device *bq2515x) bq2515x_get_precharge_current() argument 525 bq2515x_set_precharge_current(struct bq2515x_device *bq2515x, int val) bq2515x_set_precharge_current() argument 565 bq2515x_charging_status(struct bq2515x_device *bq2515x, union power_supply_propval *val) bq2515x_charging_status() argument 631 bq2515x_get_batt_reg(struct bq2515x_device *bq2515x) bq2515x_get_batt_reg() argument 643 bq2515x_set_batt_reg(struct bq2515x_device *bq2515x, int val) bq2515x_set_batt_reg() argument 655 bq2515x_get_ilim_lvl(struct bq2515x_device *bq2515x) bq2515x_get_ilim_lvl() argument 667 bq2515x_set_ilim_lvl(struct bq2515x_device *bq2515x, int val) bq2515x_set_ilim_lvl() argument 693 bq2515x_charger_get_health(struct bq2515x_device *bq2515x, union power_supply_propval *val) bq2515x_charger_get_health() argument 746 struct bq2515x_device *bq2515x = power_supply_get_drvdata(psy); bq2515x_mains_set_property() local 777 struct bq2515x_device *bq2515x = power_supply_get_drvdata(psy); bq2515x_mains_get_property() local 846 struct bq2515x_device *bq2515x = power_supply_get_drvdata(psy); bq2515x_battery_get_property() local 927 bq2515x_power_supply_register(struct bq2515x_device *bq2515x, struct device *dev, struct power_supply_config psy_cfg) bq2515x_power_supply_register() argument 945 bq2515x_hw_init(struct bq2515x_device *bq2515x) bq2515x_hw_init() argument 994 bq2515x_read_properties(struct bq2515x_device *bq2515x) bq2515x_read_properties() argument 1085 struct bq2515x_device *bq2515x; bq2515x_probe() local [all...] |
Completed in 3 milliseconds