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:
parent
ee9903005a
commit
5744709c9c
|
@ -18,6 +18,7 @@
|
|||
sw0 = &button0;
|
||||
spi-flash0 = &mx25r80;
|
||||
spi0 = &usart0;
|
||||
watchdog0 = &wdog0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
@ -89,6 +90,10 @@
|
|||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
&wdog0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -162,6 +162,15 @@
|
|||
};
|
||||
|
||||
};
|
||||
|
||||
wdog0: wdog@4a018000 {
|
||||
compatible = "silabs,gecko-wdog";
|
||||
reg = <0x4A018000 0x3028>;
|
||||
peripheral-id = <0>;
|
||||
interrupts = <43 0>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue