diff options
author | Magnus Damm <damm@opensource.se> | 2009-10-29 11:52:15 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-30 03:59:26 +0100 |
commit | 67e522d0f91349127b3e0e536578be484cdb3367 (patch) | |
tree | 5fc3a227aaf681509995c629e7b3835a33eb15f0 /arch/sh/boards/mach-kfr2r09/setup.c | |
parent | sh: Allow boards to register memory pre/post sleep code (diff) | |
download | linux-67e522d0f91349127b3e0e536578be484cdb3367.tar.xz linux-67e522d0f91349127b3e0e536578be484cdb3367.zip |
sh: Add kfr2r09 specific memory pre/post sleep code
Add self-refresh handling code for the KFR2R09 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-kfr2r09/setup.c')
-rw-r--r-- | arch/sh/boards/mach-kfr2r09/setup.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c index 43d75ee93358..5dae632092f2 100644 --- a/arch/sh/boards/mach-kfr2r09/setup.c +++ b/arch/sh/boards/mach-kfr2r09/setup.c @@ -21,6 +21,7 @@ #include <media/soc_camera.h> #include <media/sh_mobile_ceu.h> #include <video/sh_mobile_lcdc.h> +#include <asm/suspend.h> #include <asm/clock.h> #include <asm/machvec.h> #include <asm/io.h> @@ -444,8 +445,20 @@ static int kfr2r09_usb0_gadget_setup(void) return 0; } +extern char kfr2r09_sdram_enter_start; +extern char kfr2r09_sdram_enter_end; +extern char kfr2r09_sdram_leave_start; +extern char kfr2r09_sdram_leave_end; + static int __init kfr2r09_devices_setup(void) { + /* register board specific self-refresh code */ + sh_mobile_register_self_refresh(SUSP_SH_STANDBY | SUSP_SH_SF, + &kfr2r09_sdram_enter_start, + &kfr2r09_sdram_enter_end, + &kfr2r09_sdram_leave_start, + &kfr2r09_sdram_leave_end); + /* enable SCIF1 serial port for YC401 console support */ gpio_request(GPIO_FN_SCIF1_RXD, NULL); gpio_request(GPIO_FN_SCIF1_TXD, NULL); |