diff options
| author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2016-12-13 12:44:18 +0530 |
|---|---|---|
| committer | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2016-12-14 10:17:18 +0530 |
| commit | 6ffbb989b5f7d86a979d79f1ccdcdf29472dfd1c (patch) | |
| tree | 6b3a182716a75e12280e888109e06f546c3ff2f3 | |
| parent | a80e267a8c0d61790c3d1d5f7181ebd1be39c438 (diff) | |
usb: qusb2: De-assert TCSR_QUSB2PHY_CLAMP_DIG_N_1P8 upon boot up
This prevents leakage on 1p8 power rail upon boot up when usb cable
is not connected.
Change-Id: Ia19d54df6086cfb0047fcdd8b04e7e0edff91cf7
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
| -rw-r--r-- | drivers/usb/phy/phy-msm-qusb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-msm-qusb.c b/drivers/usb/phy/phy-msm-qusb.c index 839d701ec9b5..07c96419fd60 100644 --- a/drivers/usb/phy/phy-msm-qusb.c +++ b/drivers/usb/phy/phy-msm-qusb.c @@ -1088,6 +1088,10 @@ static int qusb_phy_probe(struct platform_device *pdev) if (ret) usb_remove_phy(&qphy->phy); + /* de-assert clamp dig n to reduce leakage on 1p8 upon boot up */ + if (qphy->tcsr_clamp_dig_n) + writel_relaxed(0x0, qphy->tcsr_clamp_dig_n); + return ret; } |
