watchdog: s3c2410_wdt: Add support for WTCON register DBGACK_MASK bit
authorPeter Griffin <peter.griffin@linaro.org>
Mon, 11 Dec 2023 16:23:25 +0000 (16:23 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 13 Dec 2023 19:12:27 +0000 (20:12 +0100)
commit6584cd34901056bc12e015781e4adf03b44ba485
tree694fb1fd01438d31a047719d5f80cf7c9a5f5f6a
parentc95f5b21a0eaa4a2701c28e2b209f9a7e09cd4f0
watchdog: s3c2410_wdt: Add support for WTCON register DBGACK_MASK bit

The WDT uses the CPU core signal DBGACK to determine whether the SoC
is running in debug mode or not. If the DBGACK signal is asserted and
DBGACK_MASK bit is enabled, then WDT output and interrupt is masked
(disabled).

Presence of the DBGACK_MASK bit is determined by adding a new
QUIRK_HAS_DBGACK_BIT quirk. Also update to use BIT macro to avoid
checkpatch --strict warnings.

Tested-by: Will McVicker <willmcvicker@google.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20231211162331.435900-11-peter.griffin@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/watchdog/s3c2410_wdt.c