Skip to content

Commit 0856cee

Browse files
danieldegrassemmahadevan108
authored andcommitted
soc: nxp: imxrt: correct flexspi XIP check to avoid reclocking
RT11xx SOC init should check to see if the zephyr flash node is set to a device on the FLEXSPI bus to determine if the part is running in XIP mode. This check was incorrect, so the FLEXSPI was being reclocked in XIP mode to 24 MHz. Fix this check so the FlexSPI is not downclocked. Fixes #75702 Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent cfb7322 commit 0856cee

File tree

1 file changed

+1
-1
lines changed
  • soc/nxp/imxrt/imxrt11xx

1 file changed

+1
-1
lines changed

soc/nxp/imxrt/imxrt11xx/soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static ALWAYS_INLINE void clock_init(void)
559559
#endif
560560
#endif
561561

562-
#if !(DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_flash), nxp_imx_flexspi)) && \
562+
#if !(DT_NODE_HAS_COMPAT(DT_PARENT(DT_CHOSEN(zephyr_flash)), nxp_imx_flexspi)) && \
563563
defined(CONFIG_MEMC_MCUX_FLEXSPI) && DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(flexspi))
564564
/* Configure FLEXSPI1 using OSC_RC_48M_DIV2 */
565565
rootCfg.mux = kCLOCK_FLEXSPI1_ClockRoot_MuxOscRc48MDiv2;

0 commit comments

Comments
 (0)