Commit c8ba8115 authored by Valentine Barshak's avatar Valentine Barshak Committed by Felipe Balbi

usb: phy: phy-rcar-gen2-usb: fix phy initialization

Add missing USB UGCTRL2 register offset.
Signed-off-by: default avatarValentine Barshak <valentine.barshak@cogentembedded.com>
Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent e8d68f88
...@@ -107,10 +107,10 @@ static void __rcar_gen2_usb_phy_init(struct rcar_gen2_usb_phy_priv *priv) ...@@ -107,10 +107,10 @@ static void __rcar_gen2_usb_phy_init(struct rcar_gen2_usb_phy_priv *priv)
clk_prepare_enable(priv->clk); clk_prepare_enable(priv->clk);
/* Set USB channels in the USBHS UGCTRL2 register */ /* Set USB channels in the USBHS UGCTRL2 register */
val = ioread32(priv->base); val = ioread32(priv->base + USBHS_UGCTRL2_REG);
val &= ~(USBHS_UGCTRL2_USB0_HS | USBHS_UGCTRL2_USB2_SS); val &= ~(USBHS_UGCTRL2_USB0_HS | USBHS_UGCTRL2_USB2_SS);
val |= priv->ugctrl2; val |= priv->ugctrl2;
iowrite32(val, priv->base); iowrite32(val, priv->base + USBHS_UGCTRL2_REG);
} }
/* Shutdown USB channels */ /* Shutdown USB channels */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment