usb host controller support remote wakeup

This commit is contained in:
yangkai
2011-07-05 10:10:50 +08:00
parent 401a2b5ea4
commit 00a908a9fc
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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);;