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: Ashish Chavan <ashichav@codeaurora.org>
(cherry picked from commit 9228d60454)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
This commit is contained in:
Mark Salyzyn
2020-02-24 14:40:49 -08:00
parent c5bdb8464b
commit 0de5e99fb8
2 changed files with 4 additions and 0 deletions

View File

@ -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),

View File

@ -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,