]> git.ipfire.org Git - thirdparty/u-boot.git/commit
drivers: watchdog: qcom: Add timeout configuration support in watchdog
authorBalaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
Tue, 27 May 2025 12:49:26 +0000 (18:19 +0530)
committerCasey Connolly <casey.connolly@linaro.org>
Mon, 23 Jun 2025 16:50:39 +0000 (18:50 +0200)
commit35811a7b0d68ce1a32446953e3ccf7a2186f08f8
tree97d78a7bb8da1a5545b13ff92ae12d84d70a5f0e
parent530764de9fc8539cd2354501e9c42804bc4c4dac
drivers: watchdog: qcom: Add timeout configuration support in watchdog

This patch enhances the Qualcomm watchdog driver by introducing
support for dynamic timeout configuration. Specifically:

- Calculates and sets the bark and bite timeout values based on
  the clock rate and the requested timeout in milliseconds.
- Adds retrieval of the watchdog clock rate during probe using
  the common clock framework.
- Adds a default timeout value for ARCH_SNAPDRAGON
  in WATCHDOG_TIMEOUT_MSECS.

These changes improve the configurability and accuracy of the
watchdog timer on Qualcomm platforms.

This work builds upon the previous submission:
https://lore.kernel.org/all/20250422-b4-qcom-wdt-v3-1-730d4d5a858d@paulsajna.com/

Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250527124926.128413-1-balaji.selvanathan@oss.qualcomm.com
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
drivers/watchdog/Kconfig
drivers/watchdog/qcom-wdt.c