watchdog: renesas_wdt: Add restart handler
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Mon, 5 Mar 2018 15:30:26 +0000 (15:30 +0000)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 10 Mar 2018 10:45:35 +0000 (11:45 +0100)
commit089bcaa87e772beb005068a5ef28c71bb895d01d
treee4d9f0d111f6b022617f866e66cfd39f9a6a1cbc
parent3fe95e6c68e6258410e85488af9e1b1ff545b831
watchdog: renesas_wdt: Add restart handler

On iWave's boards iwg20d and iwg22d the only way to reboot the system is
by means of the watchdog.
This patch adds a restart handler to rwdt_ops, and also makes sure we
keep its priority to the lowest level, in order to not override other
more effective handlers.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.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>
drivers/watchdog/renesas_wdt.c