int irq;
struct dwc_otg_platform_data *pldata = dev->platform_data;
-
-#ifdef CONFIG_ARCH_RK3188
- unsigned int * USB_GRF_UOC0_CON0 = (unsigned int*)(RK30_GRF_BASE+0x10c);
- /* usb phy enter usb mode */
- * USB_GRF_UOC0_CON0 = (0x0300 << 16);
-#endif
-
// clock and hw init
if(pldata->hw_init)
pldata->hw_init();
#endif\r
#endif\r
// usb phy config init\r
- \r
+#ifdef CONFIG_ARCH_RK3188\r
+ //usb phy enter usb mode\r
+ unsigned int * otg_phy_con3 = (unsigned int*)(USBGRF_UOC0_CON0);\r
+ *otg_phy_con3 = (0x0300 << 16);\r
+#endif \r
// other haredware init\r
#if defined(CONFIG_ARCH_RK3066B) || defined(CONFIG_ARCH_RK3188)\r
//GPIO init\r