Home
last modified time | relevance | path

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

/Linux-v6.1/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.c58 if (machine_is_corgi() && (sharpsl_pm.flags & SHARPSL_SUSPENDED)) { in corgi_charge()
92 dev_dbg(sharpsl_pm.dev, "PEDR = %x, GPIO_AC_IN = %d, " in corgi_should_wakeup()
100 if (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN)) { in corgi_should_wakeup()
102 dev_dbg(sharpsl_pm.dev, "ac insert\n"); in corgi_should_wakeup()
103 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in corgi_should_wakeup()
106 dev_dbg(sharpsl_pm.dev, "ac remove\n"); in corgi_should_wakeup()
108 sharpsl_pm.machinfo->charge(0); in corgi_should_wakeup()
109 sharpsl_pm.charge_mode = CHRG_OFF; in corgi_should_wakeup()
114 dev_dbg(sharpsl_pm.dev, "Charge full interrupt\n"); in corgi_should_wakeup()
125 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n",is_resume); in corgi_should_wakeup()
[all …]
Dspitz_pm.c59 if (sharpsl_pm.flags & SHARPSL_SUSPENDED) { in spitz_charge()
88 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend()
131 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup()
136 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in spitz_should_wakeup()
137 dev_dbg(sharpsl_pm.dev, "AC Inserted\n"); in spitz_should_wakeup()
140 dev_dbg(sharpsl_pm.dev, "AC Removed\n"); in spitz_should_wakeup()
142 sharpsl_pm.machinfo->charge(0); in spitz_should_wakeup()
143 sharpsl_pm.charge_mode = CHRG_OFF; in spitz_should_wakeup()
159 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n", is_resume); in spitz_should_wakeup()
175 return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock); in spitzpm_read_devdata()
[all …]
DMakefile79 obj-$(CONFIG_PXA_SHARP_C7xx) += corgi.o sharpsl_pm.o corgi_pm.o
80 obj-$(CONFIG_PXA_SHARP_Cxx00) += spitz.o sharpsl_pm.o spitz_pm.o
Dsharpsl_pm.h90 extern struct sharpsl_pm_status sharpsl_pm;