watchdog: Add Nuvoton NPCM watchdog driver
authorJoel Stanley <joel@jms.id.au>
Tue, 13 Mar 2018 06:17:26 +0000 (16:47 +1030)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 24 Mar 2018 09:19:39 +0000 (10:19 +0100)
commit975b7f0fe669c313f925d60d67bce21f109b0f13
treea0eba19ff229be90595293673aecba806df1975c
parent1daa85d13f39144e43508fdd364ecbbaffbf35dc
watchdog: Add Nuvoton NPCM watchdog driver

The Nuvoton NPCM750 has a watchdog implemented as a single register
inside the timer peripheral.

This driver exposes that watchdog as a standard watchdog device with
coarse timeout intervals, limited by the combination of prescaler and
counter that is provided by the hardware. The calculation is taken from
the Nuvoton vendor tree.

The watchdog is left running if a bootloader had it going. The rate is
the one specified in the device tree, or the default value (obtained
from the datasheet).

There is a pre-timeout IRQ that is wired up. This timeout always occurs
1024 clocks before the timeout.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/Kconfig
drivers/watchdog/Makefile
drivers/watchdog/npcm_wdt.c [new file with mode: 0644]