boards: nxp: frdm_mcxn947: Enabled Watchdog

Enabled the watchdog for
frdm_mcxn947 board.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
This commit is contained in:
Emilio Benavente 2024-03-26 12:51:34 -05:00 committed by Johan Hedberg
commit dc1ad210cb
4 changed files with 15 additions and 0 deletions

View file

@ -162,6 +162,10 @@ static int frdm_mcxn947_init(void)
SYSCON->ENET_PHY_INTF_SEL = SYSCON_ENET_PHY_INTF_SEL_PHY_SEL(1);
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(wwdt0), okay)
CLOCK_SetClkDiv(kCLOCK_DivWdt0Clk, 1u);
#endif
/* Set SystemCoreClock variable. */
SystemCoreClock = CLOCK_INIT_CORE_CLOCK;