Skip to content

Commit 7b15b85

Browse files
saurabh-nxpgalak
authored andcommitted
drivers: memc: Update driver to support XIP on mimxrt685_evk.
Enable XIP based on SoC specific option. Signed-off-by: Saurabh Jagdhane <[email protected]>
1 parent 721e340 commit 7b15b85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/memc/memc_mcux_flexspi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ static int memc_flexspi_init(const struct device *dev)
140140
#define MEMC_FLEXSPI_CFG_XIP(node_id) DT_SAME_NODE(node_id, DT_NODELABEL(flexspi))
141141
#elif defined(CONFIG_XIP) && defined(CONFIG_CODE_FLEXSPI2)
142142
#define MEMC_FLEXSPI_CFG_XIP(node_id) DT_SAME_NODE(node_id, DT_NODELABEL(flexspi2))
143+
#elif defined(CONFIG_SOC_SERIES_IMX_RT6XX)
144+
#define MEMC_FLEXSPI_CFG_XIP(node_id) IS_ENABLED(CONFIG_XIP)
143145
#else
144146
#define MEMC_FLEXSPI_CFG_XIP(node_id) false
145147
#endif

0 commit comments

Comments
 (0)