]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: Add support for Armada 37xx CPU watchdog
authorMarek Behún <marek.behun@nic.cz>
Mon, 24 Sep 2018 11:06:51 +0000 (13:06 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 13 Oct 2018 13:19:39 +0000 (15:19 +0200)
commit63a453f0cb72dcd8c077c391d38827288cda8c5b
treeb0b57480f915aef88233a261610e83bf25e95b9e
parent6887493adc78ae7e2860f12bee079bc24b35e40f
watchdog: Add support for Armada 37xx CPU watchdog

This adds support for the CPU watchdog found on Marvell Armada 37xx
SoCs.

There are 4 counters which can be set as CPU watchdog counters.
This driver uses the second counter (ID 1, counting from 0) as watchdog
counter, and first counter (ID 0) to implement pinging on the second
counter without the need to disable it.

Since counters IDs 2 and 3 are enabled already before even U-Boot
starts, this driver does not use them at all, for example by adding a
device tree property for counter selection.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/Kconfig
drivers/watchdog/Makefile
drivers/watchdog/armada_37xx_wdt.c [new file with mode: 0644]