summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2022-06-17 09:36:36 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-22 06:52:01 +0000
commit8c9e924a137a4d1cadae6a87210db03f6d6924ae (patch)
tree5b13883c7e0f846e744e821748653d9de1357b6a
parenta33c1207ce871b24d39b9b7da89b50ca605107d5 (diff)
downloadchrome-ec-8c9e924a137a4d1cadae6a87210db03f6d6924ae.tar.gz
it83xx: reload watchdog on system jump
This ensures that a new FW image will have full watchdog period during initialization. BUG=b:235297476 BRANCH=cherry TEST=The watchdog_reload() routine is called every time the system jumps. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I103cb2c738b26a1000a72617706f4c30e8c952b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3708382 Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> (cherry picked from commit 66f81102e8bfdb8338c76b8f6dd991c58ca1b0c3) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3716177 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--chip/it83xx/watchdog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/it83xx/watchdog.c b/chip/it83xx/watchdog.c
index f0e200c4ac..345a100922 100644
--- a/chip/it83xx/watchdog.c
+++ b/chip/it83xx/watchdog.c
@@ -93,6 +93,7 @@ void watchdog_reload(void)
}
}
DECLARE_HOOK(HOOK_TICK, watchdog_reload, HOOK_PRIO_DEFAULT);
+DECLARE_HOOK(HOOK_SYSJUMP, watchdog_reload, HOOK_PRIO_LAST);
int watchdog_init(void)
{