aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-pca100.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-05 13:52:09 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-17 04:01:31 -0500
commit2eb42d5c287f5e883a4b3ebe668ba880caa351e5 (patch)
tree05bba579ebdc9d945658f76f0b6476a65b69b3c3 /arch/arm/mach-imx/mach-pca100.c
parent9d3d945a8d5be2c915f646e8dff8422486a77030 (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-pca100.c')
-rw-r--r--arch/arm/mach-imx/mach-pca100.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-imx/mach-pca100.c b/arch/arm/mach-imx/mach-pca100.c
index b05f528bfc00..683374d94024 100644
--- a/arch/arm/mach-imx/mach-pca100.c
+++ b/arch/arm/mach-imx/mach-pca100.c
@@ -40,7 +40,6 @@
40#include <mach/audmux.h> 40#include <mach/audmux.h>
41#include <mach/mxc_nand.h> 41#include <mach/mxc_nand.h>
42#include <mach/irqs.h> 42#include <mach/irqs.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"
@@ -279,7 +278,7 @@ static int otg_phy_init(struct platform_device *pdev)
279 return 0; 278 return 0;
280} 279}
281 280
282static struct mxc_usbh_platform_data otg_pdata = { 281static struct mxc_usbh_platform_data otg_pdata __initdata = {
283 .init = otg_phy_init, 282 .init = otg_phy_init,
284 .portsc = MXC_EHCI_MODE_ULPI, 283 .portsc = MXC_EHCI_MODE_ULPI,
285 .flags = MXC_EHCI_INTERFACE_DIFF_UNI, 284 .flags = MXC_EHCI_INTERFACE_DIFF_UNI,
@@ -291,7 +290,7 @@ static int usbh2_phy_init(struct platform_device *pdev)
291 return 0; 290 return 0;
292} 291}
293 292
294static struct mxc_usbh_platform_data usbh2_pdata = { 293static struct mxc_usbh_platform_data usbh2_pdata __initdata = {
295 .init = usbh2_phy_init, 294 .init = usbh2_phy_init,
296 .portsc = MXC_EHCI_MODE_ULPI, 295 .portsc = MXC_EHCI_MODE_ULPI,
297 .flags = MXC_EHCI_INTERFACE_DIFF_UNI, 296 .flags = MXC_EHCI_INTERFACE_DIFF_UNI,
@@ -410,13 +409,13 @@ static void __init pca100_init(void)
410 otg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, 409 otg_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops,
411 ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT); 410 ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT);
412 411
413 mxc_register_device(&mxc_otg_host, &otg_pdata); 412 imx27_add_mxc_ehci_otg(&otg_pdata);
414 } 413 }
415 414
416 usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, 415 usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops,
417 ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT); 416 ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT);
418 417
419 mxc_register_device(&mxc_usbh2, &usbh2_pdata); 418 imx27_add_mxc_ehci_hs(2, &usbh2_pdata);
420#endif 419#endif
421 if (!otg_mode_host) { 420 if (!otg_mode_host) {
422 gpio_set_value(OTG_PHY_CS_GPIO, 0); 421 gpio_set_value(OTG_PHY_CS_GPIO, 0);