diff options
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); | ||