Lines Matching +full:charge +full:- +full:delay
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Battery and Power Management code for the Sharp SL-Cxx00
12 #include <linux/delay.h>
14 #include <linux/gpio-pxa.h>
17 #include <linux/apm-emulation.h>
21 #include <asm/mach-types.h>
80 /* HACK - For unknown reasons, accurate voltage readings are only made with a load
91 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend()
134 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup()
138 /* charge on */ in spitz_should_wakeup()
142 /* charge off */ in spitz_should_wakeup()
145 sharpsl_pm.machinfo->charge(0); in spitz_should_wakeup()
178 return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock); in spitzpm_read_devdata()
180 return gpio_get_value(sharpsl_pm.machinfo->gpio_batfull); in spitzpm_read_devdata()
182 return gpio_get_value(sharpsl_pm.machinfo->gpio_fatal); in spitzpm_read_devdata()
203 .charge = spitz_charge,
236 return -ENODEV; in spitzpm_init()
238 spitzpm_device = platform_device_alloc("sharpsl-pm", -1); in spitzpm_init()
240 return -ENOMEM; in spitzpm_init()
242 spitzpm_device->dev.platform_data = &spitz_pm_machinfo; in spitzpm_init()