Skip to content

Commit 5472210

Browse files
committed
boards: nxp: add mimxrt700_evk board
add files related to mimxrt700_evk board add gpio/uart function support on board Signed-off-by: Lucien Zhao <[email protected]>
1 parent 8a5930f commit 5472210

13 files changed

+928
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Copyright 2024 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
if(CONFIG_BOARD_MIMXRT700_EVK_MIMXRT798S_CM33_CPU0 OR CONFIG_BOARD_MIMXRT700_EVK_MIMXRT798S_CM33_CPU1)
8+
zephyr_library()
9+
zephyr_library_sources(board.c)
10+
endif()
11+
12+
if(CONFIG_NXP_IMXRT_BOOT_HEADER)
13+
if(NOT ((DEFINED CONFIG_BOARD_MIMXRT700_EVK_MIMXRT798S_CM33_CPU0)
14+
OR (DEFINED CONFIG_BOARD_MIMXRT700_EVK_MIMXRT798S_CM33_CPU1)))
15+
message(WARNING "It appears you are using the board definition for "
16+
"the MIMXRT7xx-EVK, but targeting a custom board. You may need to "
17+
"update your flash configuration block data")
18+
endif()
19+
# Include flash configuration block for RT7xx EVK from NXP's HAL.
20+
# This configuration block may need modification if another flash chip is
21+
# used on your custom board. See NXP AN13304 for more information.
22+
zephyr_compile_definitions(BOOT_HEADER_ENABLE=1)
23+
zephyr_compile_definitions(BOARD_FLASH_SIZE=CONFIG_FLASH_SIZE*1024)
24+
set(RT7XX_BOARD_DIR
25+
"${ZEPHYR_HAL_NXP_MODULE_DIR}/mcux/mcux-sdk/boards/mimxrt700evk")
26+
zephyr_library_sources(${RT7XX_BOARD_DIR}/flash_config/flash_config.c)
27+
zephyr_library_include_directories(${RT7XX_BOARD_DIR}/flash_config)
28+
endif()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_MIMXRT700_EVK
5+
select SOC_MIMXRT798S_CM33_CPU0 if BOARD_MIMXRT700_EVK_MIMXRT798S_CM33_CPU0
6+
select SOC_MIMXRT798S_CM33_CPU1 if BOARD_MIMXRT700_EVK_MIMXRT798S_CM33_CPU1
7+
select SOC_PART_NUMBER_MIMXRT798SGFOA

0 commit comments

Comments
 (0)