npcx: watchdog: fix the way to check watchdog expiration for aux timer
npcx: watchdog: fix the way to check watchdog expiration for aux timer

In the original watchdog driver, we use an ITIM (auxiliary) timer to
check the watchdog counter periodically (every 1100 ms). If the counter
value is less than WDCNT_DELAY, which means more than 1600 ms has passed
since the last watchdog reloads, the watchdog panic should be issued.
However, this mechanism may cause the watchdog to happen randomly at
1600~2700 ms. This is because the aux timer and watchdog timer are not
aligned. In this CL, we aligned the watchdog timer and aux timer by
reloading both watchdog count and aux timer count in HOOK_TICK.

BRANCH=none
BUG=b:184681421
TEST=
1. "watims 1200", see panic trace printed but no EC reset.
2. "waitms 2000", see panic trace printed and EC reset.
2. "crash watchdog", see panic trace printed and EC reset.

Signed-off-by: Jun Lin <4865d89268068846db8afe2dcacc793288c792a0@nuvoton.com>
Change-Id: Ic86d1b238d40fda76af9c38561e5669c13167a32
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2814041
Tested-by: CH Lin <49997681dc186e71092740314bf6c6feeca6e227@nuvoton.com>
Reviewed-by: Wai-Hong Tam <04b587fdf5845741a0c5a8b9cd59ca72d73ef8fc@google.com>
Commit-Queue: CH Lin <49997681dc186e71092740314bf6c6feeca6e227@nuvoton.com>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec