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

Commit 847d6cf0 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: qpnp-smbcharger: Treat charger as DCP when APSD is disabled



When APSD is disabled, PMI registers do not set any bits in the type
register. The driver treats this as an SDP and input current
configurations are written to usb 5/1 mode registers.

For HVDCP 3.0, APSD remains disabled. When input current is configured,
it ends up writing to usb 5/1 related registers instead of high current
mode registers. This essentially causes HVDCP 3.0 to run with incorrect
input current.

Fix this by treating the type as DCP when APSD is disabled. This will
end up configuring the high current mode registers for HVDCP 3.0.

Change-Id: I5d8dff02d46fa0fb5c1fdd5e2ab6777a2e9ce6ca
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 1df95494
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