]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: ux500: Reprogram timers upon resume
authorJonas Aaberg <jonas.aberg@stericsson.com>
Wed, 21 Sep 2011 05:47:02 +0000 (07:47 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 Sep 2011 13:44:23 +0000 (15:44 +0200)
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>
arch/arm/mach-ux500/timer.c

index 36a82bf57d55fd6c3510572fba21b4207ff82afe..08c55a53cb83aa8554f6450e0debbe680f822e66 100644 (file)
@@ -53,6 +53,13 @@ static void __init ux500_timer_init(void)
        clksrc_dbx500_prcmu_init();
 }
 
+static void ux500_timer_reset(void)
+{
+       nmdk_clkevt_reset();
+       nmdk_clksrc_reset();
+}
+
 struct sys_timer ux500_timer = {
        .init           = ux500_timer_init,
+       .resume         = ux500_timer_reset,
 };