Skip to content

Commit 6463dd6

Browse files
lucien-nxpnashif
authored andcommitted
drivers: clock_control:: Update ccm_rev2 clock driver for RT118X
flexspi_clock_set_freq can be applied for RT118X series. Signed-off-by: Lucien Zhao <[email protected]>
1 parent bfc607e commit 6463dd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clock_control/clock_control_mcux_ccm_rev2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ static int CCM_SET_FUNC_ATTR mcux_ccm_set_subsys_rate(const struct device *dev,
270270
case IMX_CCM_FLEXSPI_CLK:
271271
__fallthrough;
272272
case IMX_CCM_FLEXSPI2_CLK:
273-
#if defined(CONFIG_SOC_SERIES_IMXRT11XX) && defined(CONFIG_MEMC_MCUX_FLEXSPI)
273+
#if (defined(CONFIG_SOC_SERIES_IMXRT11XX) || defined(CONFIG_SOC_SERIES_IMXRT118X)) \
274+
&& defined(CONFIG_MEMC_MCUX_FLEXSPI)
274275
/* The SOC is using the FlexSPI for XIP. Therefore,
275276
* the FlexSPI itself must be managed within the function,
276277
* which is SOC specific.

0 commit comments

Comments
 (0)