CHROMIUM: watchdog: add WDIOC_GETBOOTSTATUS support to s3c2410_wdt
authorGrant Grundler <grundler@chromium.org>
Wed, 6 Feb 2013 01:51:04 +0000 (17:51 -0800)
committerChromeBot <chrome-bot@google.com>
Wed, 20 Feb 2013 18:09:27 +0000 (10:09 -0800)
commitec0f64b0b3abe832e851d74b79d906f5e0fceacb
tree38892ca54ce46f0b7bb73ddc768c312e03e90789
parentdae33a210099e9f76f107efbac1416fc5ce49e3e
CHROMIUM: watchdog: add WDIOC_GETBOOTSTATUS support to s3c2410_wdt

Exynos5 can report the most recent "reset" (or boot) cause.  In particular,
WDIOC_GETBOOTSTATUS ioctl (to /dev/watchdog) can let users know if
the HW watchdog timed out and reset the machine.

BUG=chrome-os-partner:9403
TEST=manual

Change-Id: Iceb63d8404e25200846f75e6ce44da62749246dd
Signed-off-by: Grant Grundler <grundler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42759
Reviewed-by: Doug Anderson <dianders@chromium.org>
drivers/watchdog/s3c2410_wdt.c