1# 2# Copyright 2017-2022 NXP 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7if (CONFIG_DISPLAY) 8message(WARNING " 9CONFIG_DISPLAY: Running this firmware on a board without a display may damage the board 10") 11endif() 12 13if(CONFIG_NXP_IMXRT_BOOT_HEADER) 14 zephyr_library() 15 if(CONFIG_DT_HAS_NXP_IMX_FLEXSPI_HYPERFLASH_ENABLED) 16 set(FLASH_CONF evkbimxrt1050_flexspi_nor_config.c) 17 elseif(CONFIG_DT_HAS_NXP_IMX_FLEXSPI_NOR_ENABLED) 18 set(FLASH_CONF evkbimxrt1050_flexspi_nor_qspi_config.c) 19 else() 20 message(WARNING "It appears you are using the board definition for " 21 "the MIMXRT1050-EVK, but targeting a custom board. You may need to " 22 "update your flash configuration or device configuration data blocks") 23 # Default EVK configuration uses hyperflash, so use that file 24 set(FLASH_CONF evkbimxrt1050_flexspi_nor_config.c) 25 endif() 26 set(RT1050_BOARD_DIR 27 "${ZEPHYR_HAL_NXP_MODULE_DIR}/mcux/mcux-sdk/boards/evkbimxrt1050") 28 if(CONFIG_BOOT_FLEXSPI_NOR) 29 # Include flash configuration block for RT1050 EVK from NXP's HAL. 30 # This configuration block may need modification if another flash chip is 31 # used on your custom board. See NXP AN12238 for more information. 32 zephyr_compile_definitions(XIP_BOOT_HEADER_ENABLE=1) 33 zephyr_compile_definitions(BOARD_FLASH_SIZE=CONFIG_FLASH_SIZE*1024) 34 zephyr_library_sources(${RT1050_BOARD_DIR}/xip/${FLASH_CONF}) 35 zephyr_library_include_directories(${RT1050_BOARD_DIR}/xip) 36 endif() 37 if(CONFIG_DEVICE_CONFIGURATION_DATA) 38 # Include device configuration data block for RT1050 EVK from NXP's HAL. 39 # This configuration block may need modification if another SDRAM chip 40 # is used on your custom board. 41 zephyr_compile_definitions(XIP_BOOT_HEADER_DCD_ENABLE=1) 42 zephyr_library_sources(${RT1050_BOARD_DIR}/dcd.c) 43 else() 44 if(CONFIG_SRAM_BASE_ADDRESS EQUAL 0x80000000) 45 message(WARNING "You are using SDRAM as RAM but no device " 46 "configuration data (DCD) is included. This configuration may not boot") 47 endif() 48 endif() 49endif() 50 51if(CONFIG_MCUX_GPT_TIMER) 52 message(WARNING "You appear to be using the GPT hardware timer. " 53 "This timer will enable lower power modes, but at the cost of reduced " 54 "hardware timer resolution") 55endif() 56