mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-20 04:21:14 +09:00
usb host controller support remote wakeup
This commit is contained in:
@@ -89,6 +89,9 @@ config DWC_OTG_DEBUG
|
||||
bool "DWC_OTG debug messages"
|
||||
depends on USB11_HOST || USB20_HOST || USB20_OTG
|
||||
|
||||
config DWC_REMOTE_WAKEUP
|
||||
bool "remote wakeup support in DWC_OTG controller"
|
||||
depends on USB11_HOST || USB20_HOST || USB20_OTG
|
||||
config DWC_OTG
|
||||
tristate
|
||||
default y if USB11_HOST || USB20_HOST || USB20_OTG
|
||||
|
||||
@@ -105,8 +105,10 @@ static int dwc_otg_hcd_suspend(struct usb_hcd *hcd)
|
||||
}
|
||||
}
|
||||
udelay(3);
|
||||
#ifndef CONFIG_DWC_REMOTE_WAKEUP
|
||||
clk_disable(core_if->otg_dev->phyclk);
|
||||
clk_disable(core_if->otg_dev->ahbclk);
|
||||
#endif
|
||||
//power off
|
||||
return 0;
|
||||
}
|
||||
@@ -124,9 +126,10 @@ static int dwc_otg_hcd_resume(struct usb_hcd *hcd)
|
||||
DWC_PRINT("%s, usb device mode\n", __func__);
|
||||
return 0;
|
||||
}
|
||||
#ifndef CONFIG_DWC_REMOTE_WAKEUP
|
||||
clk_enable(core_if->otg_dev->phyclk);
|
||||
clk_enable(core_if->otg_dev->ahbclk);
|
||||
|
||||
#endif
|
||||
//partial power-down
|
||||
//power on
|
||||
pcgcctl.d32 = dwc_read_reg32(core_if->pcgcctl);;
|
||||
|
||||
Reference in New Issue
Block a user