diff options
author | Oskar Schirmer <oskar@scara.com> | 2012-02-16 12:17:45 +0000 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2012-03-27 19:58:30 +0200 |
commit | 474ef121008a2992bcc496930166ced89bda23d2 (patch) | |
tree | 5411110e4ff37ca1e2e4196d5433d4065c583e62 /drivers/watchdog/sp805_wdt.c | |
parent | 5ba927e8ca3f73acb98f417d126652e26ab40a57 (diff) |
watchdog: make imx2_wdt report boot status correctly
Ioctl WDIOC_GETBOOTSTATUS is supposed to return some information
on why the system did (re)boot recently, value WDIOF_CARDRESET
being used to indicate watchdog induced reboot.
Up to now, imx2_wdt did not provide a value here, always returning
zero to indicate normal boot.
Do evaluate the IMX Watchdog Reset Status Register and
produce WDIOF_CARDRESET with WDIOC_GETBOOTSTATUS in case
of a watchdog induced reset.
Signed-off-by: Oskar Schirmer <oskar@scara.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/sp805_wdt.c')
0 files changed, 0 insertions, 0 deletions