watchdog: s3c2410: Add support for WDT counter enable register
authorSam Protsenko <semen.protsenko@linaro.org>
Sun, 21 Nov 2021 16:56:43 +0000 (18:56 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 28 Dec 2021 12:59:03 +0000 (13:59 +0100)
commitaa220bc6b7581eb1ac2eb98a8d002af95d5d8c8d
tree79b9e9e6578b0ad81d68e5eadf2944a63c0d4635
parent370bc7f50f475711c970c8e88b2f4b29b53b5791
watchdog: s3c2410: Add support for WDT counter enable register

On new Exynos chips (e.g. Exynos850) new CLUSTERx_NONCPU_OUT register is
introduced, where CNT_EN_WDT bit must be enabled to make watchdog
counter running. Add corresponding quirk and proper infrastructure to
handle that register if the quirk is set.

This commit doesn't bring any functional change to existing devices, but
merely provides an infrastructure for upcoming chips support.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20211107202943.8859-9-semen.protsenko@linaro.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/s3c2410_wdt.c