drivers: watchdog: Enable Gecko wdt driver efr32bg_sltb010a

This commit enables the Gecko Watchdog Timer driver on the
efr32bg_sltb010 board.

Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com>
This commit is contained in:
Mateusz Sierszulski 2022-12-30 16:10:44 +01:00 committed by Carles Cufí
commit 5744709c9c
3 changed files with 16 additions and 2 deletions

View file

@ -254,10 +254,10 @@ static int wdt_gecko_init(const struct device *dev)
/* Enable ULFRCO (1KHz) oscillator */
CMU_OscillatorEnable(cmuOsc_ULFRCO, true, false);
#if !defined(_SILICON_LABS_32B_SERIES_2)
/* Ensure LE modules are clocked */
CMU_ClockEnable(config->clock, true);
#else
#if defined(_SILICON_LABS_32B_SERIES_2)
CMU_ClockSelectSet(config->clock, cmuSelect_ULFRCO);
#endif