Skip to content

Commit 41acdc1

Browse files
danieldegrassecarlescufi
authored andcommitted
drivers: memc: fix XIP active logic for RT6xx/RT5xx
memc driver was setup to always assume the flexSPI would be in XIP mode, and skip init. This is only true for the active flexSPI, which is typically FlexSPI1. Fix this check to only skip init for FlexSPI1 Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 0aba1a8 commit 41acdc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memc/memc_mcux_flexspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static int memc_flexspi_init(const struct device *dev)
179179
#elif defined(CONFIG_XIP) && defined(CONFIG_CODE_FLEXSPI2)
180180
#define MEMC_FLEXSPI_CFG_XIP(node_id) DT_SAME_NODE(node_id, DT_NODELABEL(flexspi2))
181181
#elif defined(CONFIG_SOC_SERIES_IMX_RT6XX) || defined(CONFIG_SOC_SERIES_IMX_RT5XX)
182-
#define MEMC_FLEXSPI_CFG_XIP(node_id) IS_ENABLED(CONFIG_XIP)
182+
#define MEMC_FLEXSPI_CFG_XIP(node_id) DT_SAME_NODE(node_id, DT_NODELABEL(flexspi))
183183
#else
184184
#define MEMC_FLEXSPI_CFG_XIP(node_id) false
185185
#endif

0 commit comments

Comments
 (0)