diff options
author | Alek Du <alek.du@intel.com> | 2009-07-13 00:41:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-23 09:46:29 -0400 |
commit | 331ac6b288d9f3689514ced1878041fb0df7e13c (patch) | |
tree | c2a9d0187fea9224b81a0460b3fbe7f2e4ed0c21 /drivers/usb/host/ehci.h | |
parent | 3807e26d69b9ad3864fe03224ebebc9610d5802e (diff) |
USB: EHCI: Add Intel Moorestown EHCI controller HOSTPCx extensions and support phy low power mode
The Intel Moorestown EHCI controller supports non-standard HOSTPCx register
extension. This register controls the LPM behaviour and controls the behaviour
of each USB port.
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: Alek Du <alek.du@intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index fa12f20fbfe2..ec3dba6b8e48 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h | |||
@@ -136,6 +136,7 @@ struct ehci_hcd { /* one per controller */ | |||
136 | #define OHCI_HCCTRL_OFFSET 0x4 | 136 | #define OHCI_HCCTRL_OFFSET 0x4 |
137 | #define OHCI_HCCTRL_LEN 0x4 | 137 | #define OHCI_HCCTRL_LEN 0x4 |
138 | __hc32 *ohci_hcctrl_reg; | 138 | __hc32 *ohci_hcctrl_reg; |
139 | unsigned has_hostpc:1; | ||
139 | 140 | ||
140 | u8 sbrn; /* packed release number */ | 141 | u8 sbrn; /* packed release number */ |
141 | 142 | ||
@@ -548,7 +549,7 @@ static inline unsigned int | |||
548 | ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) | 549 | ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc) |
549 | { | 550 | { |
550 | if (ehci_is_TDI(ehci)) { | 551 | if (ehci_is_TDI(ehci)) { |
551 | switch ((portsc>>26)&3) { | 552 | switch ((portsc >> (ehci->has_hostpc ? 25 : 26)) & 3) { |
552 | case 0: | 553 | case 0: |
553 | return 0; | 554 | return 0; |
554 | case 1: | 555 | case 1: |