soc: power: npcx: Clear host access IRQ pending bit before enabling

NPCX host access IRQ enables before entering deep sleep. The pending
bit lets chip wake up from sleep immediately. Clear host access IRQ
pending bit before enabling.

Signed-off-by: Wealian Liao <WHLIAO@nuvoton.com>
This commit is contained in:
Wealian Liao 2021-04-19 15:31:51 +08:00 committed by Anas Nashif
commit abb94b1198
3 changed files with 23 additions and 0 deletions

View file

@ -964,6 +964,8 @@ void npcx_host_init_subs_host_domain(void)
void npcx_host_enable_access_interrupt(void)
{
npcx_miwu_irq_get_and_clear_pending(&host_sub_cfg.host_acc_wui);
npcx_miwu_irq_enable(&host_sub_cfg.host_acc_wui);
}