summaryrefslogtreecommitdiff
path: root/drivers/watchdog/sp805_wdt.c
diff options
context:
space:
mode:
authorOskar Schirmer <oskar@scara.com>2012-02-16 12:17:45 (GMT)
committerWim Van Sebroeck <wim@iguana.be>2012-03-27 17:58:30 (GMT)
commit474ef121008a2992bcc496930166ced89bda23d2 (patch)
tree5411110e4ff37ca1e2e4196d5433d4065c583e62 /drivers/watchdog/sp805_wdt.c
parent5ba927e8ca3f73acb98f417d126652e26ab40a57 (diff)
downloadlinux-474ef121008a2992bcc496930166ced89bda23d2.tar.xz
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