|
@@ -25,6 +25,7 @@
|
|
|
#include <linux/slab.h>
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/types.h>
|
|
|
+#include <linux/fsl_devices.h>
|
|
|
|
|
|
#include <linux/usb/otg.h>
|
|
|
|
|
@@ -329,6 +330,11 @@ static int __init marxbot_usbh1_init(void)
|
|
|
return mxc_register_device(&mxc_usbh1, &usbh1_pdata);
|
|
|
}
|
|
|
|
|
|
+static struct fsl_usb2_platform_data usb_pdata = {
|
|
|
+ .operating_mode = FSL_USB2_DR_DEVICE,
|
|
|
+ .phy_mode = FSL_USB2_PHY_ULPI,
|
|
|
+};
|
|
|
+
|
|
|
/*
|
|
|
* system init for baseboard usage. Will be called by mx31moboard init.
|
|
|
*/
|
|
@@ -356,5 +362,7 @@ void __init mx31moboard_marxbot_init(void)
|
|
|
gpio_direction_input(IOMUX_TO_GPIO(MX31_PIN_LCS0));
|
|
|
gpio_export(IOMUX_TO_GPIO(MX31_PIN_LCS0), false);
|
|
|
|
|
|
+ mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
|
|
|
+
|
|
|
marxbot_usbh1_init();
|
|
|
}
|