soc: nxp: imxrt: imxrt118x: Enable lpi2c0102/0304/0506 clock
Enable lpi2c0102/0304/0506 clock Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
This commit is contained in:
parent
2590c48d40
commit
e9e62b6aaa
1 changed files with 18 additions and 0 deletions
|
@ -224,6 +224,24 @@ static ALWAYS_INLINE void clock_init(void)
|
||||||
CLOCK_SetRootClock(kCLOCK_Root_Lpi2c0102, &rootCfg);
|
CLOCK_SetRootClock(kCLOCK_Root_Lpi2c0102, &rootCfg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_I2C_MCUX_LPI2C) && \
|
||||||
|
(DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c3), okay) \
|
||||||
|
|| DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c4), okay))
|
||||||
|
/* Configure LPI2C0304 using SYS_PLL3_DIV2_CLK */
|
||||||
|
rootCfg.mux = kCLOCK_LPI2C0304_ClockRoot_MuxSysPll3Div2;
|
||||||
|
rootCfg.div = 4;
|
||||||
|
CLOCK_SetRootClock(kCLOCK_Root_Lpi2c0304, &rootCfg);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_I2C_MCUX_LPI2C) && \
|
||||||
|
(DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c5), okay) \
|
||||||
|
|| DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c6), okay))
|
||||||
|
/* Configure LPI2C0506 using SYS_PLL3_DIV2_CLK */
|
||||||
|
rootCfg.mux = kCLOCK_LPI2C0506_ClockRoot_MuxSysPll3Div2;
|
||||||
|
rootCfg.div = 4;
|
||||||
|
CLOCK_SetRootClock(kCLOCK_Root_Lpi2c0506, &rootCfg);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SPI_MCUX_LPSPI) && \
|
#if defined(CONFIG_SPI_MCUX_LPSPI) && \
|
||||||
(DT_NODE_HAS_STATUS(DT_NODELABEL(lpspi1), okay) \
|
(DT_NODE_HAS_STATUS(DT_NODELABEL(lpspi1), okay) \
|
||||||
|| DT_NODE_HAS_STATUS(DT_NODELABEL(lpspi2), okay))
|
|| DT_NODE_HAS_STATUS(DT_NODELABEL(lpspi2), okay))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue