usb: musb: Add context save and restore support
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Thu, 21 Jan 2010 13:33:52 +0000 (15:33 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:38 +0000 (14:54 -0800)
commit4f712e010b2da1cc01c178922f2eb5aaeae461b6
tree4341a8c4f1e8184b0a727a9746be74267d20f68f
parent8af6096caf8b3fb7ee33e636c44a29f373d27df5
usb: musb: Add context save and restore support

Adding support for MUSB register save and restore during system
suspend and resume.

Changes:
        - Added musb_save/restore_context() functions
        - Added platform specific musb_platform_save/restore_context()
          to handle platform specific jobs.
        - Maintaining BlackFin compatibility by adding read/write
          functions for registers which are not available in BlackFin

Tested system suspend and resume on OMAP3EVM board.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_regs.h
drivers/usb/musb/omap2430.c