drivers: clock_control: imx_ccm_rev2: add tpm clock

Add TPM clock support on i.MX 93 platform.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
This commit is contained in:
Jiafei Pan 2024-03-21 12:05:57 +08:00 committed by Alberto Escolar
parent 073725e00f
commit 91c081833e
2 changed files with 15 additions and 0 deletions

View file

@ -133,6 +133,12 @@ static int mcux_ccm_get_subsys_rate(const struct device *dev,
return 0;
#endif
#ifdef CONFIG_COUNTER_MCUX_TPM
case IMX_CCM_TPM_CLK:
clock_root = kCLOCK_Root_Tpm1 + instance;
break;
#endif
#ifdef CONFIG_MEMC_MCUX_FLEXSPI
case IMX_CCM_FLEXSPI_CLK:
clock_root = kCLOCK_Root_Flexspi1;

View file

@ -105,4 +105,13 @@
#define IMX_CCM_LPADC1_CLK 0x1500UL
#define IMX_CCM_LPADC2_CLK 0x1501UL
/* TPM */
#define IMX_CCM_TPM_CLK 0x1600UL
#define IMX_CCM_TPM1_CLK 0x1600UL
#define IMX_CCM_TPM2_CLK 0x1601UL
#define IMX_CCM_TPM3_CLK 0x1602UL
#define IMX_CCM_TPM4_CLK 0x1603UL
#define IMX_CCM_TPM5_CLK 0x1604UL
#define IMX_CCM_TPM6_CLK 0x1605UL
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_IMX_CCM_REV2_H_ */