Skip to content

Commit

Permalink
usb: phy: phy-rcar-gen2-usb: fix phy initialization
Browse files Browse the repository at this point in the history
Add missing USB UGCTRL2 register offset.

Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Valentine Barshak authored and Felipe Balbi committed Nov 25, 2013
1 parent e8d68f8 commit c8ba811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/phy/phy-rcar-gen2-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ static void __rcar_gen2_usb_phy_init(struct rcar_gen2_usb_phy_priv *priv)
clk_prepare_enable(priv->clk);

/* 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 |= priv->ugctrl2;
iowrite32(val, priv->base);
iowrite32(val, priv->base + USBHS_UGCTRL2_REG);
}

/* Shutdown USB channels */
Expand Down

0 comments on commit c8ba811

Please sign in to comment.