power: qpnp-smbcharger: icl_override for usb_cdp
commit
defce2137d53df0687d76c4c34c88b8b93305563:
power: qpnp-smbcharger: do not override APSD results
changes to disable ICL override.
If usb charger type is CDP, since ICL override is disabled, PMI defaults
to drawing 1500mA.
In thermal situations the driver may be asked to draw less current from
CDP. Use ICL override to configure a different input current limit for
CDP. Reset it back when the CDP is removed.
This also necessitates to read charger type in the current setting
function. Since we know the type optimize that function to set only the
necessary registers for that type. Earlier we used to update registers
for all the types.
CRs-Fixed: 847362
Change-Id: Ibda507391da5acfeac81cc40d5cabc779cbc077c
Signed-off-by:
Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Loading
Please register or sign in to comment