From 6d64111b3c2f772cfc3539bb13851f78d4b55870 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 2 Feb 2014 04:31:54 +0100 Subject: imx233: add hardware and software watchdog The hardware watchdog automatically shutdown the device after 10s of inactivity, being defined as 10s without the tick IRQ fired (aka braindead device). The software IRQ mechanism is more interesting: it uses a very high priority timer setup as one-shot to trigger after 5s of inactivity (but IRQ still enabled). When detected, it patches the running code to insert a SWI instruction so that on interrupt return it will trigger a SWI and produce a meaningfull backtrace to debug the deadlock. This should allow to debug freezes in IRQ context. Change-Id: Ic55dad01201676bfb6dd79e78e535c6707cb88e6 --- firmware/target/arm/imx233/timrot-imx233.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/target/arm/imx233/timrot-imx233.h') diff --git a/firmware/target/arm/imx233/timrot-imx233.h b/firmware/target/arm/imx233/timrot-imx233.h index f1a7780f34..e33de39390 100644 --- a/firmware/target/arm/imx233/timrot-imx233.h +++ b/firmware/target/arm/imx233/timrot-imx233.h @@ -32,6 +32,7 @@ enum { TIMER_TICK, /* for tick task */ TIMER_USER, /* for user timer */ + TIMER_WATCHDOG, /* for watchdog */ }; struct imx233_timrot_info_t -- cgit v1.2.3