aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mach-kfr2r09/setup.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-10-29 06:52:15 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-10-29 22:59:26 -0400
commit67e522d0f91349127b3e0e536578be484cdb3367 (patch)
tree5fc3a227aaf681509995c629e7b3835a33eb15f0 /arch/sh/boards/mach-kfr2r09/setup.c
parent159f8cd99ea0e3613cbb6aeea574af438f33d8d7 (diff)
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.c13
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 @@
21#include <media/soc_camera.h> 21#include <media/soc_camera.h>
22#include <media/sh_mobile_ceu.h> 22#include <media/sh_mobile_ceu.h>
23#include <video/sh_mobile_lcdc.h> 23#include <video/sh_mobile_lcdc.h>
24#include <asm/suspend.h>
24#include <asm/clock.h> 25#include <asm/clock.h>
25#include <asm/machvec.h> 26#include <asm/machvec.h>
26#include <asm/io.h> 27#include <asm/io.h>
@@ -444,8 +445,20 @@ static int kfr2r09_usb0_gadget_setup(void)
444 return 0; 445 return 0;
445} 446}
446 447
448extern char kfr2r09_sdram_enter_start;
449extern char kfr2r09_sdram_enter_end;
450extern char kfr2r09_sdram_leave_start;
451extern char kfr2r09_sdram_leave_end;
452
447static int __init kfr2r09_devices_setup(void) 453static int __init kfr2r09_devices_setup(void)
448{ 454{
455 /* register board specific self-refresh code */
456 sh_mobile_register_self_refresh(SUSP_SH_STANDBY | SUSP_SH_SF,
457 &kfr2r09_sdram_enter_start,
458 &kfr2r09_sdram_enter_end,
459 &kfr2r09_sdram_leave_start,
460 &kfr2r09_sdram_leave_end);
461
449 /* enable SCIF1 serial port for YC401 console support */ 462 /* enable SCIF1 serial port for YC401 console support */
450 gpio_request(GPIO_FN_SCIF1_RXD, NULL); 463 gpio_request(GPIO_FN_SCIF1_RXD, NULL);
451 gpio_request(GPIO_FN_SCIF1_TXD, NULL); 464 gpio_request(GPIO_FN_SCIF1_TXD, NULL);