From 5b8d53d61f95c1244eed2eb35d993642d9ae2b4b Mon Sep 17 00:00:00 2001 From: William Wu Date: Tue, 2 Aug 2022 17:35:46 +0800 Subject: [PATCH] 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 Change-Id: Ia4d2b868a42afb9fe35d444d5df557c3b6c12b37 --- drivers/phy/rockchip/phy-rockchip-naneng-usb2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/phy/rockchip/phy-rockchip-naneng-usb2.c b/drivers/phy/rockchip/phy-rockchip-naneng-usb2.c index 80083609e442..e051b1a3dc75 100644 --- a/drivers/phy/rockchip/phy-rockchip-naneng-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-naneng-usb2.c @@ -1673,6 +1673,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: