phy: rockchip-naneng-usb2: enable host port wakeup for rv1126

RV1126 PMU supports to enable USB interrupt as wakeup
source, include USB PHY irqs from OTG port and Host port.
In additionally, it needs to enable Host port wakeup in
GRF_SOC_CON0.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia4d2b868a42afb9fe35d444d5df557c3b6c12b37
This commit is contained in:
William Wu
2022-08-02 17:35:46 +08:00
committed by Tao Huang
parent ccf145fa4f
commit f39b590ea1

View File

@@ -1721,6 +1721,11 @@ static int rv1126_usb2phy_tuning(struct rockchip_usb2phy *rphy)
ret = regmap_write(rphy->grf, 0x1028c, 0x0f0f0100);
if (ret)
goto out;
/* Enable host port wakeup irq */
ret = regmap_write(rphy->grf, 0x0000, 0x00040004);
if (ret)
goto out;
}
out: