summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaul Hunt <hunt@ti.com>2011-05-31 09:24:29 +0100
committerAndy Green <andy.green@linaro.org>2011-05-31 11:05:57 +0100
commitfd27be896654c234b9a72f08031f1155679027a4 (patch)
tree774cf44ddcfcc61b32856b66eccb84cc2cb31c0c /arch
parent8b4211ce3f6edff4781090289dc598ae1bfb3e76 (diff)
omap: mach-omap2: adapt remoteproc to dmtimer context save / restore
The dmtimer module now supports the saving and restoration of timer registers which would otherwise be lost when going to OSWR or OFF. This patch adapts remoteproc to use omap_dm_timer_stop( ) and omap_dm_timer_start( ) which handle the save and restore respectively, instead of omap_dm_timer_disable( ) and omap_dm_timer_enable( ). Change-Id: Id13a3365a4ca8dca55178fbba90b11c480a6e2a4 Signed-off-by: Paul Hunt <hunt@ti.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/remoteproc44xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/remoteproc44xx.c b/arch/arm/mach-omap2/remoteproc44xx.c
index 46cf8acb1f6..d487a0f3a5d 100644
--- a/arch/arm/mach-omap2/remoteproc44xx.c
+++ b/arch/arm/mach-omap2/remoteproc44xx.c
@@ -97,7 +97,7 @@ static inline int proc44x_sleep(struct device *dev)
dev_err(dev, "%s err 0x%x\n", __func__, ret);
if (obj->dmtimer)
- omap_dm_timer_disable(obj->dmtimer);
+ omap_dm_timer_stop(obj->dmtimer);
}
obj->state = OMAP_RPROC_HIBERNATING;
@@ -112,7 +112,7 @@ static inline int proc44x_wakeup(struct device *dev)
int ret = 0;
if (obj->dmtimer)
- omap_dm_timer_enable(obj->dmtimer);
+ omap_dm_timer_start(obj->dmtimer);
ret = omap_device_enable(pdev);
if (ret)