ANDROID: GKI: power: supply: Add POWER_SUPPLY_PROP_OTG_FASTROLESWAP

Partially taken from commit 6b62f96854b2dcd12d1e3569c466943bde826497
("smb5-lib: Add property to enable/disable otg threshold")

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Signed-off-by: rickyniu <rickyniu@google.com>
Bug: 77536221
Bug: 140367237
(cherry picked from commit b225429ece2c561d593c967746cf3db369aa8a06)
(cherry picked from commit 6b62f96854b2dcd12d1e3569c466943bde826497)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: Ic7fe07f977bd727260c6d23ce5bad8506a24289c
This commit is contained in:
Mark Salyzyn
2020-02-24 14:40:49 -08:00
parent d46562ac69
commit 4f70929449
2 changed files with 2 additions and 0 deletions

View File

@ -484,6 +484,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(batt_res_filt_cnts),
POWER_SUPPLY_ATTR(aicl_done),
POWER_SUPPLY_ATTR(voltage_step),
POWER_SUPPLY_ATTR(otg_fastroleswap),
/* Charge pump properties */
POWER_SUPPLY_ATTR(cp_status1),
POWER_SUPPLY_ATTR(cp_status2),

View File

@ -349,6 +349,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_RES_FILTER_COUNT,
POWER_SUPPLY_PROP_AICL_DONE,
POWER_SUPPLY_PROP_VOLTAGE_STEP,
POWER_SUPPLY_PROP_OTG_FASTROLESWAP,
/* Charge pump properties */
POWER_SUPPLY_PROP_CP_STATUS1,
POWER_SUPPLY_PROP_CP_STATUS2,