diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-05 13:52:09 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:31 -0500 |
commit | 2eb42d5c287f5e883a4b3ebe668ba880caa351e5 (patch) | |
tree | 05bba579ebdc9d945658f76f0b6476a65b69b3c3 /arch/arm/mach-imx/mach-cpuimx27.c | |
parent | 9d3d945a8d5be2c915f646e8dff8422486a77030 (diff) |
ARM: imx: dynamically allocate mxc-ehci devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-cpuimx27.c')
-rw-r--r-- | arch/arm/mach-imx/mach-cpuimx27.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-imx/mach-cpuimx27.c b/arch/arm/mach-imx/mach-cpuimx27.c index 06ff79a60901..c70b0382363e 100644 --- a/arch/arm/mach-imx/mach-cpuimx27.c +++ b/arch/arm/mach-imx/mach-cpuimx27.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #include <mach/hardware.h> | 40 | #include <mach/hardware.h> |
41 | #include <mach/iomux-mx27.h> | 41 | #include <mach/iomux-mx27.h> |
42 | #include <mach/mxc_nand.h> | 42 | #include <mach/mxc_nand.h> |
43 | #include <mach/mxc_ehci.h> | ||
44 | #include <mach/ulpi.h> | 43 | #include <mach/ulpi.h> |
45 | 44 | ||
46 | #include "devices-imx27.h" | 45 | #include "devices-imx27.h" |
@@ -213,12 +212,12 @@ static struct platform_device serial_device = { | |||
213 | #endif | 212 | #endif |
214 | 213 | ||
215 | #if defined(CONFIG_USB_ULPI) | 214 | #if defined(CONFIG_USB_ULPI) |
216 | static struct mxc_usbh_platform_data otg_pdata = { | 215 | static struct mxc_usbh_platform_data otg_pdata __initdata = { |
217 | .portsc = MXC_EHCI_MODE_ULPI, | 216 | .portsc = MXC_EHCI_MODE_ULPI, |
218 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | 217 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, |
219 | }; | 218 | }; |
220 | 219 | ||
221 | static struct mxc_usbh_platform_data usbh2_pdata = { | 220 | static struct mxc_usbh_platform_data usbh2_pdata __initdata = { |
222 | .portsc = MXC_EHCI_MODE_ULPI, | 221 | .portsc = MXC_EHCI_MODE_ULPI, |
223 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | 222 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, |
224 | }; | 223 | }; |
@@ -281,13 +280,13 @@ static void __init eukrea_cpuimx27_init(void) | |||
281 | otg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | 280 | otg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, |
282 | ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT); | 281 | ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT); |
283 | 282 | ||
284 | mxc_register_device(&mxc_otg_host, &otg_pdata); | 283 | imx27_add_mxc_ehci_otg(&otg_pdata); |
285 | } | 284 | } |
286 | 285 | ||
287 | usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | 286 | usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, |
288 | ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT); | 287 | ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT); |
289 | 288 | ||
290 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); | 289 | imx27_add_mxc_ehci_hs(2, &usbh2_pdata); |
291 | #endif | 290 | #endif |
292 | if (!otg_mode_host) | 291 | if (!otg_mode_host) |
293 | mxc_register_device(&mxc_otg_udc_device, &otg_device_pdata); | 292 | mxc_register_device(&mxc_otg_udc_device, &otg_device_pdata); |