diff options
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2015-09-14 16:35:26 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-01-11 21:20:40 +0800 |
commit | 484887e230c59000c6608ff3ee73320dac73f208 (patch) | |
tree | df2053777a4b29558451bfb836ca0381a34e651b | |
parent | 3e0067d91aa2d4068eee708339e407d5fadd4cd8 (diff) |
healthd: Add support for HVDCP_3 chargers
HVDCP_3 is a high voltage DCP charger where the charger's voltage
can be changed by issuing pulses on the D+/D- lines. Add support to
recognize it and treat it as an AC power source.
Change-Id: Ib719529904e8b7a676bbdc5f5953f0f9da6df3fa
-rw-r--r-- | healthd/BatteryMonitor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 98dffc3b8..0278d25b8 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -190,6 +190,7 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String {"USB", ANDROID_POWER_SUPPLY_TYPE_USB}, {"USB_DCP", ANDROID_POWER_SUPPLY_TYPE_AC}, {"USB_HVDCP", ANDROID_POWER_SUPPLY_TYPE_AC}, + {"USB_HVDCP_3", ANDROID_POWER_SUPPLY_TYPE_AC}, {"USB_CDP", ANDROID_POWER_SUPPLY_TYPE_AC}, {"USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC}, {"USB_C", ANDROID_POWER_SUPPLY_TYPE_AC}, |