commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=d1255b9e0de9a02354ede6ba5370d7f5d1344eef branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/2012R1
Set APHY_CTL register during suspend/resume, so that blackfin can support suspend to memory. Signed-off-by: Bob Liu <[email protected]> --- drivers/usb/musb/blackfin.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 8ebce3a..58e3ed8 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c @@ -558,6 +558,10 @@ static int __exit bfin_remove(struct platform_device *pdev) #ifdef CONFIG_PM static int bfin_suspend(struct device *dev) { + int aphy = 0; + aphy = bfin_read_USB_APHY_CNTRL(); + bfin_write_USB_APHY_CNTRL(aphy | 0x1); + SSYNC(); return 0; } @@ -566,6 +570,11 @@ static int bfin_resume(struct device *dev) struct bfin_glue *glue = dev_get_drvdata(dev); struct musb *musb = glue_to_musb(glue); + int aphy; + aphy = bfin_read_USB_APHY_CNTRL(); + bfin_write_USB_APHY_CNTRL(aphy | 0x2); + SSYNC(); + bfin_musb_reg_init(musb); return 0;
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
