summaryrefslogtreecommitdiff
path: root/drivers/watchdog/aspeed_wdt.c
diff options
context:
space:
mode:
authorVeeraiyan Chidambaram <veeraiyan.chidambaram@in.bosch.com>2018-04-13 17:19:24 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2018-04-16 11:22:40 +0300
commitfdac6a90d2d151abdbb7e5ec14bb9ab64e2931ec (patch)
tree2d1d3324a46d138c0d628d5c940894a13a6b5b09 /drivers/watchdog/aspeed_wdt.c
parente30d69df78fb2667dc58e906cabd0f70ed0af95d (diff)
downloadlinux-fdac6a90d2d151abdbb7e5ec14bb9ab64e2931ec.tar.xz
watchdog: renesas-wdt: Add support for WDIOF_CARDRESET
This patch adds the WDIOF_CARDRESET support for the Renesas platform watchdog, to know if the board reboot is due to a watchdog reset. This is done via the WOVF bit (bit 4) of the RWTCSRA register, which indicates if RWTCNT overflowed, triggering the reset in last boot. Signed-off-by: Veeraiyan Chidambaram <veeraiyan.chidambaram@in.bosch.com> [takeshi.kihara.df: changed to read the RWTCSRA register while clock is enabled] Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/aspeed_wdt.c')
0 files changed, 0 insertions, 0 deletions