Skip to content

Commit

Permalink
USB: EHCI: Tegra: Fix wrong register definition
Browse files Browse the repository at this point in the history
Fix the issue that EHCI registers, hostpc[0] and usbmode_ex,
are not correctly accessed on Tegra3 platform.

Signed-off-by: Jim Lin <jilin@nvidia.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jim Lin authored and Greg Kroah-Hartman committed Sep 18, 2012
1 parent 8d733e2 commit 45c2da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/usb/ehci_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,18 @@ struct ehci_regs {
#define USBMODE_CM_HC (3<<0) /* host controller mode */
#define USBMODE_CM_IDLE (0<<0) /* idle state */

u32 reserved4[7];
u32 reserved4[6];

/* Moorestown has some non-standard registers, partially due to the fact that
* its EHCI controller has both TT and LPM support. HOSTPCx are extensions to
* PORTSCx
*/
/* HOSTPC: offset 0x84 */
u32 hostpc[0]; /* HOSTPC extension */
u32 hostpc[1]; /* HOSTPC extension */
#define HOSTPC_PHCD (1<<22) /* Phy clock disable */
#define HOSTPC_PSPD (3<<25) /* Port speed detection */

u32 reserved5[17];
u32 reserved5[16];

/* USBMODE_EX: offset 0xc8 */
u32 usbmode_ex; /* USB Device mode extension */
Expand Down

0 comments on commit 45c2da6

Please sign in to comment.