Skip to content

Commit cf94d68

Browse files
MaureenHelmnashif
authored andcommitted
soc: nxp_imx: Default to on-chip memories at soc level
Refactor the imx rt code/data location config defaults such that we default to on-chip memories at the soc level and override to external memories at the board level. This means that we frequently override soc defaults for evk boards, but it removes the assumption that all imx rt boards (particularly non-evk boards) will have the same external memories as evk boards. The end result is that imx rt evk boards still have the same defaults as before, but the way we get there is different. Signed-off-by: Maureen Helm <[email protected]>
1 parent 10d3f07 commit cf94d68

File tree

5 files changed

+26
-10
lines changed

5 files changed

+26
-10
lines changed

boards/arm/mimxrt1020_evk/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ if BOARD_MIMXRT1020_EVK
1010
config BOARD
1111
default "mimxrt1020_evk" if BOARD_MIMXRT1020_EVK
1212

13+
choice CODE_LOCATION
14+
default CODE_FLEXSPI
15+
endchoice
16+
17+
choice DATA_LOCATION
18+
default DATA_SEMC
19+
endchoice
20+
1321
if GPIO_MCUX_IGPIO
1422

1523
config GPIO_MCUX_IGPIO_1

boards/arm/mimxrt1050_evk/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ if BOARD_MIMXRT1050_EVK || BOARD_MIMXRT1050_EVK_QSPI
1010
config BOARD
1111
default "mimxrt1050_evk"
1212

13+
choice CODE_LOCATION
14+
default CODE_FLEXSPI
15+
endchoice
16+
17+
choice DATA_LOCATION
18+
default DATA_SEMC
19+
endchoice
20+
1321
if GPIO_MCUX_IGPIO
1422

1523
config GPIO_MCUX_IGPIO_1

boards/arm/mimxrt1060_evk/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ config BOARD
1111
default "mimxrt1060_evk" if BOARD_MIMXRT1060_EVK
1212
default "mimxrt1060_evk_hyperflash" if BOARD_MIMXRT1060_EVK_HYPERFLASH
1313

14+
choice CODE_LOCATION
15+
default CODE_FLEXSPI
16+
endchoice
17+
18+
choice DATA_LOCATION
19+
default DATA_SEMC
20+
endchoice
21+
1422
if GPIO_MCUX_IGPIO
1523

1624
config GPIO_MCUX_IGPIO_1

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,4 @@ config IPG_DIV
2323
config GPIO
2424
def_bool y
2525

26-
choice CODE_LOCATION
27-
default CODE_ITCM
28-
endchoice
29-
30-
choice DATA_LOCATION
31-
default DATA_DTCM
32-
endchoice
33-
3426
endif # SOC_MIMXRT1064

soc/arm/nxp_imx/rt/Kconfig.soc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ endif # NXP_IMX_RT_BOOT_HEADER
248248

249249
choice CODE_LOCATION
250250
prompt "Code location selection"
251-
default CODE_FLEXSPI
251+
default CODE_ITCM
252252

253253
config CODE_ITCM
254254
bool "Link code into internal instruction tightly coupled memory (ITCM)"
@@ -261,7 +261,7 @@ endchoice
261261

262262
choice DATA_LOCATION
263263
prompt "Data location selection"
264-
default DATA_SEMC
264+
default DATA_DTCM
265265

266266
config DATA_DTCM
267267
bool "Link data into internal data tightly coupled memory (DTCM)"

0 commit comments

Comments
 (0)