diff options
Diffstat (limited to 'arch/arm/mach-mx5/board-cpuimx51.c')
-rw-r--r-- | arch/arm/mach-mx5/board-cpuimx51.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-mx5/board-cpuimx51.c b/arch/arm/mach-mx5/board-cpuimx51.c index 7c893fa70266..aa1ff79e5a74 100644 --- a/arch/arm/mach-mx5/board-cpuimx51.c +++ b/arch/arm/mach-mx5/board-cpuimx51.c | |||
@@ -167,7 +167,7 @@ static int initialize_otg_port(struct platform_device *pdev) | |||
167 | void __iomem *usb_base; | 167 | void __iomem *usb_base; |
168 | void __iomem *usbother_base; | 168 | void __iomem *usbother_base; |
169 | 169 | ||
170 | usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); | 170 | usb_base = ioremap(MX51_USB_OTG_BASE_ADDR, SZ_4K); |
171 | if (!usb_base) | 171 | if (!usb_base) |
172 | return -ENOMEM; | 172 | return -ENOMEM; |
173 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; | 173 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; |
@@ -190,7 +190,7 @@ static int initialize_usbh1_port(struct platform_device *pdev) | |||
190 | void __iomem *usb_base; | 190 | void __iomem *usb_base; |
191 | void __iomem *usbother_base; | 191 | void __iomem *usbother_base; |
192 | 192 | ||
193 | usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K); | 193 | usb_base = ioremap(MX51_USB_OTG_BASE_ADDR, SZ_4K); |
194 | if (!usb_base) | 194 | if (!usb_base) |
195 | return -ENOMEM; | 195 | return -ENOMEM; |
196 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; | 196 | usbother_base = usb_base + MX5_USBOTHER_REGS_OFFSET; |
@@ -206,7 +206,7 @@ static int initialize_usbh1_port(struct platform_device *pdev) | |||
206 | MXC_EHCI_ITC_NO_THRESHOLD); | 206 | MXC_EHCI_ITC_NO_THRESHOLD); |
207 | } | 207 | } |
208 | 208 | ||
209 | static struct mxc_usbh_platform_data dr_utmi_config = { | 209 | static const struct mxc_usbh_platform_data dr_utmi_config __initconst = { |
210 | .init = initialize_otg_port, | 210 | .init = initialize_otg_port, |
211 | .portsc = MXC_EHCI_UTMI_16BIT, | 211 | .portsc = MXC_EHCI_UTMI_16BIT, |
212 | }; | 212 | }; |
@@ -216,7 +216,7 @@ static struct fsl_usb2_platform_data usb_pdata = { | |||
216 | .phy_mode = FSL_USB2_PHY_UTMI_WIDE, | 216 | .phy_mode = FSL_USB2_PHY_UTMI_WIDE, |
217 | }; | 217 | }; |
218 | 218 | ||
219 | static struct mxc_usbh_platform_data usbh1_config = { | 219 | static const struct mxc_usbh_platform_data usbh1_config __initconst = { |
220 | .init = initialize_usbh1_port, | 220 | .init = initialize_usbh1_port, |
221 | .portsc = MXC_EHCI_MODE_ULPI, | 221 | .portsc = MXC_EHCI_MODE_ULPI, |
222 | }; | 222 | }; |
@@ -270,12 +270,12 @@ static void __init eukrea_cpuimx51_init(void) | |||
270 | ARRAY_SIZE(eukrea_cpuimx51_i2c_devices)); | 270 | ARRAY_SIZE(eukrea_cpuimx51_i2c_devices)); |
271 | 271 | ||
272 | if (otg_mode_host) | 272 | if (otg_mode_host) |
273 | mxc_register_device(&mxc_usbdr_host_device, &dr_utmi_config); | 273 | imx51_add_mxc_ehci_otg(&dr_utmi_config); |
274 | else { | 274 | else { |
275 | initialize_otg_port(NULL); | 275 | initialize_otg_port(NULL); |
276 | mxc_register_device(&mxc_usbdr_udc_device, &usb_pdata); | 276 | mxc_register_device(&mxc_usbdr_udc_device, &usb_pdata); |
277 | } | 277 | } |
278 | mxc_register_device(&mxc_usbh1_device, &usbh1_config); | 278 | imx51_add_mxc_ehci_hs(1, &usbh1_config); |
279 | 279 | ||
280 | #ifdef CONFIG_MACH_EUKREA_MBIMX51_BASEBOARD | 280 | #ifdef CONFIG_MACH_EUKREA_MBIMX51_BASEBOARD |
281 | eukrea_mbimx51_baseboard_init(); | 281 | eukrea_mbimx51_baseboard_init(); |