aboutsummaryrefslogtreecommitdiff
path: root/include/linux/usb/msm_hsusb.h
diff options
context:
space:
mode:
authorPavankumar Kondeti <pkondeti@codeaurora.org>2010-12-07 17:53:58 +0530
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-10 14:23:32 -0800
commit87c0104af742af2acfcbd685f2b9a40f33770dc0 (patch)
treef17e999013e443ec70bb4c05a79a44c6ae52054f /include/linux/usb/msm_hsusb.h
parent8bb6a164b906bb7ca319202f85b30e3ef096cd65 (diff)
USB: OTG: msm: Add support for power management
Implement runtime and system pm ops to put hardware into low power mode (LPM). As part of LPM, USB clocks are turned off, PHY is put into suspend state and PHY comparators are turned off if VBUS/Id notifications are not required from PHY. Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb/msm_hsusb.h')
-rw-r--r--include/linux/usb/msm_hsusb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/msm_hsusb.h b/include/linux/usb/msm_hsusb.h
index b796df94ec7..3675e03b153 100644
--- a/include/linux/usb/msm_hsusb.h
+++ b/include/linux/usb/msm_hsusb.h
@@ -88,6 +88,8 @@ struct msm_otg_platform_data {
* @regs: ioremapped register base address.
* @inputs: OTG state machine inputs(Id, SessValid etc).
* @sm_work: OTG state machine work.
+ * @in_lpm: indicates low power mode (LPM) state.
+ * @async_int: Async interrupt arrived.
*
*/
struct msm_otg {
@@ -103,6 +105,8 @@ struct msm_otg {
#define B_SESS_VLD 1
unsigned long inputs;
struct work_struct sm_work;
+ atomic_t in_lpm;
+ int async_int;
};
#endif