diff options
Diffstat (limited to 'arch/arm/mach-mx3/mx31moboard-smartbot.c')
-rw-r--r-- | arch/arm/mach-mx3/mx31moboard-smartbot.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-smartbot.c b/arch/arm/mach-mx3/mx31moboard-smartbot.c index bbec3c82264a..35f806e737c1 100644 --- a/arch/arm/mach-mx3/mx31moboard-smartbot.c +++ b/arch/arm/mach-mx3/mx31moboard-smartbot.c | |||
@@ -123,17 +123,24 @@ static const struct fsl_usb2_platform_data usb_pdata __initconst = { | |||
123 | 123 | ||
124 | #if defined(CONFIG_USB_ULPI) | 124 | #if defined(CONFIG_USB_ULPI) |
125 | 125 | ||
126 | static int smartbot_otg_init(struct platform_device *pdev) | ||
127 | { | ||
128 | return mx31_initialize_usb_hw(pdev->id, MXC_EHCI_POWER_PINS_ENABLED); | ||
129 | } | ||
130 | |||
126 | static struct mxc_usbh_platform_data otg_host_pdata __initdata = { | 131 | static struct mxc_usbh_platform_data otg_host_pdata __initdata = { |
132 | .init = smartbot_otg_init, | ||
127 | .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT, | 133 | .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT, |
128 | .flags = MXC_EHCI_POWER_PINS_ENABLED, | ||
129 | }; | 134 | }; |
130 | 135 | ||
131 | static int __init smartbot_otg_host_init(void) | 136 | static int __init smartbot_otg_host_init(void) |
132 | { | 137 | { |
133 | struct platform_device *pdev; | 138 | struct platform_device *pdev; |
134 | 139 | ||
135 | otg_host_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops, | 140 | otg_host_pdata.otg = imx_otg_ulpi_create(ULPI_OTG_DRVVBUS | |
136 | ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT); | 141 | ULPI_OTG_DRVVBUS_EXT); |
142 | if (!otg_host_pdata.otg) | ||
143 | return -ENODEV; | ||
137 | 144 | ||
138 | pdev = imx31_add_mxc_ehci_otg(&otg_host_pdata); | 145 | pdev = imx31_add_mxc_ehci_otg(&otg_host_pdata); |
139 | if (IS_ERR(pdev)) | 146 | if (IS_ERR(pdev)) |