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 <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2019-02-15 09:11:25 -06:00 committed by Anas Nashif
commit cf94d6811a
5 changed files with 26 additions and 10 deletions

View file

@ -10,6 +10,14 @@ if BOARD_MIMXRT1020_EVK
config BOARD config BOARD
default "mimxrt1020_evk" if BOARD_MIMXRT1020_EVK default "mimxrt1020_evk" if BOARD_MIMXRT1020_EVK
choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
choice DATA_LOCATION
default DATA_SEMC
endchoice
if GPIO_MCUX_IGPIO if GPIO_MCUX_IGPIO
config GPIO_MCUX_IGPIO_1 config GPIO_MCUX_IGPIO_1

View file

@ -10,6 +10,14 @@ if BOARD_MIMXRT1050_EVK || BOARD_MIMXRT1050_EVK_QSPI
config BOARD config BOARD
default "mimxrt1050_evk" default "mimxrt1050_evk"
choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
choice DATA_LOCATION
default DATA_SEMC
endchoice
if GPIO_MCUX_IGPIO if GPIO_MCUX_IGPIO
config GPIO_MCUX_IGPIO_1 config GPIO_MCUX_IGPIO_1

View file

@ -11,6 +11,14 @@ config BOARD
default "mimxrt1060_evk" if BOARD_MIMXRT1060_EVK default "mimxrt1060_evk" if BOARD_MIMXRT1060_EVK
default "mimxrt1060_evk_hyperflash" if BOARD_MIMXRT1060_EVK_HYPERFLASH default "mimxrt1060_evk_hyperflash" if BOARD_MIMXRT1060_EVK_HYPERFLASH
choice CODE_LOCATION
default CODE_FLEXSPI
endchoice
choice DATA_LOCATION
default DATA_SEMC
endchoice
if GPIO_MCUX_IGPIO if GPIO_MCUX_IGPIO
config GPIO_MCUX_IGPIO_1 config GPIO_MCUX_IGPIO_1

View file

@ -23,12 +23,4 @@ config IPG_DIV
config GPIO config GPIO
def_bool y def_bool y
choice CODE_LOCATION
default CODE_ITCM
endchoice
choice DATA_LOCATION
default DATA_DTCM
endchoice
endif # SOC_MIMXRT1064 endif # SOC_MIMXRT1064

View file

@ -248,7 +248,7 @@ endif # NXP_IMX_RT_BOOT_HEADER
choice CODE_LOCATION choice CODE_LOCATION
prompt "Code location selection" prompt "Code location selection"
default CODE_FLEXSPI default CODE_ITCM
config CODE_ITCM config CODE_ITCM
bool "Link code into internal instruction tightly coupled memory (ITCM)" bool "Link code into internal instruction tightly coupled memory (ITCM)"
@ -261,7 +261,7 @@ endchoice
choice DATA_LOCATION choice DATA_LOCATION
prompt "Data location selection" prompt "Data location selection"
default DATA_SEMC default DATA_DTCM
config DATA_DTCM config DATA_DTCM
bool "Link data into internal data tightly coupled memory (DTCM)" bool "Link data into internal data tightly coupled memory (DTCM)"