Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0de5e99f authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

ANDROID: GKI: power: supply: Add APSD based power-supply properties



Add following power_supply properties:

POWER_SUPPLY_PROP_APSD_RERUN - Property to re-run charger power source
detection.

POWER_SUPPLY_PROP_APSD_TIMEOUT - Property to report APSD timer status.

Change-Id: I2f8649461e5906f17adc5b360afed20b5fa6f58c
Signed-off-by: default avatarAshish Chavan <ashichav@codeaurora.org>
(cherry picked from commit 9228d604)
Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Bug: 150789066
parent c5bdb846
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -493,6 +493,8 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(aicl_done),
	POWER_SUPPLY_ATTR(voltage_step),
	POWER_SUPPLY_ATTR(otg_fastroleswap),
	POWER_SUPPLY_ATTR(apsd_rerun),
	POWER_SUPPLY_ATTR(apsd_timeout),
	/* Charge pump properties */
	POWER_SUPPLY_ATTR(cp_status1),
	POWER_SUPPLY_ATTR(cp_status2),
+2 −0
Original line number Diff line number Diff line
@@ -368,6 +368,8 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_AICL_DONE,
	POWER_SUPPLY_PROP_VOLTAGE_STEP,
	POWER_SUPPLY_PROP_OTG_FASTROLESWAP,
	POWER_SUPPLY_PROP_APSD_RERUN,
	POWER_SUPPLY_PROP_APSD_TIMEOUT,
	/* Charge pump properties */
	POWER_SUPPLY_PROP_CP_STATUS1,
	POWER_SUPPLY_PROP_CP_STATUS2,