sh: Allow boards to register memory pre/post sleep code
authorMagnus Damm <damm@opensource.se>
Thu, 29 Oct 2009 10:52:06 +0000 (10:52 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 30 Oct 2009 02:55:24 +0000 (11:55 +0900)
Add code to allow boards registering self-contained
functions for going to/from self-refresh. At this
point the board code is unused. When all supported
boards have been converted then the new sleep code
will make use of these functions.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/suspend.h
arch/sh/kernel/cpu/shmobile/pm.c

index d1cc5221645dcef419d34ed4d4d492bdb78cafde..fab58cc2ecd9766bbf2cd94c72321320821e4f6e 100644 (file)
@@ -30,6 +30,10 @@ extern struct atomic_notifier_head sh_mobile_post_sleep_notifier_list;
 #define SH_MOBILE_PRE(x)       (x)
 #define SH_MOBILE_POST(x)      (-(x))
 
+/* board code registration function for self-refresh assembly snippets */
+void sh_mobile_register_self_refresh(unsigned long flags,
+                                    void *pre_start, void *pre_end,
+                                    void *post_start, void *post_end);
 #endif
 
 /* flags passed to assembly suspend code */
index 7ebf8cf89242fd034e14e5b91ea9c801267bdc09..b424747e425226f1a7428fdb294a7094497eac94 100644 (file)
@@ -60,6 +60,12 @@ void sh_mobile_call_standby(unsigned long mode)
                                   mode, NULL);
 }
 
+void sh_mobile_register_self_refresh(unsigned long flags,
+                                    void *pre_start, void *pre_end,
+                                    void *post_start, void *post_end)
+{
+}
+
 static int sh_pm_enter(suspend_state_t state)
 {
        local_irq_disable();
This page took 0.025624 seconds and 5 git commands to generate.