aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat
diff options
context:
space:
mode:
authorJon Hunter <jon-hunter@ti.com>2012-06-05 13:34:55 -0400
committerTony Lindgren <tony@atomide.com>2012-06-14 05:39:47 -0400
commit1c2d076b589225e51e022d85bb9f25dca26530f3 (patch)
treede3e16c873c844a8529fe596aae9c8e2235282c3 /arch/arm/plat-omap/include/plat
parent67d2e760ae1909f3a3c444a063961e35a54b7bb0 (diff)
ARM: OMAP: Remove loses_context variable from timer platform data
The platform data variable loses_context is used to determine if the timer may lose its logic state during power transitions and so needs to be restored. This information is also provided in the HWMOD device attributes for OMAP2+ devices via the OMAP_TIMER_ALWON flag. When this flag is set the timer will not lose context. So use the HWMOD device attributes to determine this. For OMAP1 devices, loses_context is never set and so set the OMAP_TIMER_ALWON flag for OMAP1 timers to ensure that code is equivalent. Signed-off-by: Jon Hunter <jon-hunter@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat')
-rw-r--r--arch/arm/plat-omap/include/plat/dmtimer.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/plat-omap/include/plat/dmtimer.h b/arch/arm/plat-omap/include/plat/dmtimer.h
index 362cf97d721c..0a7ed31954ea 100644
--- a/arch/arm/plat-omap/include/plat/dmtimer.h
+++ b/arch/arm/plat-omap/include/plat/dmtimer.h
@@ -91,8 +91,6 @@ struct timer_regs {
91struct dmtimer_platform_data { 91struct dmtimer_platform_data {
92 int (*set_timer_src)(struct platform_device *pdev, int source); 92 int (*set_timer_src)(struct platform_device *pdev, int source);
93 u32 needs_manual_reset:1; 93 u32 needs_manual_reset:1;
94 bool loses_context;
95
96 int (*get_context_loss_count)(struct device *dev); 94 int (*get_context_loss_count)(struct device *dev);
97 u32 timer_capability; 95 u32 timer_capability;
98}; 96};
@@ -264,7 +262,6 @@ struct omap_dm_timer {
264 unsigned reserved:1; 262 unsigned reserved:1;
265 unsigned posted:1; 263 unsigned posted:1;
266 struct timer_regs context; 264 struct timer_regs context;
267 bool loses_context;
268 int ctx_loss_count; 265 int ctx_loss_count;
269 int revision; 266 int revision;
270 u32 capability; 267 u32 capability;