diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2011-09-21 01:47:02 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-09-22 09:44:23 -0400 |
commit | bb219dba0d1e46324ea462ba42f6fd8e9b7471de (patch) | |
tree | a68caf20643ed4cd27ed683f29a75c31d89ad77c /arch/arm | |
parent | 05387a9fbf334174e0f84fa77e493c1a804993c9 (diff) |
ARM: ux500: Reprogram timers upon resume
On ux500 the MTU timer blocks are powered off during
suspend/resume, so these need some reinitialization when
coming back from suspend.
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-ux500/timer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/timer.c b/arch/arm/mach-ux500/timer.c index 36a82bf57d55..08c55a53cb83 100644 --- a/arch/arm/mach-ux500/timer.c +++ b/arch/arm/mach-ux500/timer.c | |||
@@ -53,6 +53,13 @@ static void __init ux500_timer_init(void) | |||
53 | clksrc_dbx500_prcmu_init(); | 53 | clksrc_dbx500_prcmu_init(); |
54 | } | 54 | } |
55 | 55 | ||
56 | static void ux500_timer_reset(void) | ||
57 | { | ||
58 | nmdk_clkevt_reset(); | ||
59 | nmdk_clksrc_reset(); | ||
60 | } | ||
61 | |||
56 | struct sys_timer ux500_timer = { | 62 | struct sys_timer ux500_timer = { |
57 | .init = ux500_timer_init, | 63 | .init = ux500_timer_init, |
64 | .resume = ux500_timer_reset, | ||
58 | }; | 65 | }; |