Hello.

On 12-09-2012 10:55, Simon Horman wrote:

below is an incremental patch to add some workarounds that
were made available to me. I wonder if you have some documentation
available to replace the hex values with #defines?


From: Kouei Abe <kouei.abe...@rms.renesas.com>

arm: mach-rcar: Add USB-PHY workaround

Signed-off-by: Kouei Abe <kouei.abe...@rms.renesas.com>
Signed-off-by: Simon Horman <ho...@verge.net.au>
[...]

diff --git a/drivers/usb/phy/rcar-phy.c b/drivers/usb/phy/rcar-phy.c
index 3fce889..5bf1634 100644
--- a/drivers/usb/phy/rcar-phy.c
+++ b/drivers/usb/phy/rcar-phy.c
@@ -86,6 +86,15 @@ static int rcar_usb_phy_init(struct usb_phy *phy)
                /* (2) start USB-PHY internal PLL */
                iowrite32(PHY_ENB | PLL_ENB, (reg0 + USBPCTRL1));

+               /* work around of USB-PHY */
+#ifdef CONFIG_USB_PHY_MARZEN_010S
+               writel(0x10700040, (reg0 + 0x0850));
+               writel(0x00007700, (reg0 + 0x085C));
+#elif CONFIG_USB_PHY_MARZEN_110S

   Shouldn't it be:

#elif defined(CONFIG_USB_PHY_MARZEN_110S)

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to