Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/power/supply/
Dz2_battery.c98 charger->bat_status = (info->charge_gpio >= 0) ? in z2_batt_update()
99 (gpio_get_value(info->charge_gpio) ? in z2_batt_update()
134 if (info->charge_gpio >= 0) in z2_batt_ps_init()
150 if (info->charge_gpio >= 0) in z2_batt_ps_init()
209 if (info->charge_gpio >= 0 && gpio_is_valid(info->charge_gpio)) { in z2_batt_probe()
210 ret = gpio_request(info->charge_gpio, "BATT CHRG"); in z2_batt_probe()
214 ret = gpio_direction_input(info->charge_gpio); in z2_batt_probe()
218 irq_set_irq_type(gpio_to_irq(info->charge_gpio), in z2_batt_probe()
220 ret = request_irq(gpio_to_irq(info->charge_gpio), in z2_batt_probe()
248 if (info->charge_gpio >= 0 && gpio_is_valid(info->charge_gpio)) in z2_batt_probe()
[all …]
Dwm97xx_battery.c103 bat_status = (pdata->charge_gpio >= 0) ? in wm97xx_bat_update()
104 (gpio_get_value(pdata->charge_gpio) ? in wm97xx_bat_update()
174 if (gpio_is_valid(pdata->charge_gpio)) { in wm97xx_bat_probe()
175 ret = gpio_request(pdata->charge_gpio, "BATT CHRG"); in wm97xx_bat_probe()
178 ret = gpio_direction_input(pdata->charge_gpio); in wm97xx_bat_probe()
181 ret = request_irq(gpio_to_irq(pdata->charge_gpio), in wm97xx_bat_probe()
207 if (pdata->charge_gpio >= 0) in wm97xx_bat_probe()
245 if (gpio_is_valid(pdata->charge_gpio)) in wm97xx_bat_probe()
246 free_irq(gpio_to_irq(pdata->charge_gpio), dev); in wm97xx_bat_probe()
248 if (gpio_is_valid(pdata->charge_gpio)) in wm97xx_bat_probe()
[all …]
/Linux-v5.10/include/linux/
Dz2_battery.h9 int charge_gpio; member
Dwm97xx.h297 int charge_gpio; member
/Linux-v5.10/arch/arm/mach-pxa/
Dpalmte2.c276 .charge_gpio = -1,
Dpalm27x.c215 .charge_gpio = -1,
Dz2.c491 .charge_gpio = GPIO0_ZIPITZ2_AC_DETECT,
Dmioa701.c580 .charge_gpio = -1,