1
0
Fork 0

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>
hifive-unleashed-5.1
Jonas Aaberg 2011-09-21 07:47:02 +02:00 committed by Linus Walleij
parent 05387a9fbf
commit bb219dba0d
1 changed files with 7 additions and 0 deletions

View 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,
};