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:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment