drivers: clock_control: add i3c clock for clock_control_mcux_ccm_rev2.c

add i3c case to get i3c instance clock

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
This commit is contained in:
Lucien Zhao 2024-11-25 17:13:16 +08:00 committed by Benjamin Cabé
parent 08b8b160a9
commit a831f7df6d
2 changed files with 12 additions and 0 deletions

View file

@ -74,6 +74,13 @@ static int mcux_ccm_get_subsys_rate(const struct device *dev,
#endif
#endif
#ifdef CONFIG_I3C_MCUX
case IMX_CCM_I3C1_CLK:
case IMX_CCM_I3C2_CLK:
clock_root = kCLOCK_Root_I3c1 + instance;
break;
#endif
#ifdef CONFIG_SPI_MCUX_LPSPI
case IMX_CCM_LPSPI1_CLK:
clock_root = kCLOCK_Root_Lpspi1 + instance;

View file

@ -139,6 +139,11 @@
#define IMX_CCM_MIPI_CSI2RX_UI_CLK 0x2000UL
#define IMX_CCM_MIPI_CSI2RX_ESC_CLK 0x2100UL
/* I3C */
#define IMX_CCM_I3C_CLK 0x2200UL
#define IMX_CCM_I3C1_CLK 0x2200UL
#define IMX_CCM_I3C2_CLK 0x2201UL
/* QTMR */
#define IMX_CCM_QTMR_CLK 0x6000UL
#define IMX_CCM_QTMR1_CLK 0x6000UL