diff options
author | Magnus Damm <damm@opensource.se> | 2009-10-29 13:52:06 +0300 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-30 05:55:24 +0300 |
commit | 159f8cd99ea0e3613cbb6aeea574af438f33d8d7 (patch) | |
tree | 109b7077c55f3a98a19468f8641097c756b0554b /arch/sh/include | |
parent | da14909eb0749c2788fc704be6dbdebb620602f6 (diff) | |
download | linux-159f8cd99ea0e3613cbb6aeea574af438f33d8d7.tar.xz |
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: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/suspend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/include/asm/suspend.h b/arch/sh/include/asm/suspend.h index d1cc5221645d..fab58cc2ecd9 100644 --- a/arch/sh/include/asm/suspend.h +++ b/arch/sh/include/asm/suspend.h @@ -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 */ |