Home
last modified time | relevance | path

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

/Linux-v5.4/arch/arm/mach-pxa/
Dsharpsl_pm.c66 struct sharpsl_pm_status sharpsl_pm; variable
185 int i = sharpsl_pm.machinfo->bat_levels - 1; in get_percentage()
186 …int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_sta… in get_percentage()
189 if (sharpsl_pm.charge_mode == CHRG_ON) in get_percentage()
190 …thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_aci… in get_percentage()
192 …thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noa… in get_percentage()
204 if (sharpsl_pm.charge_mode == CHRG_ON) { in get_apm_status()
205 high_thresh = sharpsl_pm.machinfo->status_high_acin; in get_apm_status()
206 low_thresh = sharpsl_pm.machinfo->status_low_acin; in get_apm_status()
208 high_thresh = sharpsl_pm.machinfo->status_high_noac; in get_apm_status()
[all …]
Dcorgi_pm.c59 if (machine_is_corgi() && (sharpsl_pm.flags & SHARPSL_SUSPENDED)) { in corgi_charge()
93 dev_dbg(sharpsl_pm.dev, "PEDR = %x, GPIO_AC_IN = %d, " in corgi_should_wakeup()
101 if (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN)) { in corgi_should_wakeup()
103 dev_dbg(sharpsl_pm.dev, "ac insert\n"); in corgi_should_wakeup()
104 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in corgi_should_wakeup()
107 dev_dbg(sharpsl_pm.dev, "ac remove\n"); in corgi_should_wakeup()
109 sharpsl_pm.machinfo->charge(0); in corgi_should_wakeup()
110 sharpsl_pm.charge_mode = CHRG_OFF; in corgi_should_wakeup()
115 dev_dbg(sharpsl_pm.dev, "Charge full interrupt\n"); in corgi_should_wakeup()
126 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n",is_resume); in corgi_should_wakeup()
[all …]
Dspitz_pm.c60 if (sharpsl_pm.flags & SHARPSL_SUSPENDED) { in spitz_charge()
89 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend()
132 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup()
137 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in spitz_should_wakeup()
138 dev_dbg(sharpsl_pm.dev, "AC Inserted\n"); in spitz_should_wakeup()
141 dev_dbg(sharpsl_pm.dev, "AC Removed\n"); in spitz_should_wakeup()
143 sharpsl_pm.machinfo->charge(0); in spitz_should_wakeup()
144 sharpsl_pm.charge_mode = CHRG_OFF; in spitz_should_wakeup()
160 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n", is_resume); in spitz_should_wakeup()
176 return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock); in spitzpm_read_devdata()
[all …]
DMakefile83 obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o sharpsl_pm.o corgi_pm.o
84 obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o sharpsl_pm.o spitz_pm.o
Dsharpsl_pm.h90 extern struct sharpsl_pm_status sharpsl_pm;