summaryrefslogtreecommitdiff
path: root/include/clocksource/timer-ti-dm.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2021-04-15 11:55:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-14 17:06:51 +0200
commitf1a3f6f8ef136fb6e7e8f204429249df6b77cfd5 (patch)
treec6b497a70fd747f1736483b0a801ecc35a51f52a /include/clocksource/timer-ti-dm.h
parent31d1545b81a722ccc1cddd0fddfa4e4f6b953e5f (diff)
clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG
[ Upstream commit 9517c577f9f722270584cfb1a7b4e1354e408658 ] As we are using cpu_pm to save and restore context, we must also save and restore the timer sysconfig register TIOCP_CFG. This is needed because we are not calling PM runtime functions at all with cpu_pm. Fixes: b34677b0999a ("clocksource/drivers/timer-ti-dm: Implement cpu_pm notifier for context save and restore") Cc: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: Adam Ford <aford173@gmail.com> Cc: Andreas Kemnade <andreas@kemnade.info> Cc: Lokesh Vutla <lokeshvutla@ti.com> Cc: Peter Ujfalusi <peter.ujfalusi@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210415085506.56828-1-tony@atomide.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/clocksource/timer-ti-dm.h')
-rw-r--r--include/clocksource/timer-ti-dm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clocksource/timer-ti-dm.h b/include/clocksource/timer-ti-dm.h
index 4c61dade8835f..f6da8a1326398 100644
--- a/include/clocksource/timer-ti-dm.h
+++ b/include/clocksource/timer-ti-dm.h
@@ -74,6 +74,7 @@
#define OMAP_TIMER_ERRATA_I103_I767 0x80000000
struct timer_regs {
+ u32 ocp_cfg;
u32 tidr;
u32 tier;
u32 twer;