summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-06-17 06:01:45 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-06-17 18:34:03 +0000
commit0d0b53e7ca6f7f9bbe0c572a48af809cfc5ac62a (patch)
tree273d71682969fc750b6a0299be9c0ebcc9f036a1
parent88295aca5ac9bb9d13adf086bda66be09bd9f182 (diff)
downloadchrome-ec-0d0b53e7ca6f7f9bbe0c572a48af809cfc5ac62a.tar.gz
zinger: change watchdog timeout to 1.8 second
Increase watchdog timeout to 1.8 second. The pd_task can delay up to 1.5 seconds, so the watchdog must be at least that value. On Zinger, the new timeout period will be 2 seconds with LSI clock at 50kHz and 3.36 seconds with LSI clock at 30kHz. Note: the LSI frequency range is tighter on STM32F0 and cannot go up to 56kHz. BUG=none BRANCH=none TEST=add 1.5 second blocking delay to pd_task and make sure watchdog is normally not firing. Change-Id: I444639ccacd3452181a5fb6caab8e5df7ef3c847 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/204333 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/zinger/board.h1
-rw-r--r--include/config.h3
-rw-r--r--include/watchdog.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/board/zinger/board.h b/board/zinger/board.h
index 610fedf7c6..b0dd0b1199 100644
--- a/board/zinger/board.h
+++ b/board/zinger/board.h
@@ -22,6 +22,7 @@
#define CONFIG_HW_CRC
#define CONFIG_SHA1
#undef CONFIG_WATCHDOG_HELP
+#define CONFIG_WATCHDOG_PERIOD_MS 1800
#undef CONFIG_LID_SWITCH
#undef CONFIG_TASK_PROFILING
#undef CONFIG_COMMON_GPIO
diff --git a/include/config.h b/include/config.h
index 8c77772c7c..be01bc87ae 100644
--- a/include/config.h
+++ b/include/config.h
@@ -931,6 +931,9 @@
*/
#undef CONFIG_WATCHDOG_HELP
+/* Watchdog period in ms; must be at least twice HOOK_TICK_INTERVAL */
+#define WATCHDOG_PERIOD_MS 1100
+
/*****************************************************************************/
/*
diff --git a/include/watchdog.h b/include/watchdog.h
index 1981e3ce10..1853a3a87b 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -8,9 +8,6 @@
#ifndef __CROS_EC_WATCHDOG_H
#define __CROS_EC_WATCHDOG_H
-/* Watchdog period in ms; must be at least twice HOOK_TICK_INTERVAL */
-#define WATCHDOG_PERIOD_MS 1100
-
/**
* Initialize the watchdog.
*