watchdog: sp5100_tco: Enable watchdog on Family 17h devices if disabled
authorGuenter Roeck <linux@roeck-us.net>
Thu, 10 Sep 2020 16:31:09 +0000 (09:31 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 14 Oct 2020 13:22:57 +0000 (15:22 +0200)
commit09da89abe36a3cb3485ed765ec37ac50227e28b5
tree142b83ee258be3df6e6ec8d41c2af0885633e968
parent08c619b4923056b5dd2d5045757468c76ad0e3fe
watchdog: sp5100_tco: Enable watchdog on Family 17h devices if disabled

On Family 17h (Ryzen) devices, the WatchdogTmrEn bit of PmDecodeEn not only
enables watchdog memory decoding at 0xfeb00000, it also enables the
watchdog hardware itself. Use this information to enable the watchdog if
it is not already enabled.

Cc: Jan Kiszka <jan.kiszka@siemens.com>
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Link: https://lore.kernel.org/r/20200910163109.235136-2-linux@roeck-us.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sp5100_tco.c