Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 725a8913 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Linux Build Service Account
Browse files

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
parent c9e804ff
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String
            { "USB_CDP", ANDROID_POWER_SUPPLY_TYPE_AC },
            { "USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC },
            { "USB_HVDCP", ANDROID_POWER_SUPPLY_TYPE_AC },
            { "USB_HVDCP_3", ANDROID_POWER_SUPPLY_TYPE_AC },
            { "Wireless", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
            { "Wipower", ANDROID_POWER_SUPPLY_TYPE_WIRELESS },
            { NULL, 0 },