tristate
depends on DWC_OTG_310
default y if USB11_HOST || USB20_HOST || USB20_OTG
+
+config DWC_REMOTE_WAKEUP
+ bool "remote wakeup support in DWC_OTG controller"
+ depends on DWC_OTG_310
+ default y if USB20_HOST || USB20_OTG
+
+config RK_USB_DETECT_BY_OTG_BVALID
+ bool "Wakeup system by OTG BVALID interrupt when USB OTG conneted"
+ depends on USB_GADGET && ARCH_ROCKCHIP
+ default y if USB20_HOST || USB20_OTG
pcgcctl.b.stoppclk = 1;//stop phy clk
DWC_WRITE_REG32(core_if->pcgcctl, pcgcctl.d32);
}
-#if 0 //ndef CONFIG_DWC_REMOTE_WAKEUP
+#ifndef CONFIG_DWC_REMOTE_WAKEUP
else{ //no device connect
if(pldata->phy_suspend)
pldata->phy_suspend(pldata, USB_PHY_SUSPEND);
return 0;
//#endif
-#if 0 //ndef CONFIG_DWC_REMOTE_WAKEUP
+#ifndef CONFIG_DWC_REMOTE_WAKEUP
if (pldata->clock_enable)
pldata->clock_enable( pldata, 1);
#endif
mdelay(10);
}
-#if 0 //ndef CONFIG_DWC_REMOTE_WAKEUP
+#ifndef CONFIG_DWC_REMOTE_WAKEUP
else{
if(pldata->phy_suspend)
pldata->phy_suspend( pldata, USB_PHY_ENABLED);