watchdog: da9063: Add restart handler support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 29 Jan 2015 14:26:05 +0000 (15:26 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 17 Feb 2015 20:33:06 +0000 (21:33 +0100)
commit396f163ceba3ac2829e3076764efcfb10797293c
tree07987c80e4041c2265620db685081a44a78f4d12
parent9a4c88016458424e53084ed3c26bfbae8cd8af22
watchdog: da9063: Add restart handler support

Register a restart handler for the da9063 watchdog.  System restart is
triggered by sending the shutdown command to the PMIC.
As more-suitable restart handlers may exist, the priority of the
watchdog restart handler is set to 128.

The actual restart method was inspired by a platform-specific patch from
the BSP by Hisashi Nakamura <hisashi.nakamura.ak@renesas.com>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/da9063_wdt.c