diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-10 15:27:55 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:36 -0500 |
commit | 2c20b9f19add2248dc867f1f78dcef1eb0944543 (patch) | |
tree | c7b6861e16bc9fb9d4d25cb4c5730e4509af5033 /arch/arm/plat-mxc/ehci.c | |
parent | e9f0bafb4f3d32d0bc0ea7e946d667a68bae59ce (diff) |
ARM: mx25: dynamically allocate mxc-ehci devices
According to the reference manual of the i.MX25 the host controller uses an
offset of 0x200 not 0x400 as was specified in the resources for mxc_usbh2.
Needs-Testing: yes
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/ehci.c')
-rw-r--r-- | arch/arm/plat-mxc/ehci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-mxc/ehci.c b/arch/arm/plat-mxc/ehci.c index 9915607683de..f699235fdf5d 100644 --- a/arch/arm/plat-mxc/ehci.c +++ b/arch/arm/plat-mxc/ehci.c | |||
@@ -71,7 +71,7 @@ int mxc_initialize_usb_hw(int port, unsigned int flags) | |||
71 | unsigned int v; | 71 | unsigned int v; |
72 | #if defined(CONFIG_ARCH_MX25) | 72 | #if defined(CONFIG_ARCH_MX25) |
73 | if (cpu_is_mx25()) { | 73 | if (cpu_is_mx25()) { |
74 | v = readl(MX25_IO_ADDRESS(MX25_OTG_BASE_ADDR + | 74 | v = readl(MX25_IO_ADDRESS(MX25_USB_BASE_ADDR + |
75 | USBCTRL_OTGBASE_OFFSET)); | 75 | USBCTRL_OTGBASE_OFFSET)); |
76 | 76 | ||
77 | switch (port) { | 77 | switch (port) { |
@@ -108,7 +108,7 @@ int mxc_initialize_usb_hw(int port, unsigned int flags) | |||
108 | return -EINVAL; | 108 | return -EINVAL; |
109 | } | 109 | } |
110 | 110 | ||
111 | writel(v, MX25_IO_ADDRESS(MX25_OTG_BASE_ADDR + | 111 | writel(v, MX25_IO_ADDRESS(MX25_USB_BASE_ADDR + |
112 | USBCTRL_OTGBASE_OFFSET)); | 112 | USBCTRL_OTGBASE_OFFSET)); |
113 | return 0; | 113 | return 0; |
114 | } | 114 | } |