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:
parent
dbd1da973b
commit
dc1ad210cb
4 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
==================
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -20,4 +20,5 @@ supported:
|
|||
- spi
|
||||
- dac
|
||||
- i2c
|
||||
- watchdog
|
||||
vendor: nxp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue