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

Skip to content
Commit 50445c69 authored by Jack Pham's avatar Jack Pham Committed by Manu Gautam
Browse files

usb: phy: snps: Put PHY in non-driving mode for charger detection



PMIC charger driver requests PHY to place USB D+/D- lines in hi-Z
state prior to performing charger detection. This is exposed as a
regulator interface. During the enable callback, perform power on
and reset of the PHY and then write to the UTMI override register
to set OPMODE as non-driving.

In the event that a host downstream port is connected, the normal
init sequence will follow and OPMODE will be set to normal due to
the reset.

Change-Id: I630339dd6e0056d36dfb089fbe7eaebe0a13dae8
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent dd006fea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment