aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/pm.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2011-06-01 05:44:50 -0400
committerKukjin Kim <kgene.kim@samsung.com>2011-07-20 10:13:20 -0400
commit1bac282af43d81d826ef25945a35536fa9bd041d (patch)
treeab533c42d30e54e2adae694e8b27558005c82518 /arch/arm/plat-samsung/pm.c
parentc17afc0aa69615b4c2250b6476431c4d601890a0 (diff)
ARM: SAMSUNG: Add support for pre-sleep/post-restore gpio control
Add a callback so that per-arch can do pre-sleep and post-resume gpio configuration so that for the S3C64XX, the GPIO configuration is restored before the sleep mode is cleared. For the S3C64XX case, it means that the GPIOs get set back to normal operation after the restore code puts the original configurations back in after the Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/pm.c')
-rw-r--r--arch/arm/plat-samsung/pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/pm.c b/arch/arm/plat-samsung/pm.c
index 5c0a440d6e16..4f9a9515beae 100644
--- a/arch/arm/plat-samsung/pm.c
+++ b/arch/arm/plat-samsung/pm.c
@@ -268,6 +268,7 @@ static int s3c_pm_enter(suspend_state_t state)
268 /* save all necessary core registers not covered by the drivers */ 268 /* save all necessary core registers not covered by the drivers */
269 269
270 s3c_pm_save_gpios(); 270 s3c_pm_save_gpios();
271 s3c_pm_saved_gpios();
271 s3c_pm_save_uarts(); 272 s3c_pm_save_uarts();
272 s3c_pm_save_core(); 273 s3c_pm_save_core();
273 274
@@ -309,6 +310,7 @@ static int s3c_pm_enter(suspend_state_t state)
309 s3c_pm_restore_core(); 310 s3c_pm_restore_core();
310 s3c_pm_restore_uarts(); 311 s3c_pm_restore_uarts();
311 s3c_pm_restore_gpios(); 312 s3c_pm_restore_gpios();
313 s3c_pm_restored_gpios();
312 314
313 s3c_pm_debug_init(); 315 s3c_pm_debug_init();
314 316