soc: nxp: mcxw71: Add FlexCAN node/clocking

Add node and enable clock for the FlexCAN module on MCXW71.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-09-24 16:59:44 -05:00 committed by Henrik Brix Andersen
commit df95a86bc3
2 changed files with 14 additions and 0 deletions

View file

@ -154,6 +154,10 @@ static ALWAYS_INLINE void clock_init(void)
if (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(lpspi1), nxp_imx_lpspi, okay)) {
CLOCK_EnableClock(kCLOCK_Lpspi1);
}
if (IS_ENABLED(CONFIG_CAN_MCUX_FLEXCAN)) {
CLOCK_EnableClock(kCLOCK_Can0);
}
}
static void vbat_init(void)