watchdog: orion_wdt: support pretimeout on Armada-XP
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Fri, 11 Feb 2022 00:32:57 +0000 (13:32 +1300)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 27 Mar 2022 15:04:28 +0000 (17:04 +0200)
commit7a6b3d8a432d18f48f3390de48f4361bc677712e
tree2f54116723a0f5b9c3c418007f5b084d57833efe
parentcd91fb2776967b2b2dea27307a3f23ba3d9bbb32
watchdog: orion_wdt: support pretimeout on Armada-XP

Commit e07a4c79ca75 ("watchdog: orion_wdt: use timer1 as a pretimeout")
added support for a pretimeout on Armada-38x variants. Because the
Armada-XP variants use armada370_start/armada370_stop (due to missing an
explicit RSTOUT mask bit for the watchdog). Add the required pretimeout
support to armada370_start/armada370_stop for Armada-XP.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220211003257.2037332-3-chris.packham@alliedtelesis.co.nz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/orion_wdt.c