]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/hwspinlock.git/commit
ARM: OMAP2+: Add functions to save and restore powerdomain context
authorRuss Dill <Russ.Dill@ti.com>
Wed, 16 May 2018 15:17:00 +0000 (20:47 +0530)
committerTony Lindgren <tony@atomide.com>
Fri, 18 May 2018 13:56:26 +0000 (06:56 -0700)
commit485995b09b76f20daaf39d11797f4b88cc5f6fa6
tree82bf7f88b0a1e119713b6b141cf0ea2792be2239
parent9bcfb76b6354ae2b0dee064ccfb05926ba131b1b
ARM: OMAP2+: Add functions to save and restore powerdomain context

The powerdomain control registers are stored in the WKUP powerdomain on
AM33XX/AM43XX, which is lost on RTC-only suspend and also hibernate. This
adds context save and restore functions for those registers.
Sometimes the powerdomain state does not need to change,
perhaps we only need to change memory retention states, so make
sure the restored state is different from the current state before we wait
for a transition.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Russ Dill <Russ.Dill@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/powerdomain.c
arch/arm/mach-omap2/powerdomain.h
arch/arm/mach-omap2/prm33xx.c
arch/arm/mach-omap2/prm44xx.c