mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
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 9228d604549389c9f8ee65272f30b733d4125ccc) Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 150789066
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user