From f39b590ea11da2d897644e42119ba5099b2eefc8 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 1a6ae9dedacd..3ace4ab9145d 100644 --- a/drivers/phy/rockchip/phy-rockchip-naneng-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-naneng-usb2.c @@ -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: