diff options
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 4c8962f976b..074d380bf88 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -2031,6 +2031,7 @@ bad_config: | |||
2031 | /* host side needs more setup */ | 2031 | /* host side needs more setup */ |
2032 | if (is_host_enabled(musb)) { | 2032 | if (is_host_enabled(musb)) { |
2033 | struct usb_hcd *hcd = musb_to_hcd(musb); | 2033 | struct usb_hcd *hcd = musb_to_hcd(musb); |
2034 | u8 busctl; | ||
2034 | 2035 | ||
2035 | otg_set_host(musb->xceiv, &hcd->self); | 2036 | otg_set_host(musb->xceiv, &hcd->self); |
2036 | 2037 | ||
@@ -2038,6 +2039,13 @@ bad_config: | |||
2038 | hcd->self.otg_port = 1; | 2039 | hcd->self.otg_port = 1; |
2039 | musb->xceiv->host = &hcd->self; | 2040 | musb->xceiv->host = &hcd->self; |
2040 | hcd->power_budget = 2 * (plat->power ? : 250); | 2041 | hcd->power_budget = 2 * (plat->power ? : 250); |
2042 | |||
2043 | /* program PHY to use external vBus if required */ | ||
2044 | if (plat->extvbus) { | ||
2045 | busctl = musb_readb(musb->mregs, MUSB_ULPI_BUSCONTROL); | ||
2046 | busctl |= MUSB_ULPI_USE_EXTVBUS; | ||
2047 | musb_writeb(musb->mregs, MUSB_ULPI_BUSCONTROL, busctl); | ||
2048 | } | ||
2041 | } | 2049 | } |
2042 | 2050 | ||
2043 | /* For the host-only role, we can activate right away. | 2051 | /* For the host-only role, we can activate right away. |