diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-09-13 11:54:39 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-04-30 04:31:21 -0400 |
commit | e6a3b5e2888b51e37c65c97dae966f793bc4806a (patch) | |
tree | 934c2a7578d15dedbe2221c28cbdff7afd28588f /drivers/usb/dwc3/core.h | |
parent | 51249dca627d9d0e6b41531e716cbc308554a62c (diff) |
usb: dwc3: ep0: add LPM handling
On device loading the driver enables LPM and the acceptance of U1 and U2
states. The [Set|Clear]Feature requests for "U1/U2" are forwarded
directly to the hardware and allow / forbid the initiation of the low
power links.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r-- | drivers/usb/dwc3/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index c7b3ca037bbc..93f9973ad53e 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h | |||
@@ -194,6 +194,7 @@ | |||
194 | #define DWC3_GHWPARAMS1_EN_PWROPT_CLK 1 | 194 | #define DWC3_GHWPARAMS1_EN_PWROPT_CLK 1 |
195 | 195 | ||
196 | /* Device Configuration Register */ | 196 | /* Device Configuration Register */ |
197 | #define DWC3_DCFG_LPM_CAP (1 << 22) | ||
197 | #define DWC3_DCFG_DEVADDR(addr) ((addr) << 3) | 198 | #define DWC3_DCFG_DEVADDR(addr) ((addr) << 3) |
198 | #define DWC3_DCFG_DEVADDR_MASK DWC3_DCFG_DEVADDR(0x7f) | 199 | #define DWC3_DCFG_DEVADDR_MASK DWC3_DCFG_DEVADDR(0x7f) |
199 | 200 | ||