mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
USB: add remote wakeup and detect by otg bvalid in defconfig
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user