ARM: OMAP: Wakeupgen: Add context save/restore for AM43XX
authorDave Gerlach <d-gerlach@ti.com>
Wed, 29 Mar 2017 01:57:54 +0000 (20:57 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 16 May 2017 15:44:31 +0000 (08:44 -0700)
commite1a9e61e141d2b61780602b0af2befd7133c0bae
treecad262f71e45a473de803c2a44c79188cb479d76
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
ARM: OMAP: Wakeupgen: Add context save/restore for AM43XX

AM43XX has the same wakeupgen IP as OMAP4/5. The only
notable difference is the presence of 7 register banks
and lack of SAR area which has been used in OMAP4/5 for
saving and restoring the context around low power states.

In case of AM43XX the context is saved and restored by
the kernel. Introduce wakeupgen_ops so that context save
and restore can be set on a per-SoC basis during init.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap-wakeupgen.c