Skip to content

Commit

Permalink
drivers: cc: mcux: Fix incorrect clock source of FlexSPI2
Browse files Browse the repository at this point in the history
The clock control mcux rev2 returns FlexSPI1 clock rate when FlexSPI2
clock rate is requested.

Signed-off-by: Martin Stumpf <martin.stumpf@vected.de>
(cherry picked from commit 4ec2661)
  • Loading branch information
mstumpf-vected authored and github-actions[bot] committed Oct 4, 2024
1 parent b26773f commit bc33856
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/clock_control/clock_control_mcux_ccm_rev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,8 @@ static int mcux_ccm_get_subsys_rate(const struct device *dev,

#ifdef CONFIG_MEMC_MCUX_FLEXSPI
case IMX_CCM_FLEXSPI_CLK:
clock_root = kCLOCK_Root_Flexspi1;
break;
case IMX_CCM_FLEXSPI2_CLK:
clock_root = kCLOCK_Root_Flexspi2;
clock_root = kCLOCK_Root_Flexspi1 + instance;
break;
#endif
#ifdef CONFIG_COUNTER_NXP_PIT
Expand Down

0 comments on commit bc33856

Please sign in to comment.