diff options
author | Steven Miao <realmz6@gmail.com> | 2012-06-14 23:40:48 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-07-24 01:39:51 -0400 |
commit | ba4691a4f4ae66b3266751065af0a341e63b5105 (patch) | |
tree | 054b4296f9c26f3fccccef971897cb5ee4fbe769 /arch/blackfin | |
parent | d49cdf84096392359a4d532733ab5a165d24bb0d (diff) |
bfin: pint: add pint suspend and resume
Add pint suspend and resume if defined BFIN_GPIO_PINT.
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-common/pm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/pm.c b/arch/blackfin/mach-common/pm.c index 4878f36066c..87bfe549ad3 100644 --- a/arch/blackfin/mach-common/pm.c +++ b/arch/blackfin/mach-common/pm.c | |||
@@ -172,7 +172,9 @@ int bfin_pm_suspend_mem_enter(void) | |||
172 | 172 | ||
173 | bfin_gpio_pm_hibernate_suspend(); | 173 | bfin_gpio_pm_hibernate_suspend(); |
174 | 174 | ||
175 | #if BFIN_GPIO_PINT | ||
175 | bfin_pint_suspend(); | 176 | bfin_pint_suspend(); |
177 | #endif | ||
176 | 178 | ||
177 | #if defined(CONFIG_BFIN_EXTMEM_WRITEBACK) || defined(CONFIG_BFIN_L2_WRITEBACK) | 179 | #if defined(CONFIG_BFIN_EXTMEM_WRITEBACK) || defined(CONFIG_BFIN_L2_WRITEBACK) |
178 | flushinv_all_dcache(); | 180 | flushinv_all_dcache(); |
@@ -192,7 +194,9 @@ int bfin_pm_suspend_mem_enter(void) | |||
192 | _enable_icplb(); | 194 | _enable_icplb(); |
193 | _enable_dcplb(); | 195 | _enable_dcplb(); |
194 | 196 | ||
197 | #if BFIN_GPIO_PINT | ||
195 | bfin_pint_resume(); | 198 | bfin_pint_resume(); |
199 | #endif | ||
196 | 200 | ||
197 | bfin_gpio_pm_hibernate_restore(); | 201 | bfin_gpio_pm_hibernate_restore(); |
198 | blackfin_dma_resume(); | 202 | blackfin_dma_resume(); |