diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-12-11 19:24:08 -0500 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-03-08 08:33:51 -0400 |
commit | 2261e0e6e3991d4c5f33e9fedadfc465eedc05a7 (patch) | |
tree | aa0125f362a24ecaf0cc69ff3715fecf098b4791 /arch/arm/plat-s3c/include/plat/pm.h | |
parent | 549c7e33aeb9bfe441ecf68639d2227bb90978e7 (diff) |
[ARM] S3C: Move plat-s3c24xx pm.c support into plat-s3c
Move parts of the core and debug suspend code into the
plat-s3c for use with the new s3c64xx code.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c/include/plat/pm.h')
-rw-r--r-- | arch/arm/plat-s3c/include/plat/pm.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c/include/plat/pm.h b/arch/arm/plat-s3c/include/plat/pm.h index 95c2612d4976..42c75e6d2ba5 100644 --- a/arch/arm/plat-s3c/include/plat/pm.h +++ b/arch/arm/plat-s3c/include/plat/pm.h | |||
@@ -113,3 +113,30 @@ extern void s3c_pm_check_store(void); | |||
113 | #define s3c_pm_check_restore() do { } while(0) | 113 | #define s3c_pm_check_restore() do { } while(0) |
114 | #define s3c_pm_check_store() do { } while(0) | 114 | #define s3c_pm_check_store() do { } while(0) |
115 | #endif | 115 | #endif |
116 | |||
117 | /** | ||
118 | * s3c_pm_configure_extint() - ensure pins are correctly set for IRQ | ||
119 | * | ||
120 | * Setup all the necessary GPIO pins for waking the system on external | ||
121 | * interrupt. | ||
122 | */ | ||
123 | extern void s3c_pm_configure_extint(void); | ||
124 | |||
125 | /** | ||
126 | * s3c_pm_restore_gpios() - restore the state of the gpios after sleep. | ||
127 | * | ||
128 | * Restore the state of the GPIO pins after sleep, which may involve ensuring | ||
129 | * that we do not glitch the state of the pins from that the bootloader's | ||
130 | * resume code has done. | ||
131 | */ | ||
132 | extern void s3c_pm_restore_gpios(void); | ||
133 | |||
134 | /** | ||
135 | * s3c_pm_save_gpios() - save the state of the GPIOs for restoring after sleep. | ||
136 | * | ||
137 | * Save the GPIO states for resotration on resume. See s3c_pm_restore_gpios(). | ||
138 | */ | ||
139 | extern void s3c_pm_save_gpios(void); | ||
140 | |||
141 | extern void s3c_pm_save_core(void); | ||
142 | extern void s3c_pm_restore_core(void); | ||