commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=59ae786ded66925234e718ac89f7cb5b3f85aac9 branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk
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 ea4e305..270a370 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c @@ -558,6 +558,10 @@ static int __devexit 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
