Commit 159f8cd9 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

sh: Allow boards to register memory pre/post sleep code

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: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent da14909e
...@@ -30,6 +30,10 @@ extern struct atomic_notifier_head sh_mobile_post_sleep_notifier_list; ...@@ -30,6 +30,10 @@ extern struct atomic_notifier_head sh_mobile_post_sleep_notifier_list;
#define SH_MOBILE_PRE(x) (x) #define SH_MOBILE_PRE(x) (x)
#define SH_MOBILE_POST(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 #endif
/* flags passed to assembly suspend code */ /* flags passed to assembly suspend code */
......
...@@ -60,6 +60,12 @@ void sh_mobile_call_standby(unsigned long mode) ...@@ -60,6 +60,12 @@ void sh_mobile_call_standby(unsigned long mode)
mode, NULL); 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) static int sh_pm_enter(suspend_state_t state)
{ {
local_irq_disable(); local_irq_disable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment