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:
parent
073725e00f
commit
91c081833e
|
@ -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;
|
||||
|
|
|
@ -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_ */
|
||||
|
|
Loading…
Reference in a new issue