]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaba92c63c1886c618189c608a3b0aecbb0164faa
tree07987c80e4041c2265620db685081a44a78f4d12
parent784ab8c3f2a9a5f4b8a3f7a5f845fe9ebb83ea5a
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