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

Commit 1df95494 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: qpnp-smbcharger: skip usb psy input current unless SDP



Since the charger can detect the USB type it need not wait on usb power
supply (usb psy) to inform how much current to draw from the charger.

Set the charge current to 1.8A if DCP or HVDCP and 1.5A if CDP. For SDP
draw just 100mA and wait for usb driver to negotiate with the host to draw
more current.

Note that APSD is expected to be disabled only when HVDCP detection is
in progress. In such a case the type of the charger reported will be
NONE. The code treats this situation correctly by setting the limit
defined for a wall charger.

Change-Id: I9d2a927450929546aee09ab6e530251cf59d6521
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 59a77e7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment