USB: fix RK3188 usb20otg_hw_init
authorwlf <wulf@rock-chips.com>
Tue, 26 Mar 2013 13:11:10 +0000 (21:11 +0800)
committerwlf <wulf@rock-chips.com>
Tue, 26 Mar 2013 13:11:10 +0000 (21:11 +0800)
drivers/usb/dwc_otg/dwc_otg_driver.c
drivers/usb/dwc_otg/usbdev_rk30.c

index a1e0fb187a5511ac92db9f7d9c003e66074d2fd1..358a633b6069f632d54bbe19b25faca256dfd4c4 100755 (executable)
@@ -1159,13 +1159,6 @@ static __devinit int dwc_otg_driver_probe(struct platform_device *pdev)
        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();
index 3d19f1a5b36038eea49f731e65ff2d2dc942c6e2..a601d6e5c4621c11213f0b0b076c5c28af96f9cd 100755 (executable)
@@ -121,7 +121,11 @@ void usb20otg_hw_init(void)
 #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