diff options
author | Magnus Damm <damm@opensource.se> | 2009-10-30 00:23:51 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-30 01:33:44 -0400 |
commit | 86c7d03a0fe4241e64eb19b86544647c8ee4bac9 (patch) | |
tree | 8c73bac966ed65aafadd52e0b18ad8c20ab11c05 /arch/sh/boards/mach-ap325rxa/setup.c | |
parent | 53528928d1260747c294b63218d9886c74df4c31 (diff) |
sh: Add ap325rxa specific memory pre/post sleep code
Add self-refresh handling code for the AP325RXA 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-ap325rxa/setup.c')
-rw-r--r-- | arch/sh/boards/mach-ap325rxa/setup.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-ap325rxa/setup.c b/arch/sh/boards/mach-ap325rxa/setup.c index b95deee35e0f..be8da973f00f 100644 --- a/arch/sh/boards/mach-ap325rxa/setup.c +++ b/arch/sh/boards/mach-ap325rxa/setup.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <video/sh_mobile_lcdc.h> | 27 | #include <video/sh_mobile_lcdc.h> |
28 | #include <asm/io.h> | 28 | #include <asm/io.h> |
29 | #include <asm/clock.h> | 29 | #include <asm/clock.h> |
30 | #include <asm/suspend.h> | ||
30 | #include <cpu/sh7723.h> | 31 | #include <cpu/sh7723.h> |
31 | 32 | ||
32 | static struct smsc911x_platform_config smsc911x_config = { | 33 | static struct smsc911x_platform_config smsc911x_config = { |
@@ -481,8 +482,20 @@ static struct platform_device *ap325rxa_devices[] __initdata = { | |||
481 | &ap325rxa_camera[1], | 482 | &ap325rxa_camera[1], |
482 | }; | 483 | }; |
483 | 484 | ||
485 | extern char ap325rxa_sdram_enter_start; | ||
486 | extern char ap325rxa_sdram_enter_end; | ||
487 | extern char ap325rxa_sdram_leave_start; | ||
488 | extern char ap325rxa_sdram_leave_end; | ||
489 | |||
484 | static int __init ap325rxa_devices_setup(void) | 490 | static int __init ap325rxa_devices_setup(void) |
485 | { | 491 | { |
492 | /* register board specific self-refresh code */ | ||
493 | sh_mobile_register_self_refresh(SUSP_SH_STANDBY | SUSP_SH_SF, | ||
494 | &ap325rxa_sdram_enter_start, | ||
495 | &ap325rxa_sdram_enter_end, | ||
496 | &ap325rxa_sdram_leave_start, | ||
497 | &ap325rxa_sdram_leave_end); | ||
498 | |||
486 | /* LD3 and LD4 LEDs */ | 499 | /* LD3 and LD4 LEDs */ |
487 | gpio_request(GPIO_PTX5, NULL); /* RUN */ | 500 | gpio_request(GPIO_PTX5, NULL); /* RUN */ |
488 | gpio_direction_output(GPIO_PTX5, 1); | 501 | gpio_direction_output(GPIO_PTX5, 1); |