soc: nxp: mcxw71: Add LPI2C node and clocking

Add LPI2C node and default clocking in soc.c

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-09-25 16:23:06 -05:00 committed by Anas Nashif
commit 8a104729c4
2 changed files with 30 additions and 0 deletions

View file

@ -136,6 +136,14 @@ static ALWAYS_INLINE void clock_init(void)
if (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(tpm1), nxp_kinetis_tpm, okay)) {
CLOCK_EnableClock(kCLOCK_Tpm1);
}
if (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(lpi2c0), nxp_imx_lpi2c, okay)) {
CLOCK_EnableClock(kCLOCK_Lpi2c0);
}
if (DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(lpi2c1), nxp_imx_lpi2c, okay)) {
CLOCK_EnableClock(kCLOCK_Lpi2c1);
}
}
static void vbat_init(void)