Skip to content

Commit 755af99

Browse files
danieldegrassecarlescufi
authored andcommitted
soc: rt1xxx: allow linking code to OCRAM region
Allow linking code into OCRAM region when building for RT1xxx SOCs. This can be used on the RT11xx dual core SOCs as a shared memory region, when the M7 core needs to load code into a region accessible to the M4 core. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 649a819 commit 755af99

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

soc/arm/nxp_imx/rt/Kconfig.defconfig.series

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@ config FLASH_BASE_ADDRESS
103103

104104
endif # CODE_SRAM0
105105

106+
if CODE_OCRAM
107+
108+
config FLASH_SIZE
109+
default $(dt_node_reg_size_int,/soc/ocram@20200000,0,K)
110+
111+
config FLASH_BASE_ADDRESS
112+
default $(dt_node_reg_addr_hex,/soc/ocram@20200000)
113+
114+
endif # CODE_OCRAM
106115

107116
if CODE_FLEXSPI
108117

soc/arm/nxp_imx/rt/Kconfig.soc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,10 @@ config CODE_FLEXSPI2
723723

724724
config CODE_SRAM0
725725
bool "Link code into RAM_L memory (RAM_L)"
726+
727+
config CODE_OCRAM
728+
bool "Link code into OCRAM memory (OCRAM-M4)"
729+
726730
endchoice
727731

728732
config OCRAM_NOCACHE

0 commit comments

Comments
 (0)