aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm34xx.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2008-09-26 08:19:14 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-11-11 17:42:24 -0500
commit3231fc889c114870ca830041fcdeb5d4745304cf (patch)
tree8ce76ef76d93b2676b0b4bd8b0a1746111c8522c /arch/arm/mach-omap2/pm34xx.c
parentc96631e13888e9be3a80aae291ed671d4d573ec9 (diff)
OMAP3: PM: restore SRAM functions after off-mode.
Generalize the copy of SRAM functions into omap_push_sram_idle() so it can be used on init but also after off-mode transitions. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm34xx.c')
-rw-r--r--arch/arm/mach-omap2/pm34xx.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index 391054900a6a..b88da1bcb66c 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -749,6 +749,12 @@ static int __init clkdms_setup(struct clockdomain *clkdm, void *unused)
749 return 0; 749 return 0;
750} 750}
751 751
752void omap_push_sram_idle(void)
753{
754 _omap_sram_idle = omap_sram_push(omap34xx_cpu_suspend,
755 omap34xx_cpu_suspend_sz);
756}
757
752static int __init omap3_pm_init(void) 758static int __init omap3_pm_init(void)
753{ 759{
754 struct power_state *pwrst, *tmp; 760 struct power_state *pwrst, *tmp;
@@ -786,9 +792,7 @@ static int __init omap3_pm_init(void)
786 goto err2; 792 goto err2;
787 } 793 }
788 794
789 _omap_sram_idle = omap_sram_push(omap34xx_cpu_suspend, 795 omap_push_sram_idle();
790 omap34xx_cpu_suspend_sz);
791
792#ifdef CONFIG_SUSPEND 796#ifdef CONFIG_SUSPEND
793 suspend_set_ops(&omap_pm_ops); 797 suspend_set_ops(&omap_pm_ops);
794#endif /* CONFIG_SUSPEND */ 798#endif /* CONFIG_SUSPEND */