summaryrefslogtreecommitdiff
path: root/include/watchdog.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2013-11-20 11:38:11 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-01-15 04:52:40 +0000
commit5edde63ac253c98ddb8a5c8584b766f09336d49c (patch)
tree5c4af6a0f63fecc638faec3d9123dce2fad75023 /include/watchdog.h
parent727053a3761b52a60c94c9cfc75d2f842595cc55 (diff)
downloadchrome-ec-5edde63ac253c98ddb8a5c8584b766f09336d49c.tar.gz
ite: Watchdog module added
Watchdog module added. Off by default because of following limitations: - When programming, the WD fires, and programming fails. For now, you have to program twice. BRANCH=none BUG=chrome-os-partner:23575 TEST=Manually wrote in a while(1); and made sure watchdog warning triggers first, prints IPC register, and then soon after the watchdog timer resets the chip. Signed-off-by: Alec Berg <alecaberg@chromium.org> Change-Id: Ia83f58f3ae108f755d2f139ada22a22e2fbdc2fa Reviewed-on: https://chromium-review.googlesource.com/177397 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/watchdog.h')
-rw-r--r--include/watchdog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/watchdog.h b/include/watchdog.h
index 02c603ca40..1981e3ce10 100644
--- a/include/watchdog.h
+++ b/include/watchdog.h
@@ -31,6 +31,12 @@ int watchdog_init(void);
*/
void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp);
+/**
+ * Watchdog has not been tickled recently warning. This function should be
+ * called when the watchdog is close to firing.
+ */
+void watchdog_warning_irq(void);
+
/* Reload the watchdog counter */
#ifdef CONFIG_WATCHDOG
void watchdog_reload(void);