diff options
author | Jon Hunter <jon-hunter@ti.com> | 2012-06-05 13:34:55 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-06-14 05:39:47 -0400 |
commit | 1c2d076b589225e51e022d85bb9f25dca26530f3 (patch) | |
tree | de3e16c873c844a8529fe596aae9c8e2235282c3 /arch/arm/mach-omap1/timer.c | |
parent | 67d2e760ae1909f3a3c444a063961e35a54b7bb0 (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/mach-omap1/timer.c')
-rw-r--r-- | arch/arm/mach-omap1/timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/timer.c b/arch/arm/mach-omap1/timer.c index 64c65bcb2d67..b4bf48c188fb 100644 --- a/arch/arm/mach-omap1/timer.c +++ b/arch/arm/mach-omap1/timer.c | |||
@@ -141,6 +141,7 @@ static int __init omap1_dm_timer_init(void) | |||
141 | 141 | ||
142 | pdata->set_timer_src = omap1_dm_timer_set_src; | 142 | pdata->set_timer_src = omap1_dm_timer_set_src; |
143 | pdata->needs_manual_reset = 1; | 143 | pdata->needs_manual_reset = 1; |
144 | pdata->timer_capability = OMAP_TIMER_ALWON; | ||
144 | 145 | ||
145 | ret = platform_device_add_data(pdev, pdata, sizeof(*pdata)); | 146 | ret = platform_device_add_data(pdev, pdata, sizeof(*pdata)); |
146 | if (ret) { | 147 | if (ret) { |