Skip to content

Commit 706770b

Browse files
AlessandroLuokartben
authored andcommitted
drivers: watchdog: Add support for Apollo510 watchdog
This commit adds support for Apollo510 SoC in ambiq wdt driver Signed-off-by: Hao Luo <[email protected]>
1 parent 6618a67 commit 706770b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/watchdog/wdt_ambiq.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ static int wdt_ambiq_setup(const struct device *dev, uint8_t options)
8585
cfg.ui32InterruptValue = data->timeout;
8686
cfg.bResetEnable = data->reset;
8787
cfg.ui32ResetValue = data->timeout;
88+
#if defined(CONFIG_SOC_SERIES_APOLLO4X)
8889
cfg.bAlertOnDSPReset = false;
89-
90+
#endif
9091
am_hal_wdt_config(AM_HAL_WDT_MCU, &cfg);
9192
am_hal_wdt_interrupt_enable(AM_HAL_WDT_MCU, AM_HAL_WDT_INTERRUPT_MCU);
9293
am_hal_wdt_start(AM_HAL_WDT_MCU, false);

0 commit comments

Comments
 (0)