watchdog: JZ4740: Register a restart handler
authorPaul Cercueil <paul@crapouillou.net>
Thu, 10 May 2018 18:47:46 +0000 (20:47 +0200)
committerJames Hogan <jhogan@kernel.org>
Mon, 14 May 2018 22:58:23 +0000 (23:58 +0100)
commitb4918057f35c5c604325da437db99e70259bd372
treef3c18d936aac492d79d5c2c0434cb2662e0bb7e0
parent6bdbc1f7f6e2577a33fe408eac9b023c8d248059
watchdog: JZ4740: Register a restart handler

The watchdog driver can restart the system by simply configuring the
hardware for a timeout of 0 seconds.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
Cc: Mathieu Malaterre <malat@debian.org>
Cc: linux-watchdog@vger.kernel.org
Cc: linux-mips@linux-mips.org
Signed-off-by: James Hogan <jhogan@kernel.org>
drivers/watchdog/jz4740_wdt.c