diff options
author | Frank Li <Frank.Li@freescale.com> | 2010-04-12 12:24:18 +0800 |
---|---|---|
committer | Alejandro Gonzalez <alex.gonzalez@digi.com> | 2010-05-25 11:20:22 +0200 |
commit | b14efae4d3d254b1ed0366eaef0398403aa7b703 (patch) | |
tree | dac819096c2da82860dbfa12c831bf06fa7e6df9 /arch/arm | |
parent | 8fb29b6f0ad8e1f855ef2f8c1b5d4869c7125608 (diff) |
ENGR00122435 iMX23 Support USB current draw and fix power switch issue
Support USB current draw on mx23 and fix power switch issue.
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-mx23/usb_dr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-mx23/usb_dr.c b/arch/arm/mach-mx23/usb_dr.c index 1a196e70458a..13f9a296909c 100644 --- a/arch/arm/mach-mx23/usb_dr.c +++ b/arch/arm/mach-mx23/usb_dr.c @@ -164,5 +164,8 @@ void fsl_phy_set_power(struct fsl_xcvr_ops *this, gpio_free(USB_POWER_ENABLE); } -module_init(usb_dr_init); - +#ifdef CONFIG_MXS_VBUS_CURRENT_DRAW + fs_initcall(usb_dr_init); +#else + module_init(usb_dr_init); +#endif |