watchdog: s3c2410_wdt: Report when the watchdog reset the system
authorDoug Anderson <dianders@chromium.org>
Fri, 6 Dec 2013 21:08:07 +0000 (13:08 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 28 Jan 2014 20:24:33 +0000 (21:24 +0100)
commitcffc9a60ebac3b560a370553abd885fa43d8b286
tree6f71e033b302db3941612e5567e4f66718c0a01b
parent4f1f653a68d67ca5732fdd7ee4deb290a3ea5149
watchdog: s3c2410_wdt: Report when the watchdog reset the system

A good watchdog driver is supposed to report when it was responsible
for resetting the system.  Implement this for the s3c2410, at least on
exynos5250 and exynos5420 where we already have a pointer to the PMU
registers to read the information.

Note that exynos4 SoCs also provide the reset status, but providing
that is left as an exercise for future changes and is not plumbed up
in this patch series.  Also note the exynos4 SoCs don't appear to need
any PMU config, which is why this patch separates the concepts of
having PMU Registers vs. needing PMU Config.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/s3c2410_wdt.c