mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 01:50:53 +00:00
nuc: Reduce the period of watchdog check timer
There is probability to fail in firmware_ECWatchdog FAFT test by using CONFIG_WATCHDOG_PERIOD_MS period for check timer. Use CONFIG_AUX_TIMER_PERIOD_MS instead can fix it. Modified drivers: 1. watchdog.c: change watchdog check timer period from CONFIG_WATCHDOG_PERIOD_MS to CONFIG_AUX_TIMER_PERIOD_MS. BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: I93e700968751ecd58f032c2f5866cf4f2eb0ffe4 Signed-off-by: CHLin <chlin56@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/324712 Commit-Ready: CH Lin <chlin56@nuvoton.com> Tested-by: CH Lin <chlin56@nuvoton.com> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -38,7 +38,7 @@ void watchdog_init_warning_timer(void)
|
||||
SECOND) - 1;
|
||||
|
||||
/* ITIM count down : event expired*/
|
||||
NPCX_ITCNT16(ITIM_WDG_NO) = CONFIG_WATCHDOG_PERIOD_MS-1;
|
||||
NPCX_ITCNT16(ITIM_WDG_NO) = CONFIG_AUX_TIMER_PERIOD_MS - 1;
|
||||
/* Event module enable */
|
||||
SET_BIT(NPCX_ITCTS(ITIM_WDG_NO), NPCX_ITCTS_ITEN);
|
||||
/* Enable interrupt of ITIM */
|
||||
|
||||
Reference in New Issue
Block a user