dts: arm: nxp: add two i3c instances for RT1180
add i3c instances enable i3c clock under soc folder Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
This commit is contained in:
parent
43ef363652
commit
08b8b160a9
2 changed files with 44 additions and 0 deletions
|
@ -449,6 +449,24 @@ static ALWAYS_INLINE void clock_init(void)
|
|||
|
||||
#endif /* CONFIG_HAS_MCUX_TPM */
|
||||
|
||||
#ifdef CONFIG_DT_HAS_NXP_MCUX_I3C_ENABLED
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c1), okay)
|
||||
/* Configure I3C1 using SYS_PLL3_DIV2_CLK */
|
||||
rootCfg.mux = kCLOCK_I3C1_ClockRoot_MuxSysPll3Div2;
|
||||
rootCfg.div = 10;
|
||||
CLOCK_SetRootClock(kCLOCK_Root_I3c1, &rootCfg);
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(i3c2), okay)
|
||||
/* Configure I3C2 using SYS_PLL3_DIV2_CLK */
|
||||
rootCfg.mux = kCLOCK_I3C2_ClockRoot_MuxSysPll3Div2;
|
||||
rootCfg.div = 10;
|
||||
CLOCK_SetRootClock(kCLOCK_Root_I3c2, &rootCfg);
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_DT_HAS_NXP_MCUX_I3C_ENABLED */
|
||||
|
||||
/* Keep core clock ungated during WFI */
|
||||
CCM->LPCG[1].LPM0 = 0x33333333;
|
||||
CCM->LPCG[1].LPM1 = 0x33333333;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue