summaryrefslogtreecommitdiff
path: root/drivers/watchdog/at91sam9_wdt.c
diff options
context:
space:
mode:
authorFabrizio Castro <fabrizio.castro.jz@renesas.com>2022-11-17 11:49:07 +0000
committerWim Van Sebroeck <wim@linux-watchdog.org>2023-02-18 15:11:34 +0100
commitf769f97917c1e756e12ff042a93f6e3167254b5b (patch)
treeb95f6c94e1d94a8ee29ce1cd050e80ca21e09ee9 /drivers/watchdog/at91sam9_wdt.c
parent6ba6f0f5910d5916539268c0ad55657bb8940616 (diff)
watchdog: rzg2l_wdt: Handle TYPE-B reset for RZ/V2M
As per section 48.4 of the HW User Manual, IPs in the RZ/V2M SoC need either a TYPE-A reset sequence or a TYPE-B reset sequence. More specifically, the watchdog IP needs a TYPE-B reset sequence. If the proper reset sequence isn't implemented, then resetting IPs may lead to undesired behaviour. In the restart callback of the watchdog driver the reset has basically no effect on the desired funcionality, as the register writes following the reset happen before the IP manages to come out of reset. Implement the TYPE-B reset sequence in the watchdog driver to address the issues with the restart callback on RZ/V2M. Fixes: ec122fd94eeb ("watchdog: rzg2l_wdt: Add rzv2m support") Signed-off-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20221117114907.138583-3-fabrizio.castro.jz@renesas.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/at91sam9_wdt.c')
0 files changed, 0 insertions, 0 deletions