OMAP3EVM uses ISP1504 phy and so twl4030 related init is not required.

Submitted-by: Ajay Kumar Gupta <ajay.gu...@ti.com>
Signed-off-by: Tom Rix <tom....@windriver.com>
---
 drivers/usb/musb/omap3.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/musb/omap3.c b/drivers/usb/musb/omap3.c
index 3e502e7..ea98c3c 100644
--- a/drivers/usb/musb/omap3.c
+++ b/drivers/usb/musb/omap3.c
@@ -94,12 +94,17 @@ int musb_platform_init(void)
        if (platform_needs_initialization) {
                u32 stdby;
 
+               /*
+                * OMAP3EVM uses ISP1504 phy and so
+                * twl4030 related init is not required.
+                */
+#ifdef CONFIG_TWL4030_USB
                if (twl4030_usb_ulpi_init()) {
                        serial_printf("ERROR: %s Could not initialize PHY\n",
                                __PRETTY_FUNCTION__);
                        goto end;
                }
-
+#endif
                otg = (struct omap3_otg_regs *)OMAP3_OTG_BASE;
 
                /* Set OTG to always be on */
-- 
1.6.0.6

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to