adjust usb phy suspend timing

This commit is contained in:
yangkai 2011-02-18 16:28:20 +08:00
parent aca9356377
commit 6ce4f3567b
3 changed files with 5 additions and 3 deletions

View File

@ -364,6 +364,7 @@ static ssize_t dwc_otg_enable_store( struct device *_dev,
if (_core_if->hcd_cb && _core_if->hcd_cb->suspend) {
_core_if->hcd_cb->suspend( _core_if->hcd_cb->p, val);
}
udelay(3);
clk_disable(otg_dev->phyclk);
clk_disable(otg_dev->ahbclk);
}
@ -956,6 +957,7 @@ static __devinit int dwc_otg_driver_probe(struct platform_device *pdev)
*otg_phy_con1 = regval;
udelay(3);
clk_disable(phyclk);
clk_disable(ahbclk);
#endif
@ -983,7 +985,7 @@ static __devinit int dwc_otg_driver_probe(struct platform_device *pdev)
regval |= (0x01<<13); // software control
*otg_phy_con1 = regval;
udelay(3);
clk_disable(phyclk);
clk_disable(ahbclk);
#endif

View File

@ -104,7 +104,7 @@ static int dwc_otg_hcd_suspend(struct usb_hcd *hcd)
core_if->hcd_cb->suspend( core_if->hcd_cb->p, 0);
}
}
udelay(1);
udelay(3);
clk_disable(core_if->otg_dev->phyclk);
clk_disable(core_if->otg_dev->ahbclk);
//power off

View File

@ -1552,7 +1552,7 @@ int rk28_usb_suspend( int exitsuspend )
pcd->phy_suspend = 1;
*otg_phy_con1 |= (0x01<<2);
*otg_phy_con1 &= ~(0x01<<3); // enter suspend.
udelay(1);
udelay(3);
clk_disable(pcd->otg_dev->phyclk);
clk_disable(pcd->otg_dev->ahbclk);
//*otg_phy_con1 &= ~(0x01<<2);