Skip to content

Commit f905ebc

Browse files
Abhijeet Dharmapurikarmracar07
authored andcommitted
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 Signed-off-by: Anirudh Gupta <[email protected]>
1 parent 64198eb commit f905ebc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

healthd/BatteryMonitor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ BatteryMonitor::PowerSupplyType BatteryMonitor::readPowerSupplyType(const String
158158
{ "USB", ANDROID_POWER_SUPPLY_TYPE_USB },
159159
{ "USB_DCP", ANDROID_POWER_SUPPLY_TYPE_AC },
160160
{ "USB_HVDCP", ANDROID_POWER_SUPPLY_TYPE_AC },
161+
{ "USB_HVDCP_3", ANDROID_POWER_SUPPLY_TYPE_AC },
161162
{ "USB_CDP", ANDROID_POWER_SUPPLY_TYPE_AC },
162163
{ "USB_ACA", ANDROID_POWER_SUPPLY_TYPE_AC },
163164
{ "USB_C", ANDROID_POWER_SUPPLY_TYPE_AC },

0 commit comments

Comments
 (0)