USB: First of all, usb phy enter usb mode for RK3188
authorwlf <wulf@rock-chips.com>
Sat, 26 Jan 2013 03:25:15 +0000 (11:25 +0800)
committerwlf <wulf@rock-chips.com>
Sat, 26 Jan 2013 03:25:15 +0000 (11:25 +0800)
drivers/usb/dwc_otg/dwc_otg_driver.c

index 358a633b6069f632d54bbe19b25faca256dfd4c4..a1e0fb187a5511ac92db9f7d9c003e66074d2fd1 100755 (executable)
@@ -1159,6 +1159,13 @@ 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();