Skip to content

Commit 44f7928

Browse files
PetervdPerk-NXPcarlescufi
authored andcommitted
clock: mcux_ccm: add flexio clock
Adds flexio1 and flexio2 clock definitions to get the clock rate Signed-off-by: Peter van der Perk <[email protected]>
1 parent 05609d0 commit 44f7928

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

drivers/clock_control/clock_control_mcux_ccm_rev2.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,15 @@ static int mcux_ccm_get_subsys_rate(const struct device *dev,
178178
break;
179179
#endif
180180

181+
#ifdef CONFIG_MCUX_FLEXIO
182+
case IMX_CCM_FLEXIO1_CLK:
183+
clock_root = kCLOCK_Root_Flexio1;
184+
break;
185+
case IMX_CCM_FLEXIO2_CLK:
186+
clock_root = kCLOCK_Root_Flexio2;
187+
break;
188+
#endif
189+
181190
#ifdef CONFIG_PWM_MCUX_QTMR
182191
case IMX_CCM_QTMR1_CLK:
183192
case IMX_CCM_QTMR2_CLK:

include/zephyr/dt-bindings/clock/imx_ccm_rev2.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@
126126
#define IMX_CCM_TPM5_CLK 0x1604UL
127127
#define IMX_CCM_TPM6_CLK 0x1605UL
128128

129+
/* FLEXIO */
130+
#define IMX_CCM_FLEXIO_CLK 0x1700UL
131+
#define IMX_CCM_FLEXIO1_CLK 0x1700UL
132+
#define IMX_CCM_FLEXIO2_CLK 0x1701UL
133+
129134
/* QTMR */
130135
#define IMX_CCM_QTMR_CLK 0x6000UL
131136
#define IMX_CCM_QTMR1_CLK 0x6000UL

0 commit comments

Comments
 (0)