|
@@ -28,7 +28,6 @@
|
|
#include <linux/serial_8250.h>
|
|
#include <linux/serial_8250.h>
|
|
#include <linux/usb/otg.h>
|
|
#include <linux/usb/otg.h>
|
|
#include <linux/usb/ulpi.h>
|
|
#include <linux/usb/ulpi.h>
|
|
-#include <linux/fsl_devices.h>
|
|
|
|
|
|
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/mach/arch.h>
|
|
@@ -223,7 +222,7 @@ static struct mxc_usbh_platform_data usbh2_pdata __initdata = {
|
|
};
|
|
};
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-static struct fsl_usb2_platform_data otg_device_pdata = {
|
|
|
|
|
|
+static const struct fsl_usb2_platform_data otg_device_pdata __initconst = {
|
|
.operating_mode = FSL_USB2_DR_DEVICE,
|
|
.operating_mode = FSL_USB2_DR_DEVICE,
|
|
.phy_mode = FSL_USB2_PHY_ULPI,
|
|
.phy_mode = FSL_USB2_PHY_ULPI,
|
|
};
|
|
};
|
|
@@ -289,7 +288,7 @@ static void __init eukrea_cpuimx27_init(void)
|
|
imx27_add_mxc_ehci_hs(2, &usbh2_pdata);
|
|
imx27_add_mxc_ehci_hs(2, &usbh2_pdata);
|
|
#endif
|
|
#endif
|
|
if (!otg_mode_host)
|
|
if (!otg_mode_host)
|
|
- mxc_register_device(&mxc_otg_udc_device, &otg_device_pdata);
|
|
|
|
|
|
+ imx27_add_fsl_usb2_udc(&otg_device_pdata);
|
|
|
|
|
|
#ifdef CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD
|
|
#ifdef CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD
|
|
eukrea_mbimx27_baseboard_init();
|
|
eukrea_mbimx27_baseboard_init();
|