Add support for loading M4 image from OCRAM when running with dual core operation. The M7 core will copy the M4 image from flash into OCRAM, and the M4 core will execute it there. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
56 lines
1.4 KiB
Text
56 lines
1.4 KiB
Text
# MIMXRT1160-EVK board
|
|
|
|
# Copyright (c) 2021, NXP
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if BOARD_MIMXRT1160_EVK_CM7 || BOARD_MIMXRT1160_EVK_CM4
|
|
|
|
config BOARD
|
|
default "mimxrt1160_evk_cm7" if BOARD_MIMXRT1160_EVK_CM7
|
|
default "mimxrt1160_evk_cm4" if BOARD_MIMXRT1160_EVK_CM4
|
|
|
|
choice CODE_LOCATION
|
|
default CODE_FLEXSPI if BOARD_MIMXRT1160_EVK_CM7
|
|
default CODE_OCRAM if BOARD_MIMXRT1160_EVK_CM4 && SECOND_CORE_MCUX
|
|
default CODE_SRAM0 if BOARD_MIMXRT1160_EVK_CM4
|
|
endchoice
|
|
|
|
if SECOND_CORE_MCUX && BOARD_MIMXRT1160_EVK_CM4
|
|
|
|
config BUILD_OUTPUT_INFO_HEADER
|
|
default y
|
|
|
|
DT_CHOSEN_IMAGE_M4 = nxp,m4-partition
|
|
|
|
# Adjust the offset of the output image if building for RT11xx SOC
|
|
config BUILD_OUTPUT_ADJUST_LMA
|
|
default "($(dt_chosen_reg_addr_hex,$(DT_CHOSEN_IMAGE_M4)) + \
|
|
$(dt_node_reg_addr_hex,/soc/spi@400cc000,1)) - \
|
|
$(dt_node_reg_addr_hex,/soc/ocram@20200000)"
|
|
|
|
endif
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
default 240000000 if BOARD_MIMXRT1160_EVK_CM4 && CORTEX_M_SYSTICK
|
|
default 600000000 if BOARD_MIMXRT1160_EVK_CM7 && CORTEX_M_SYSTICK
|
|
|
|
if FLASH
|
|
|
|
choice FLASH_MCUX_FLEXSPI_XIP_MEM_TARGET
|
|
default FLASH_MCUX_FLEXSPI_XIP_MEM_ITCM if CPU_CORTEX_M7
|
|
default FLASH_MCUX_FLEXSPI_XIP_MEM_SRAM if CPU_CORTEX_M4
|
|
endchoice
|
|
|
|
endif #FLASH
|
|
|
|
if NETWORKING
|
|
|
|
config NET_L2_ETHERNET
|
|
default y if CPU_CORTEX_M7 # No cache memory support is required for driver
|
|
|
|
config ETH_MCUX_PHY_RESET
|
|
default y
|
|
|
|
endif # NETWORKING
|
|
|
|
endif # BOARD_MIMXRT1160_EVK_CM7 || BOARD_MIMXRT1160_EVK_CM4
|