Skip to content

Commit

Permalink
kconfig: add CODE_SEMC for CODE_LOCATION
Browse files Browse the repository at this point in the history
Add CODE_SEMC to support nxp-rt series
code run in external sdram.

Signed-off-by: Frank Li <[email protected]>
  • Loading branch information
lgl88911 authored and MaureenHelm committed Apr 1, 2020
1 parent 29c0c08 commit 9162e7d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions soc/arm/nxp_imx/rt/Kconfig.defconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ config SPI_MCUX_LPSPI
default y if HAS_MCUX_LPSPI
depends on SPI

if CODE_SEMC

config FLASH_SIZE
default $(dt_node_reg_size_int,/memory@80000000,0,K)

config FLASH_BASE_ADDRESS
default $(dt_node_reg_addr_hex,/memory@80000000)

endif # CODE_SEMC

if CODE_ITCM

config FLASH_SIZE
Expand Down
3 changes: 3 additions & 0 deletions soc/arm/nxp_imx/rt/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ choice CODE_LOCATION
prompt "Code location selection"
default CODE_ITCM

config CODE_SEMC
bool "Link code into external SEMC-controlled memory"

config CODE_ITCM
bool "Link code into internal instruction tightly coupled memory (ITCM)"

Expand Down

0 comments on commit 9162e7d

Please sign in to comment.