Home
last modified time | relevance | path

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

/linux-4.4.14/arch/arm/mach-pxa/
Dsharpsl_pm.c70 struct sharpsl_pm_status sharpsl_pm; variable
189 int i = sharpsl_pm.machinfo->bat_levels - 1; in get_percentage()
190 …int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_sta… in get_percentage()
193 if (sharpsl_pm.charge_mode == CHRG_ON) in get_percentage()
194 …thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_aci… in get_percentage()
196 …thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noa… in get_percentage()
208 if (sharpsl_pm.charge_mode == CHRG_ON) { in get_apm_status()
209 high_thresh = sharpsl_pm.machinfo->status_high_acin; in get_apm_status()
210 low_thresh = sharpsl_pm.machinfo->status_low_acin; in get_apm_status()
212 high_thresh = sharpsl_pm.machinfo->status_high_noac; in get_apm_status()
[all …]
Dcorgi_pm.c63 if (machine_is_corgi() && (sharpsl_pm.flags & SHARPSL_SUSPENDED)) { in corgi_charge()
97 dev_dbg(sharpsl_pm.dev, "PEDR = %x, GPIO_AC_IN = %d, " in corgi_should_wakeup()
105 if (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN)) { in corgi_should_wakeup()
107 dev_dbg(sharpsl_pm.dev, "ac insert\n"); in corgi_should_wakeup()
108 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in corgi_should_wakeup()
111 dev_dbg(sharpsl_pm.dev, "ac remove\n"); in corgi_should_wakeup()
113 sharpsl_pm.machinfo->charge(0); in corgi_should_wakeup()
114 sharpsl_pm.charge_mode = CHRG_OFF; in corgi_should_wakeup()
119 dev_dbg(sharpsl_pm.dev, "Charge full interrupt\n"); in corgi_should_wakeup()
130 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n",is_resume); in corgi_should_wakeup()
[all …]
Dspitz_pm.c64 if (sharpsl_pm.flags & SHARPSL_SUSPENDED) { in spitz_charge()
93 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend()
136 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup()
141 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in spitz_should_wakeup()
142 dev_dbg(sharpsl_pm.dev, "AC Inserted\n"); in spitz_should_wakeup()
145 dev_dbg(sharpsl_pm.dev, "AC Removed\n"); in spitz_should_wakeup()
147 sharpsl_pm.machinfo->charge(0); in spitz_should_wakeup()
148 sharpsl_pm.charge_mode = CHRG_OFF; in spitz_should_wakeup()
164 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n", is_resume); in spitz_should_wakeup()
183 return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock); in spitzpm_read_devdata()
[all …]
DMakefile81 obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o sharpsl_pm.o corgi_pm.o
82 obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o sharpsl_pm.o spitz_pm.o
/linux-4.4.14/arch/arm/mach-pxa/include/mach/
Dsharpsl_pm.h94 extern struct sharpsl_pm_status sharpsl_pm;