clock: mcux_ccm: add flexio clock
Adds flexio1 and flexio2 clock definitions to get the clock rate Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
This commit is contained in:
parent
05609d0379
commit
44f7928ecf
2 changed files with 14 additions and 0 deletions
|
|
@ -178,6 +178,15 @@ static int mcux_ccm_get_subsys_rate(const struct device *dev,
|
|||
break;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MCUX_FLEXIO
|
||||
case IMX_CCM_FLEXIO1_CLK:
|
||||
clock_root = kCLOCK_Root_Flexio1;
|
||||
break;
|
||||
case IMX_CCM_FLEXIO2_CLK:
|
||||
clock_root = kCLOCK_Root_Flexio2;
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PWM_MCUX_QTMR
|
||||
case IMX_CCM_QTMR1_CLK:
|
||||
case IMX_CCM_QTMR2_CLK:
|
||||
|
|
|
|||
|
|
@ -126,6 +126,11 @@
|
|||
#define IMX_CCM_TPM5_CLK 0x1604UL
|
||||
#define IMX_CCM_TPM6_CLK 0x1605UL
|
||||
|
||||
/* FLEXIO */
|
||||
#define IMX_CCM_FLEXIO_CLK 0x1700UL
|
||||
#define IMX_CCM_FLEXIO1_CLK 0x1700UL
|
||||
#define IMX_CCM_FLEXIO2_CLK 0x1701UL
|
||||
|
||||
/* QTMR */
|
||||
#define IMX_CCM_QTMR_CLK 0x6000UL
|
||||
#define IMX_CCM_QTMR1_CLK 0x6000UL
|
||||
|
|
|
|||
Loading…
Reference in a new issue