Skip to content

Commit 4afc478

Browse files
MaureenHelmioannisg
authored andcommitted
boards: soc: arm: Set zephyr,itcm chosen node for i.MX RT boards
Sets the device tree chosen node for instruction tightly coupled memory (ITCM) on all i.MX RT boards. Leverages the common Cortex-M linker section instead of the SoC-specific one. Signed-off-by: Maureen Helm <[email protected]>
1 parent f633852 commit 4afc478

File tree

8 files changed

+7
-3
lines changed

8 files changed

+7
-3
lines changed

boards/arm/mimxrt1010_evk/mimxrt1010_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
chosen {
2121
zephyr,sram = &dtcm;
22+
zephyr,itcm = &itcm;
2223
zephyr,console = &lpuart1;
2324
zephyr,shell-uart = &lpuart1;
2425
};

boards/arm/mimxrt1015_evk/mimxrt1015_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
chosen {
2121
zephyr,sram = &dtcm;
22+
zephyr,itcm = &itcm;
2223
zephyr,console = &lpuart1;
2324
zephyr,shell-uart = &lpuart1;
2425
};

boards/arm/mimxrt1020_evk/mimxrt1020_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
chosen {
2121
zephyr,sram = &sdram0;
22+
zephyr,itcm = &itcm;
2223
zephyr,dtcm = &dtcm;
2324
zephyr,console = &lpuart1;
2425
zephyr,shell-uart = &lpuart1;

boards/arm/mimxrt1050_evk/mimxrt1050_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
chosen {
2323
zephyr,sram = &sdram0;
24+
zephyr,itcm = &itcm;
2425
zephyr,dtcm = &dtcm;
2526
zephyr,console = &lpuart1;
2627
zephyr,shell-uart = &lpuart1;

boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
chosen {
2323
zephyr,sram = &sdram0;
24+
zephyr,itcm = &itcm;
2425
zephyr,dtcm = &dtcm;
2526
zephyr,console = &lpuart1;
2627
zephyr,shell-uart = &lpuart1;

boards/arm/mimxrt1064_evk/mimxrt1064_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
chosen {
2323
zephyr,sram = &sdram0;
24+
zephyr,itcm = &itcm;
2425
zephyr,dtcm = &dtcm;
2526
zephyr,console = &lpuart1;
2627
zephyr,shell-uart = &lpuart1;

boards/arm/mm_swiftio/mm_swiftio.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
chosen {
2222
zephyr,sram = &sdram0;
23+
zephyr,itcm = &itcm;
2324
zephyr,dtcm = &dtcm;
2425
zephyr,console = &lpuart1;
2526
zephyr,shell-uart = &lpuart1;

soc/arm/nxp_imx/rt/linker.ld

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ MEMORY
1616
#endif
1717
#if (DT_REG_SIZE(DT_NODELABEL(sdram0)) > 0) && !IS_CHOSEN_SRAM(sdram0)
1818
SDRAM (wx) : ORIGIN = DT_REG_ADDR(DT_NODELABEL(sdram0)), LENGTH = DT_REG_SIZE(DT_NODELABEL(sdram0))
19-
#endif
20-
#if (DT_REG_SIZE(DT_INST(0, nxp_imx_itcm)) > 0) && !defined(CONFIG_CODE_ITCM)
21-
ITCM (wx) : ORIGIN = DT_REG_ADDR(DT_INST(0, nxp_imx_itcm)), LENGTH = DT_REG_SIZE(DT_INST(0, nxp_imx_itcm))
2219
#endif
2320
}
2421

0 commit comments

Comments
 (0)