From 0d0b53e7ca6f7f9bbe0c572a48af809cfc5ac62a Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Tue, 17 Jun 2014 06:01:45 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/204333 Reviewed-by: Vincent Palatin Commit-Queue: Vincent Palatin Tested-by: Vincent Palatin --- board/zinger/board.h | 1 + include/config.h | 3 +++ include/watchdog.h | 3 --- 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. * -- cgit v1.2.1