summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-common
diff options
context:
space:
mode:
authorSteven Miao <realmz6@gmail.com>2012-06-15 05:40:48 +0200
committerBob Liu <lliubbo@gmail.com>2012-07-24 07:39:51 +0200
commitba4691a4f4ae66b3266751065af0a341e63b5105 (patch)
tree054b4296f9c26f3fccccef971897cb5ee4fbe769 /arch/blackfin/mach-common
parentbf60x: pm: add pint suspend and resume support (diff)
downloadlinux-ba4691a4f4ae66b3266751065af0a341e63b5105.tar.xz
linux-ba4691a4f4ae66b3266751065af0a341e63b5105.zip
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/mach-common')
-rw-r--r--arch/blackfin/mach-common/pm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/pm.c b/arch/blackfin/mach-common/pm.c
index 4878f36066c5..87bfe549ad3f 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)
bfin_gpio_pm_hibernate_suspend();
+#if BFIN_GPIO_PINT
bfin_pint_suspend();
+#endif
#if defined(CONFIG_BFIN_EXTMEM_WRITEBACK) || defined(CONFIG_BFIN_L2_WRITEBACK)
flushinv_all_dcache();
@@ -192,7 +194,9 @@ int bfin_pm_suspend_mem_enter(void)
_enable_icplb();
_enable_dcplb();
+#if BFIN_GPIO_PINT
bfin_pint_resume();
+#endif
bfin_gpio_pm_hibernate_restore();
blackfin_dma_resume();