mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
adjust usb phy suspend timing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user