From 706770b50fd85e4a8627ee0d5773da3775a5a896 Mon Sep 17 00:00:00 2001 From: Hao Luo Date: Thu, 17 Apr 2025 20:58:58 +0800 Subject: [PATCH] drivers: watchdog: Add support for Apollo510 watchdog This commit adds support for Apollo510 SoC in ambiq wdt driver Signed-off-by: Hao Luo --- drivers/watchdog/wdt_ambiq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/wdt_ambiq.c b/drivers/watchdog/wdt_ambiq.c index 8b0e58d892d..e2078730f98 100644 --- a/drivers/watchdog/wdt_ambiq.c +++ b/drivers/watchdog/wdt_ambiq.c @@ -85,8 +85,9 @@ static int wdt_ambiq_setup(const struct device *dev, uint8_t options) cfg.ui32InterruptValue = data->timeout; cfg.bResetEnable = data->reset; cfg.ui32ResetValue = data->timeout; +#if defined(CONFIG_SOC_SERIES_APOLLO4X) cfg.bAlertOnDSPReset = false; - +#endif am_hal_wdt_config(AM_HAL_WDT_MCU, &cfg); am_hal_wdt_interrupt_enable(AM_HAL_WDT_MCU, AM_HAL_WDT_INTERRUPT_MCU); am_hal_wdt_start(AM_HAL_WDT_MCU, false);