Skip to content
Commit 8ab712a2 authored by Jun Lin's avatar Jun Lin Committed by Benjamin Cabé
Browse files

drivers: i2c: npcx: prevent unexpected target address match ISR



This commit prevents the hardware from generating an unexpected
target slave address match ISR by the following change:
1. Enable the New Match Interrupt Enable bit (NMINTEN) only when
   necessary.
2. Explicitly clear all SMBnADDRx registers because they are not
   cleared when the I2C hardware is disabled. It will cause the
   asynchrinization between SMBnADDRx and registered_target_mask if the
   system jumps from the RO image to the RW image.

Signed-off-by: default avatarJun Lin <CHLin56@nuvoton.com>
Signed-off-by: default avatarAlvis Sun <yfsun@nuvoton.com>
parent 8bfb08fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment