diff options
| -rw-r--r-- | arch/arm/include/asm/arch-mx25/imx-regs.h | 1 | ||||
| -rw-r--r-- | arch/arm/include/asm/arch-mx31/imx-regs.h | 1 | ||||
| -rw-r--r-- | drivers/usb/host/ehci-mxc.c | 2 | 
3 files changed, 3 insertions, 1 deletions
| diff --git a/arch/arm/include/asm/arch-mx25/imx-regs.h b/arch/arm/include/asm/arch-mx25/imx-regs.h index 738d4115e..5f4b54382 100644 --- a/arch/arm/include/asm/arch-mx25/imx-regs.h +++ b/arch/arm/include/asm/arch-mx25/imx-regs.h @@ -241,6 +241,7 @@ struct aips_regs {  #define IMX_RTIC_BASE		(0x53FEC000)  #define IMX_IIM_BASE		(0x53FF0000)  #define IMX_USB_BASE		(0x53FF4000) +#define IMX_USB_PORT_OFFSET	0x200  #define IMX_CSI_BASE		(0x53FF8000)  #define IMX_DRYICE_BASE		(0x53FFC000) diff --git a/arch/arm/include/asm/arch-mx31/imx-regs.h b/arch/arm/include/asm/arch-mx31/imx-regs.h index 01a849dd8..ae3658b63 100644 --- a/arch/arm/include/asm/arch-mx31/imx-regs.h +++ b/arch/arm/include/asm/arch-mx31/imx-regs.h @@ -895,6 +895,7 @@ struct esdc_regs {  #define MX31_AIPS1_BASE_ADDR	0x43f00000  #define IMX_USB_BASE		(MX31_AIPS1_BASE_ADDR + 0x88000) +#define IMX_USB_PORT_OFFSET	0x200  /*   * CSPI register definitions diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c index 846aa3b7c..6260a8c93 100644 --- a/drivers/usb/host/ehci-mxc.c +++ b/drivers/usb/host/ehci-mxc.c @@ -169,7 +169,7 @@ int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)  	udelay(80);  	ehci = (struct usb_ehci *)(IMX_USB_BASE + -		(0x200 * CONFIG_MXC_USB_PORT)); +			IMX_USB_PORT_OFFSET * CONFIG_MXC_USB_PORT);  	*hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength);  	*hcor = (struct ehci_hcor *)((uint32_t) *hccr +  			HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); |