aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/blackfin.c2
-rw-r--r--drivers/usb/musb/davinci.c2
-rw-r--r--drivers/usb/musb/musb_core.c2
-rw-r--r--drivers/usb/musb/musb_core.h2
-rw-r--r--drivers/usb/musb/omap2430.c13
-rw-r--r--drivers/usb/musb/tusb6010.c2
6 files changed, 16 insertions, 7 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c
index ec8d324237f6..7c71eb422a9c 100644
--- a/drivers/usb/musb/blackfin.c
+++ b/drivers/usb/musb/blackfin.c
@@ -270,7 +270,7 @@ int musb_platform_set_mode(struct musb *musb, u8 musb_mode)
270 return -EIO; 270 return -EIO;
271} 271}
272 272
273int __init musb_platform_init(struct musb *musb) 273int __init musb_platform_init(struct musb *musb, void *board_data)
274{ 274{
275 275
276 /* 276 /*
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c
index ce2e16fee0df..57624361c1de 100644
--- a/drivers/usb/musb/davinci.c
+++ b/drivers/usb/musb/davinci.c
@@ -376,7 +376,7 @@ int musb_platform_set_mode(struct musb *musb, u8 mode)
376 return -EIO; 376 return -EIO;
377} 377}
378 378
379int __init musb_platform_init(struct musb *musb) 379int __init musb_platform_init(struct musb *musb, void *board_data)
380{ 380{
381 void __iomem *tibase = musb->ctrl_base; 381 void __iomem *tibase = musb->ctrl_base;
382 u32 revision; 382 u32 revision;
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 3f4c158a9f5e..633272e6d321 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -1943,7 +1943,7 @@ bad_config:
1943 * isp1504, non-OTG, etc) mostly hooking up through ULPI. 1943 * isp1504, non-OTG, etc) mostly hooking up through ULPI.
1944 */ 1944 */
1945 musb->isr = generic_interrupt; 1945 musb->isr = generic_interrupt;
1946 status = musb_platform_init(musb); 1946 status = musb_platform_init(musb, plat->board_data);
1947 if (status < 0) 1947 if (status < 0)
1948 goto fail2; 1948 goto fail2;
1949 1949
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h
index 1da14bf17a65..136f71cbd5e3 100644
--- a/drivers/usb/musb/musb_core.h
+++ b/drivers/usb/musb/musb_core.h
@@ -608,7 +608,7 @@ extern int musb_platform_get_vbus_status(struct musb *musb);
608#define musb_platform_get_vbus_status(x) 0 608#define musb_platform_get_vbus_status(x) 0
609#endif 609#endif
610 610
611extern int __init musb_platform_init(struct musb *musb); 611extern int __init musb_platform_init(struct musb *musb, void *board_data);
612extern int musb_platform_exit(struct musb *musb); 612extern int musb_platform_exit(struct musb *musb);
613 613
614#endif /* __MUSB_CORE_H__ */ 614#endif /* __MUSB_CORE_H__ */
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 82592633502f..0e5d0670506b 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -199,9 +199,10 @@ int musb_platform_set_mode(struct musb *musb, u8 musb_mode)
199 return 0; 199 return 0;
200} 200}
201 201
202int __init musb_platform_init(struct musb *musb) 202int __init musb_platform_init(struct musb *musb, void *board_data)
203{ 203{
204 u32 l; 204 u32 l;
205 struct omap_musb_board_data *data = board_data;
205 206
206#if defined(CONFIG_ARCH_OMAP2430) 207#if defined(CONFIG_ARCH_OMAP2430)
207 omap_cfg_reg(AE5_2430_USB0HS_STP); 208 omap_cfg_reg(AE5_2430_USB0HS_STP);
@@ -235,7 +236,15 @@ int __init musb_platform_init(struct musb *musb)
235 musb_writel(musb->mregs, OTG_SYSCONFIG, l); 236 musb_writel(musb->mregs, OTG_SYSCONFIG, l);
236 237
237 l = musb_readl(musb->mregs, OTG_INTERFSEL); 238 l = musb_readl(musb->mregs, OTG_INTERFSEL);
238 l |= ULPI_12PIN; 239
240 if (data->interface_type == MUSB_INTERFACE_UTMI) {
241 /* OMAP4 uses Internal PHY GS70 which uses UTMI interface */
242 l &= ~ULPI_12PIN; /* Disable ULPI */
243 l |= UTMI_8BIT; /* Enable UTMI */
244 } else {
245 l |= ULPI_12PIN;
246 }
247
239 musb_writel(musb->mregs, OTG_INTERFSEL, l); 248 musb_writel(musb->mregs, OTG_INTERFSEL, l);
240 249
241 pr_debug("HS USB OTG: revision 0x%x, sysconfig 0x%02x, " 250 pr_debug("HS USB OTG: revision 0x%x, sysconfig 0x%02x, "
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c
index 60d3938cafcf..05c077f8f9ac 100644
--- a/drivers/usb/musb/tusb6010.c
+++ b/drivers/usb/musb/tusb6010.c
@@ -1104,7 +1104,7 @@ err:
1104 return -ENODEV; 1104 return -ENODEV;
1105} 1105}
1106 1106
1107int __init musb_platform_init(struct musb *musb) 1107int __init musb_platform_init(struct musb *musb, void *board_data)
1108{ 1108{
1109 struct platform_device *pdev; 1109 struct platform_device *pdev;
1110 struct resource *mem; 1110 struct resource *mem;