diff options
Diffstat (limited to 'arch/arm/mach-omap2/usb-musb.c')
-rw-r--r-- | arch/arm/mach-omap2/usb-musb.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c index 34a56a136efd..d85296dc896c 100644 --- a/arch/arm/mach-omap2/usb-musb.c +++ b/arch/arm/mach-omap2/usb-musb.c | |||
@@ -28,10 +28,20 @@ | |||
28 | 28 | ||
29 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
30 | #include <mach/irqs.h> | 30 | #include <mach/irqs.h> |
31 | #include <mach/pm.h> | ||
32 | #include <mach/mux.h> | 31 | #include <mach/mux.h> |
33 | #include <mach/usb.h> | 32 | #include <mach/usb.h> |
34 | 33 | ||
34 | #define OTG_SYSCONFIG (OMAP34XX_HSUSB_OTG_BASE + 0x404) | ||
35 | |||
36 | static void __init usb_musb_pm_init(void) | ||
37 | { | ||
38 | /* Ensure force-idle mode for OTG controller */ | ||
39 | if (cpu_is_omap34xx()) | ||
40 | omap_writel(0, OTG_SYSCONFIG); | ||
41 | } | ||
42 | |||
43 | #ifdef CONFIG_USB_MUSB_SOC | ||
44 | |||
35 | static struct resource musb_resources[] = { | 45 | static struct resource musb_resources[] = { |
36 | [0] = { /* start and end set dynamically */ | 46 | [0] = { /* start and end set dynamically */ |
37 | .flags = IORESOURCE_MEM, | 47 | .flags = IORESOURCE_MEM, |
@@ -184,4 +194,13 @@ void __init usb_musb_init(void) | |||
184 | printk(KERN_ERR "Unable to register HS-USB (MUSB) device\n"); | 194 | printk(KERN_ERR "Unable to register HS-USB (MUSB) device\n"); |
185 | return; | 195 | return; |
186 | } | 196 | } |
197 | |||
198 | usb_musb_pm_init(); | ||
199 | } | ||
200 | |||
201 | #else | ||
202 | void __init usb_musb_init(void) | ||
203 | { | ||
204 | usb_musb_pm_init(); | ||
187 | } | 205 | } |
206 | #endif /* CONFIG_USB_MUSB_SOC */ | ||