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:
parent
e430b7b64f
commit
abb94b1198
3 changed files with 23 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue