summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommy Chung <tommy.chung@quanta.corp-partner.google.com>2022-06-20 18:56:47 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-22 06:54:34 +0000
commitc3827a2d617b7d4319ac2ec2f484521f02a416c1 (patch)
tree81c1b084f60d03ae85efa894f2d0616daecba9ea
parent8c9e924a137a4d1cadae6a87210db03f6d6924ae (diff)
downloadchrome-ec-c3827a2d617b7d4319ac2ec2f484521f02a416c1.tar.gz
dojo: Set watchdog period to 2500ms
To avoid watchdog due to race condiftion of uart tx buf flush INT and i2c large transfer (accelgyro BMI260 init) INT, extend the watchdog period to 2500ms. BUG=b:235297476 BRANCH=cherry TEST=make sure there's no ec watchdog reset during firmware-update and faft firmware_ECWatchdog pass. Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Change-Id: Ie6a03a99bc3e87b525346bf39a07a4ba10134b92 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3709282 Reviewed-by: Eric Yilun Lin <yllin@google.com> (cherry picked from commit 95b3e9ab4879f356a0f14cafb4a2185538ba3f4c) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3716413 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/dojo/board.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/dojo/board.h b/board/dojo/board.h
index a5180b838e..d9812bcbd9 100644
--- a/board/dojo/board.h
+++ b/board/dojo/board.h
@@ -13,6 +13,10 @@
#define CONFIG_LTO
#define CONFIG_PRESERVE_LOGS
+/* Watchdog period in ms */
+#undef CONFIG_WATCHDOG_PERIOD_MS
+#define CONFIG_WATCHDOG_PERIOD_MS 2500
+
/*
* TODO: Remove this option once the VBAT no longer keeps high when
* system's power isn't presented.