Skip to content

Commit d931f0b

Browse files
decsnyfabiobaltieri
authored andcommitted
soc: imxrt: Fix flexspi xip configuration issue
Fix flexspi xip configuration issue regarding code relocation due to the order of kconfig defaults being sourced The flexspi setup was not being relocated to an on chip location Also remove rt1060 conf file in flash common test which changes the code relocation location to RAM, just keep as ITCM for all M7 which as of now all have ITCM from NXP with flexspi. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1 parent e28e93a commit d931f0b

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

soc/nxp/common/Kconfig.flexspi_xip

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,20 @@ config FLASH_MCUX_FLEXSPI_XIP
2828
Allows REfor the soc to safely initialize the clocks for the
2929
FlexSpi when planning to execute code in FlexSpi Memory.
3030

31+
if FLASH_MCUX_FLEXSPI_XIP && MEMC_MCUX_FLEXSPI
32+
3133
config CODE_DATA_RELOCATION_SRAM
32-
default y if FLASH_MCUX_FLEXSPI_XIP && MEMC_MCUX_FLEXSPI
34+
default y if !CPU_CORTEX_M7
35+
36+
config CODE_DATA_RELOCATION
37+
default y if CPU_CORTEX_M7
3338

3439
config FLASH_MCUX_FLEXSPI_XIP_MEM
3540
string
3641
prompt "Flexspi drivers memory location"
3742
default "RAM"
38-
depends on MEMC_MCUX_FLEXSPI && FLASH_MCUX_FLEXSPI_XIP
3943
help
4044
Select the location to run the FlexSPI drivers when using
4145
the flash API.
46+
47+
endif

soc/nxp/imxrt/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ config CACHE_MANAGEMENT
114114
config FLASH_MCUX_FLEXSPI_XIP_MEM
115115
default "ITCM"
116116

117-
config CODE_DATA_RELOCATION_SRAM
118-
default n
119-
120117
endif # CPU_CORTEX_M7
121118

122119
endif # SOC_SERIES_IMXRT10XX || SOC_SERIES_IMXRT11XX || SOC_SERIES_IMXRT118X

tests/drivers/flash/common/boards/mimxrt1060_evk.conf

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)