ARM: OMAP2+: timer: Add suspend-resume callbacks for clkevent device
authorDave Gerlach <d-gerlach@ti.com>
Wed, 29 Mar 2017 01:57:55 +0000 (20:57 -0500)
committerTony Lindgren <tony@atomide.com>
Tue, 16 May 2017 15:44:49 +0000 (08:44 -0700)
commit12b28ba6d6164d3aa54b7e32032bcbd9b7c2a320
treef5674c45a945b90abbaf53adb53679e6911a65f7
parente1a9e61e141d2b61780602b0af2befd7133c0bae
ARM: OMAP2+: timer: Add suspend-resume callbacks for clkevent device

OMAP timer code registers two timers - one as clocksource
and one as clockevent. Since AM33XX has only one usable timer
in the WKUP domain one of the timers needs suspend-resume
support to restore the configuration to pre-suspend state.

commit adc78e6b9946 ("timekeeping: Add suspend and resume
of clock event devices") introduced .suspend and .resume
callbacks for clock event devices. Leverage these
callbacks to have AM33XX clockevent timer behave properly
across system suspend. Extend the use of the .suspend and
.resume callbacks used by am335x clockevent to am437x as well.

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