aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c64xx/pm.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-12-11 19:24:30 -0500
committerBen Dooks <ben-linux@fluff.org>2009-05-07 06:04:56 -0400
commitd87964c46005ccb04754f6309df0fd8f67b08c6d (patch)
treed35fc1fb3660dca0cdb236ef14ba27dcd69618f2 /arch/arm/plat-s3c64xx/pm.c
parent966bcc14386000e8b4dc7bbb426910bcb55a8588 (diff)
[ARM] S3C: GPIO PM core GPIOlib integration
Move the GPIO suspend/resume support inline with the gpiolib support so that it will work with both the S3C24XX and S3C64XX series. The s3c_gpio_chip is extended to have a pm callback and a save block to keep the state of the GPIO over suspend, and the code from the s3c24xx implementation is added to a new common file. The suspend process now uses the list of registered chips to go through saving and restoring each one as appropriate, using the pm callback to select the appropriate routine depending on the type of control register present. This change also means that any additional GPIO added should not require changes to the PM. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c64xx/pm.c')
-rw-r--r--arch/arm/plat-s3c64xx/pm.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/arm/plat-s3c64xx/pm.c b/arch/arm/plat-s3c64xx/pm.c
index 98190aa364ae..07a6516a4f3c 100644
--- a/arch/arm/plat-s3c64xx/pm.c
+++ b/arch/arm/plat-s3c64xx/pm.c
@@ -96,17 +96,6 @@ void s3c_pm_configure_extint(void)
96 __raw_writel(s3c_irqwake_eintmask, S3C64XX_EINT_MASK); 96 __raw_writel(s3c_irqwake_eintmask, S3C64XX_EINT_MASK);
97} 97}
98 98
99void s3c_pm_save_gpios(void)
100{
101 /* currently, unless the bootloader does something really stupid
102 * the gpio blocks should be maintained over their sleep.
103 */
104}
105
106void s3c_pm_restore_gpios(void)
107{
108}
109
110void s3c_pm_restore_core(void) 99void s3c_pm_restore_core(void)
111{ 100{
112 __raw_writel(0, S3C64XX_EINT_MASK); 101 __raw_writel(0, S3C64XX_EINT_MASK);