Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195324
b: refs/heads/master
c: de2e1b0
h: refs/heads/master
v: v3
  • Loading branch information
Maulik Mankad authored and Greg Kroah-Hartman committed May 20, 2010
1 parent d25268a commit 8cbc94d
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6c213b2968cbee4cfb8f89f2d685b9ad07eefbd
refs/heads/master: de2e1b0c988c901989713869a8bea3b3d02bb9ce
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/blackfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ int musb_platform_set_mode(struct musb *musb, u8 musb_mode)
return -EIO;
}

int __init musb_platform_init(struct musb *musb)
int __init musb_platform_init(struct musb *musb, void *board_data)
{

/*
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ int musb_platform_set_mode(struct musb *musb, u8 mode)
return -EIO;
}

int __init musb_platform_init(struct musb *musb)
int __init musb_platform_init(struct musb *musb, void *board_data)
{
void __iomem *tibase = musb->ctrl_base;
u32 revision;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
* isp1504, non-OTG, etc) mostly hooking up through ULPI.
*/
musb->isr = generic_interrupt;
status = musb_platform_init(musb);
status = musb_platform_init(musb, plat->board_data);
if (status < 0)
goto fail2;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/musb_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ extern int musb_platform_get_vbus_status(struct musb *musb);
#define musb_platform_get_vbus_status(x) 0
#endif

extern int __init musb_platform_init(struct musb *musb);
extern int __init musb_platform_init(struct musb *musb, void *board_data);
extern int musb_platform_exit(struct musb *musb);

#endif /* __MUSB_CORE_H__ */
13 changes: 11 additions & 2 deletions trunk/drivers/usb/musb/omap2430.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ int musb_platform_set_mode(struct musb *musb, u8 musb_mode)
return 0;
}

int __init musb_platform_init(struct musb *musb)
int __init musb_platform_init(struct musb *musb, void *board_data)
{
u32 l;
struct omap_musb_board_data *data = board_data;

#if defined(CONFIG_ARCH_OMAP2430)
omap_cfg_reg(AE5_2430_USB0HS_STP);
Expand Down Expand Up @@ -235,7 +236,15 @@ int __init musb_platform_init(struct musb *musb)
musb_writel(musb->mregs, OTG_SYSCONFIG, l);

l = musb_readl(musb->mregs, OTG_INTERFSEL);
l |= ULPI_12PIN;

if (data->interface_type == MUSB_INTERFACE_UTMI) {
/* OMAP4 uses Internal PHY GS70 which uses UTMI interface */
l &= ~ULPI_12PIN; /* Disable ULPI */
l |= UTMI_8BIT; /* Enable UTMI */
} else {
l |= ULPI_12PIN;
}

musb_writel(musb->mregs, OTG_INTERFSEL, l);

pr_debug("HS USB OTG: revision 0x%x, sysconfig 0x%02x, "
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/musb/tusb6010.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ static int __init tusb_start(struct musb *musb)
return -ENODEV;
}

int __init musb_platform_init(struct musb *musb)
int __init musb_platform_init(struct musb *musb, void *board_data)
{
struct platform_device *pdev;
struct resource *mem;
Expand Down

0 comments on commit 8cbc94d

Please sign in to comment.