Skip to content

Commit 76a28bb

Browse files
Meng Dongyangrkhuangtao
authored andcommitted
phy: rockchip-inno-usb2: turn off differential receiver in suspend mode
Turn off differential receiver in suspend mode to save power Change-Id: Idd9b4c2d7d9d78915c94946ced99737683a2ce91 Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
1 parent c928aff commit 76a28bb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

drivers/phy/rockchip/phy-rockchip-inno-usb2.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,6 +1777,18 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
17771777
return ret;
17781778
}
17791779

1780+
static int rk312x_usb2phy_tuning(struct rockchip_usb2phy *rphy)
1781+
{
1782+
int ret;
1783+
1784+
/* Turn off differential receiver in suspend mode */
1785+
ret = regmap_write(rphy->grf, 0x298, 0x00040000);
1786+
if (ret)
1787+
return ret;
1788+
1789+
return 0;
1790+
}
1791+
17801792
static int rk3328_usb2phy_tuning(struct rockchip_usb2phy *rphy)
17811793
{
17821794
int ret;
@@ -1970,6 +1982,7 @@ static const struct rockchip_usb2phy_cfg rk312x_phy_cfgs[] = {
19701982
{
19711983
.reg = 0x17c,
19721984
.num_ports = 2,
1985+
.phy_tuning = rk312x_usb2phy_tuning,
19731986
.clkout_ctl = { 0x0190, 15, 15, 1, 0 },
19741987
.port_cfgs = {
19751988
[USB2PHY_PORT_OTG] = {

0 commit comments

Comments
 (0)