rk3026: usb: set gpio3c1 iomux to usb otg_drv
authorlyz <lyz@rock-chips.com>
Mon, 5 Aug 2013 06:45:17 +0000 (14:45 +0800)
committerlyz <lyz@rock-chips.com>
Tue, 6 Aug 2013 01:43:10 +0000 (09:43 +0800)
drivers/usb/dwc_otg/usbdev_rk3026.c

index 2e8dd1a37f09105376a269dd19464598fc51a297..f68efb9fda9a52cffbaf8b7a84bf0b9fe93052c8 100755 (executable)
@@ -114,7 +114,7 @@ void usb20otg_hw_init(void)
 #ifdef CONFIG_RK_CONFIG
     otg_drv_init(0);
 #else
-    rk30_mux_api_set(GPIO3_C1, 1);  
+    iomux_set(GPIO3_C1|0x01);  
 #endif
 }
 void usb20otg_phy_suspend(void* pdata, int suspend)
@@ -449,7 +449,7 @@ static irqreturn_t bvalid_irq_handler(int irq, void *dev_id)
     
 #ifdef CONFIG_RK_USB_UART
     /* usb otg dp/dm switch to usb phy */
-    writel_relaxed((3 << (12 + 16)),RK2928_GRF_BASE + GRF_UOC1_CON0);
+    dwc_otg_uart_mode(NULL, PHY_USB_MODE);
 #endif
     
     schedule_delayed_work(&usb_det_wakeup_work, HZ/10);