mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
watchdog: qcom: stop watchdog by default
Prevent the Qualcomm watchdog from autostarting and ensure it's stopped when the driver probed. In some cases the watchdog is left running by a previous bootloader stage. Disable autostart so it isn't left running when we boot into the OS, this behaviour can be changed by enabling autostart in the board defconfig. Reviewed-by: Stefan Roese <stefan.roese@mailbox.org> Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Reviewed-by: Tom Rini <trini@konsulko.com> Link: https://patch.msgid.link/20260121003659.69305-1-casey.connolly@linaro.org Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
This commit is contained in:
@@ -16,6 +16,7 @@ config WATCHDOG_AUTOSTART
|
||||
depends on WDT
|
||||
default n if ARCH_SUNXI
|
||||
default n if ARCH_STM32MP
|
||||
default n if ARCH_SNAPDRAGON
|
||||
default y
|
||||
help
|
||||
Automatically start watchdog timer and start servicing it during
|
||||
|
||||
@@ -129,7 +129,7 @@ static int qcom_wdt_probe(struct udevice *dev)
|
||||
|
||||
wdt->clk_rate = (ulong)rate;
|
||||
|
||||
return 0;
|
||||
return qcom_wdt_stop(dev);
|
||||
}
|
||||
|
||||
static const struct wdt_ops qcom_wdt_ops = {
|
||||
|
||||
Reference in New Issue
Block a user