USB: add remote wakeup and detect by otg bvalid in defconfig

This commit is contained in:
wlf
2014-03-12 09:10:30 +08:00
parent 63e0132580
commit 13a148e19e
2 changed files with 13 additions and 3 deletions

View File

@@ -29,3 +29,13 @@ config DWC_OTG
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

View File

@@ -749,7 +749,7 @@ static int dwc_otg_hcd_suspend(struct usb_hcd *hcd)
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);
@@ -784,7 +784,7 @@ static int dwc_otg_hcd_resume(struct usb_hcd *hcd)
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
@@ -843,7 +843,7 @@ static int dwc_otg_hcd_resume(struct usb_hcd *hcd)
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);