diff options
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_babbage.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_babbage.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c index e400b09109ce..1d15297ab8b4 100644 --- a/arch/arm/mach-mx5/board-mx51_babbage.c +++ b/arch/arm/mach-mx5/board-mx51_babbage.c | |||
@@ -249,7 +249,7 @@ static int initialize_otg_port(struct platform_device *pdev) | |||
249 | void __iomem *usb_base; | 249 | void __iomem *usb_base; |
250 | void __iomem *usbother_base; | 250 | void __iomem *usbother_base; |
251 | 251 | ||
252 | usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); | 252 | usb_base = ioremap(MX51_USB_OTG_BASE_ADDR, SZ_4K); |
253 | if (!usb_base) | 253 | if (!usb_base) |
254 | return -ENOMEM; | 254 | return -ENOMEM; |
255 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; | 255 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; |
@@ -272,7 +272,7 @@ static int initialize_usbh1_port(struct platform_device *pdev) | |||
272 | void __iomem *usb_base; | 272 | void __iomem *usb_base; |
273 | void __iomem *usbother_base; | 273 | void __iomem *usbother_base; |
274 | 274 | ||
275 | usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); | 275 | usb_base = ioremap(MX51_USB_OTG_BASE_ADDR, SZ_4K); |
276 | if (!usb_base) | 276 | if (!usb_base) |
277 | return -ENOMEM; | 277 | return -ENOMEM; |
278 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; | 278 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; |
@@ -288,7 +288,7 @@ static int initialize_usbh1_port(struct platform_device *pdev) | |||
288 | MXC_EHCI_ITC_NO_THRESHOLD); | 288 | MXC_EHCI_ITC_NO_THRESHOLD); |
289 | } | 289 | } |
290 | 290 | ||
291 | static struct mxc_usbh_platform_data dr_utmi_config = { | 291 | static const struct mxc_usbh_platform_data dr_utmi_config __initconst = { |
292 | .init = initialize_otg_port, | 292 | .init = initialize_otg_port, |
293 | .portsc = MXC_EHCI_UTMI_16BIT, | 293 | .portsc = MXC_EHCI_UTMI_16BIT, |
294 | }; | 294 | }; |
@@ -298,7 +298,7 @@ static struct fsl_usb2_platform_data usb_pdata = { | |||
298 | .phy_mode = FSL_USB2_PHY_UTMI_WIDE, | 298 | .phy_mode = FSL_USB2_PHY_UTMI_WIDE, |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static struct mxc_usbh_platform_data usbh1_config = { | 301 | static const struct mxc_usbh_platform_data usbh1_config __initconst = { |
302 | .init = initialize_usbh1_port, | 302 | .init = initialize_usbh1_port, |
303 | .portsc = MXC_EHCI_MODE_ULPI, | 303 | .portsc = MXC_EHCI_MODE_ULPI, |
304 | }; | 304 | }; |
@@ -384,14 +384,14 @@ static void __init mx51_babbage_init(void) | |||
384 | mxc_register_device(&mxc_hsi2c_device, &babbage_hsi2c_data); | 384 | mxc_register_device(&mxc_hsi2c_device, &babbage_hsi2c_data); |
385 | 385 | ||
386 | if (otg_mode_host) | 386 | if (otg_mode_host) |
387 | mxc_register_device(&mxc_usbdr_host_device, &dr_utmi_config); | 387 | imx51_add_mxc_ehci_otg(&dr_utmi_config); |
388 | else { | 388 | else { |
389 | initialize_otg_port(NULL); | 389 | initialize_otg_port(NULL); |
390 | mxc_register_device(&mxc_usbdr_udc_device, &usb_pdata); | 390 | mxc_register_device(&mxc_usbdr_udc_device, &usb_pdata); |
391 | } | 391 | } |
392 | 392 | ||
393 | gpio_usbh1_active(); | 393 | gpio_usbh1_active(); |
394 | mxc_register_device(&mxc_usbh1_device, &usbh1_config); | 394 | imx51_add_mxc_ehci_hs(1, &usbh1_config); |
395 | /* setback USBH1_STP to be function */ | 395 | /* setback USBH1_STP to be function */ |
396 | mxc_iomux_v3_setup_pad(usbh1stp); | 396 | mxc_iomux_v3_setup_pad(usbh1stp); |
397 | babbage_usbhub_reset(); | 397 | babbage_usbhub_reset(); |