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;

View file

@ -76,6 +76,8 @@ The FRDM-MCXN947 board configuration supports the following hardware features:
+-----------+------------+-------------------------------------+
| ENET QOS | on-chip | ethernet |
+-----------+------------+-------------------------------------+
| WATCHDOG | on-chip | watchdog |
+-----------+------------+-------------------------------------+
Targets available
==================

View file

@ -25,6 +25,10 @@
zephyr,console = &flexcomm4_lpuart4;
zephyr,shell-uart = &flexcomm4_lpuart4;
};
aliases{
watchdog0 = &wwdt0;
};
};
/*
@ -124,3 +128,7 @@
&enet_mdio {
status = "okay";
};
&wwdt0 {
status = "okay";
};

View file

@ -20,4 +20,5 @@ supported:
- spi
- dac
- i2c
- watchdog
vendor: nxp