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: SagarMakhar <[email protected]>
  • Loading branch information
Abhijeet Dharmapurikar authored and SagarMakhar committed Oct 10, 2021
1 parent 6fcf424 commit 3760361
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 @@ -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},
Expand Down

0 comments on commit 3760361

Please sign in to comment.