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

Commit 7c2f2dda authored by Azhar Shaikh's avatar Azhar Shaikh Committed by Subbaraman Narayanamurthy
Browse files

usb: dwc3-msm: Add support for HVDCP



Add support for detecting High Voltage Dedicated Charging Port
(HVDCP) chargers as DCP chargers.

CRs-fixed: 775241
Change-Id: I28c6e0249724a89ffd77a0cd91545a4d401297ef
Signed-off-by: default avatarAzhar Shaikh <azhars@codeaurora.org>
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 18c43109
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2335,6 +2335,7 @@ static int dwc3_msm_power_set_property_usb(struct power_supply *psy,
			mdwc->charger.chg_type = DWC3_SDP_CHARGER;
			break;
		case POWER_SUPPLY_TYPE_USB_DCP:
		case POWER_SUPPLY_TYPE_USB_HVDCP:
			mdwc->charger.chg_type = DWC3_DCP_CHARGER;
			break;
		case POWER_SUPPLY_TYPE_USB_CDP: