summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2016-09-30 17:32:01 -0700
committerJack Pham <jackp@codeaurora.org>2016-10-14 17:51:45 -0700
commit9ed824e16b72ed509e4718c815c3202dfd6ce6e9 (patch)
treec93f2083cb79fbcc907b2dbdde300ff85aeed736 /drivers/power
parentd1d42ada3dd73c313db2ffd2811d2b83841d5eb9 (diff)
power_supply: Add additional USB PD properties
Add additional properties for USB PD usage: - POWER_SUPPLY_PROP_PD_IN_HARD_RESET is set when PD is undergoing a hard reset - POWER_SUPPLY_PROP_PD_CURRENT_MAX used to indicate the current limit as negotiated over PD - POWER_SUPPLY_PROP_PD_USB_SUSPEND_SUPPORTED is set when USB suspend current limit must be honored when USB bus is suspended Also add enums to distinguish PD activity state: inactive, active. Change-Id: I0a3d98ac1e1202e5b655b2e3a8102691b61359c8 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/power_supply_sysfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index 8af1eb66c699..0619b314b7de 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -267,6 +267,9 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(typec_power_role),
POWER_SUPPLY_ATTR(pd_allowed),
POWER_SUPPLY_ATTR(pd_active),
+ POWER_SUPPLY_ATTR(pd_in_hard_reset),
+ POWER_SUPPLY_ATTR(pd_current_max),
+ POWER_SUPPLY_ATTR(pd_usb_suspend_supported),
POWER_SUPPLY_ATTR(charger_temp),
POWER_SUPPLY_ATTR(charger_temp_max),
POWER_SUPPLY_ATTR(parallel_disable),