diff options
author | Li Jun <b47624@freescale.com> | 2015-02-10 23:45:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-18 11:19:12 -0400 |
commit | 961ea496facda611eeb153d8133a4d40055e56ca (patch) | |
tree | da1267b53586d89f2510dcdd27b636315ac7eb6e /drivers/usb/chipidea/bits.h | |
parent | 6594591741883e004aaba105951337878698b054 (diff) |
usb: chipidea: support runtime power management for otg fsm mode
This patch adds runtime power management support for otg fsm mode, since
A-device in a_idle state cannot detect data pulse irq after suspended, here
enable wakeup by connection before suspend to make it can be resumed by DP;
and handle wakeup from that state like SRP.
Signed-off-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/bits.h')
-rw-r--r-- | drivers/usb/chipidea/bits.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/bits.h b/drivers/usb/chipidea/bits.h index e69424d6e423..3cb9bda51ddf 100644 --- a/drivers/usb/chipidea/bits.h +++ b/drivers/usb/chipidea/bits.h | |||
@@ -63,6 +63,7 @@ | |||
63 | #define PORTSC_HSP BIT(9) | 63 | #define PORTSC_HSP BIT(9) |
64 | #define PORTSC_PP BIT(12) | 64 | #define PORTSC_PP BIT(12) |
65 | #define PORTSC_PTC (0x0FUL << 16) | 65 | #define PORTSC_PTC (0x0FUL << 16) |
66 | #define PORTSC_WKCN BIT(20) | ||
66 | #define PORTSC_PHCD(d) ((d) ? BIT(22) : BIT(23)) | 67 | #define PORTSC_PHCD(d) ((d) ? BIT(22) : BIT(23)) |
67 | /* PTS and PTW for non lpm version only */ | 68 | /* PTS and PTW for non lpm version only */ |
68 | #define PORTSC_PFSC BIT(24) | 69 | #define PORTSC_PFSC BIT(24) |