diff options
| author | Jonas Karlman <[email protected]> | 2026-01-06 23:36:43 +0000 |
|---|---|---|
| committer | Kever Yang <[email protected]> | 2026-03-09 22:48:31 +0800 |
| commit | fe54fdc6f6ccbdf30b37ef4cc879b74b5e027d6a (patch) | |
| tree | 4950dda9089b86ea7abfb278a96b451fa0be18b2 /drivers | |
| parent | af5f97aeb88480fd3b82a11ea478de6f72f5fcb8 (diff) | |
phy: rockchip: naneng-combphy: Enable U3 port for USB3OTG on RK3568
The USB OTG U3 port may have been disabled early, add support to the
COMBPHY driver to re-enable the U3 port.
This matches changes made in the Linux commit 7bb14b61b7d0 ("phy:
rockchip: naneng-combphy: Enable U3 OTG port for RK3568").
Signed-off-by: Jonas Karlman <[email protected]>
Acked-by: Quentin Schulz <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c index d602f965d6a..82353ae7678 100644 --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c @@ -399,6 +399,14 @@ static int rk3568_combphy_cfg(struct rockchip_combphy_priv *priv) param_write(priv->phy_grf, &cfg->pipe_txcomp_sel, false); param_write(priv->phy_grf, &cfg->pipe_txelec_sel, false); param_write(priv->phy_grf, &cfg->usb_mode_set, true); + switch (priv->id) { + case 0: + param_write(priv->pipe_grf, &cfg->u3otg0_port_en, true); + break; + case 1: + param_write(priv->pipe_grf, &cfg->u3otg1_port_en, true); + break; + } break; case PHY_TYPE_SATA: writel(0x41, priv->mmio + 0x38); |
