Skip to content

Commit

Permalink
healthd: Add support for HVDCP_3 chargers
Browse files Browse the repository at this point in the history
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
Signed-off-by: Anirudh Gupta <[email protected]>
  • Loading branch information
Abhijeet Dharmapurikar authored and mracar07 committed Oct 14, 2019
1 parent cfb9c0a commit 6789481
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions healthd/BatteryMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,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 },
Expand Down

0 comments on commit 6789481

Please sign in to comment.