Skip to content

Commit

Permalink
bfin: pint: add pint suspend and resume
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Miao authored and Bob Liu committed Jul 24, 2012
1 parent d49cdf8 commit ba4691a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/blackfin/mach-common/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit ba4691a

Please sign in to comment.