From: Heiko Schocher Date: Tue, 1 Nov 2011 20:00:26 +0000 (+0000) Subject: arm, usb, davinci: make USBPHY_CTL register configurable X-Git-Tag: v2011.12-rc1~228^2~43 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1fa892c67baffd4b51170cfe9ca6d57ddf0eba60;p=u-boot arm, usb, davinci: make USBPHY_CTL register configurable Define CONFIG_DV_USBPHY_CTL for setting the USB PHY control register. Signed-off-by: Heiko Schocher Acked-by: Remy Bohmer cc: Sandeep Paulraj cc: Remy Bohmer Signed-off-by: Sandeep Paulraj --- diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c index c94a7623ff..359c635bf6 100644 --- a/drivers/usb/musb/davinci.c +++ b/drivers/usb/musb/davinci.c @@ -26,6 +26,10 @@ #include "davinci.h" #include +#if !defined(CONFIG_DV_USBPHY_CTL) +#define CONFIG_DV_USBPHY_CTL (USBPHY_SESNDEN | USBPHY_VBDTCTEN) +#endif + /* MUSB platform configuration */ struct musb_config musb_cfg = { .regs = (struct musb_regs *)MENTOR_USB0_BASE, @@ -50,7 +54,7 @@ static u8 phy_on(void) writel(USBPHY_PHY24MHZ | USBPHY_SESNDEN | USBPHY_VBDTCTEN, USBPHY_CTL_PADDR); #else - writel(USBPHY_SESNDEN | USBPHY_VBDTCTEN, USBPHY_CTL_PADDR); + writel(CONFIG_DV_USBPHY_CTL, USBPHY_CTL_PADDR); #endif timeout = musb_cfg.timeout;