phy: rockchip-inno-usb2: turn off differential receiver

Turn off differential receiver in suspend mode for RK3328 and
PX30 to save power.

The effect of turn off differential receiver on electricity:
USB20_AVDD_1V8: 0.73mA (turn on)
USB20_AVDD_1V8: 0.03mA (tunn off)

Change-Id: I0650d6d4b712a3692eed2564dda36d41b7956bb9
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
This commit is contained in:
Meng Dongyang
2018-03-05 10:56:36 +08:00
committed by Tao Huang
parent ece39c304d
commit 2c759dbf17

View File

@@ -1839,6 +1839,11 @@ static int rk3328_usb2phy_tuning(struct rockchip_usb2phy *rphy)
if (ret)
return ret;
/* Turn off differential receiver in suspend mode */
ret = regmap_write(rphy->grf, 0x18, 0x00040000);
if (ret)
return ret;
return 0;
}