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>
This commit is contained in:
parent
d49cdf8409
commit
ba4691a4f4
@ -172,7 +172,9 @@ int bfin_pm_suspend_mem_enter(void)
|
|||||||
|
|
||||||
bfin_gpio_pm_hibernate_suspend();
|
bfin_gpio_pm_hibernate_suspend();
|
||||||
|
|
||||||
|
#if BFIN_GPIO_PINT
|
||||||
bfin_pint_suspend();
|
bfin_pint_suspend();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_BFIN_EXTMEM_WRITEBACK) || defined(CONFIG_BFIN_L2_WRITEBACK)
|
#if defined(CONFIG_BFIN_EXTMEM_WRITEBACK) || defined(CONFIG_BFIN_L2_WRITEBACK)
|
||||||
flushinv_all_dcache();
|
flushinv_all_dcache();
|
||||||
@ -192,7 +194,9 @@ int bfin_pm_suspend_mem_enter(void)
|
|||||||
_enable_icplb();
|
_enable_icplb();
|
||||||
_enable_dcplb();
|
_enable_dcplb();
|
||||||
|
|
||||||
|
#if BFIN_GPIO_PINT
|
||||||
bfin_pint_resume();
|
bfin_pint_resume();
|
||||||
|
#endif
|
||||||
|
|
||||||
bfin_gpio_pm_hibernate_restore();
|
bfin_gpio_pm_hibernate_restore();
|
||||||
blackfin_dma_resume();
|
blackfin_dma_resume();
|
||||||
|
Loading…
Reference in New Issue
Block a user