aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-migor/setup.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-10-29 06:52:31 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-10-29 22:59:27 -0400
commit13fa551b5eb1752c6974a81ef19f369220972cf2 (patch)
tree1c5d64664d36dc4784451fabb1da8629026d4067 /arch/sh/boards/mach-migor/setup.c
parent3b9f2952a3eda738f5f2d7610b76e284cbac581f (diff)
sh: Add migor specific memory pre/post sleep code
Add self-refresh handling code for the Migo-R board. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/mach-migor/setup.c')
-rw-r--r--arch/sh/boards/mach-migor/setup.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c
index 8e911360c91e..369525701d60 100644
--- a/arch/sh/boards/mach-migor/setup.c
+++ b/arch/sh/boards/mach-migor/setup.c
@@ -26,6 +26,7 @@
26#include <asm/machvec.h> 26#include <asm/machvec.h>
27#include <asm/io.h> 27#include <asm/io.h>
28#include <asm/sh_keysc.h> 28#include <asm/sh_keysc.h>
29#include <asm/suspend.h>
29#include <mach/migor.h> 30#include <mach/migor.h>
30#include <cpu/sh7722.h> 31#include <cpu/sh7722.h>
31 32
@@ -478,9 +479,19 @@ static struct platform_device *migor_devices[] __initdata = {
478 &migor_camera[1], 479 &migor_camera[1],
479}; 480};
480 481
482extern char migor_sdram_enter_start;
483extern char migor_sdram_enter_end;
484extern char migor_sdram_leave_start;
485extern char migor_sdram_leave_end;
486
481static int __init migor_devices_setup(void) 487static int __init migor_devices_setup(void)
482{ 488{
483 489 /* register board specific self-refresh code */
490 sh_mobile_register_self_refresh(SUSP_SH_STANDBY | SUSP_SH_SF,
491 &migor_sdram_enter_start,
492 &migor_sdram_enter_end,
493 &migor_sdram_leave_start,
494 &migor_sdram_leave_end);
484#ifdef CONFIG_PM 495#ifdef CONFIG_PM
485 /* Let D11 LED show STATUS0 */ 496 /* Let D11 LED show STATUS0 */
486 gpio_request(GPIO_FN_STATUS0, NULL); 497 gpio_request(GPIO_FN_STATUS0, NULL);