summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx5/usb_dr.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2010-11-16 09:43:50 +0800
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2011-01-17 14:57:09 +0100
commitb2584ae414f3cc671ef5d97ceb113b8ec4ede5c8 (patch)
tree537404a6c7d9ce52fe5745b59155fe48937a2311 /arch/arm/mach-mx5/usb_dr.c
parent638d302b72fa8754ec3ad305e544f57426093653 (diff)
ENGR00133702-1 usb host1: Add usb host1 low power and wakeup support for mx28
MSL part Add usb low power and wakeup support for mx28 usb1, in that means, when the usb h1 is not in used, the host1 will close usb core and phy's clock. When an usb activity happens, the usb can be wakeup from low power mode. Meanwhile, the usb host1 can also be system wakeup source through sys entry like other platforms. Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx5/usb_dr.c')
-rw-r--r--arch/arm/mach-mx5/usb_dr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-mx5/usb_dr.c b/arch/arm/mach-mx5/usb_dr.c
index 9ab985120d15..f0dfc6f3149b 100644
--- a/arch/arm/mach-mx5/usb_dr.c
+++ b/arch/arm/mach-mx5/usb_dr.c
@@ -163,17 +163,17 @@ static void __phy_lowpower_suspend(bool enable, int source)
}
}
-static void _host_phy_lowpower_suspend(bool enable)
+static void _host_phy_lowpower_suspend(struct fsl_usb2_platform_data *pdata, bool enable)
{
__phy_lowpower_suspend(enable, ENABLED_BY_HOST);
}
-static void _device_phy_lowpower_suspend(bool enable)
+static void _device_phy_lowpower_suspend(struct fsl_usb2_platform_data *pdata, bool enable)
{
__phy_lowpower_suspend(enable, ENABLED_BY_DEVICE);
}
-static bool _is_host_wakeup(void)
+static bool _is_host_wakeup(struct fsl_usb2_platform_data *pdata)
{
int wakeup_req = USBCTRL & UCTRL_OWIR;
int otgsc = UOG_OTGSC;
@@ -190,7 +190,7 @@ static bool _is_host_wakeup(void)
}
return false;
}
-static bool _is_device_wakeup(void)
+static bool _is_device_wakeup(struct fsl_usb2_platform_data *pdata)
{
int wakeup_req = USBCTRL & UCTRL_OWIR;