Skip to content

Commit 8ed80dd

Browse files
decsnykartben
authored andcommitted
boards: mimxrt1060_evk: Convert to variants
Convert qspi and hyperflash to variants instead of revisions by popular demand. And convert evkb into a revision instead of a different board. Signed-off-by: Declan Snyder <[email protected]>
1 parent 0cdb35d commit 8ed80dd

File tree

67 files changed

+91
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+91
-74
lines changed

boards/nxp/mimxrt1060_evk/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ endif()
1212

1313
if(CONFIG_NXP_IMXRT_BOOT_HEADER)
1414
zephyr_library()
15-
if(CONFIG_BOARD_MIMXRT1060_EVKB)
15+
if(${BOARD_REVISION} STREQUAL "B")
1616
set(FLASH_CONF evkbmimxrt1060_flexspi_nor_config.c)
1717
set(BOARD_NAME evkbmimxrt1060)
1818
elseif(CONFIG_DT_HAS_NXP_IMX_FLEXSPI_NOR_ENABLED)

boards/nxp/mimxrt1060_evk/Kconfig.defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2018,2023 NXP
44
# SPDX-License-Identifier: Apache-2.0
55

6-
if BOARD_MIMXRT1060_EVK || BOARD_MIMXRT1060_EVKB
6+
if BOARD_MIMXRT1060_EVK
77

88
config DEVICE_CONFIGURATION_DATA
99
default y
@@ -25,4 +25,4 @@ endif # ETH_MCUX
2525

2626
endif # NETWORKING
2727

28-
endif # BOARD_MIMXRT1060_EVK || BOARD_MIMXRT1060_EVKB
28+
endif # BOARD_MIMXRT1060_EVK

boards/nxp/mimxrt1060_evk/Kconfig.mimxrt1060_evkb

Lines changed: 0 additions & 5 deletions
This file was deleted.

boards/nxp/mimxrt1060_evk/board.cmake

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7+
if(NOT ("${BOARD_QUALIFIERS}" MATCHES "qspi"
8+
OR "${BOARD_QUALIFIERS}" MATCHES "hyperflash"))
9+
message(FATAL_ERROR "Please specify a board flash variant for the mimxrt1060_evk:\n"
10+
"mimxrt1060_evk/mimxrt1062/qspi or mimxrt1060_evk/mimxrt1062/hyperflash\n")
11+
endif()
12+
713
board_runner_args(pyocd "--target=mimxrt1060")
814
board_runner_args(jlink "--device=MIMXRT1062xxx6A")
915
board_runner_args(linkserver "--device=MIMXRT1062xxxxA:EVK-MIMXRT1060")
1016

11-
if (("${BOARD_REVISION}" STREQUAL "qspi") OR CONFIG_BOARD_MIMXRT1060_EVKB)
17+
if(("${BOARD_QUALIFIERS}" MATCHES "qspi") OR ("${BOARD_REVISION}" STREQUAL "B"))
1218
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=QSPI")
13-
elseif ("${BOARD_REVISION}" STREQUAL "hyperflash")
19+
elseif ("${BOARD_QUALIFIERS}" MATCHES "hyperflash")
1420
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=HyperFlash")
1521
endif()
1622

boards/nxp/mimxrt1060_evk/board.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ boards:
22
- name: mimxrt1060_evk
33
full_name: MIMXRT1060-EVK
44
vendor: nxp
5-
revision:
6-
format: "custom"
7-
default: "qspi"
8-
revisions:
9-
- name: "qspi"
10-
- name: "hyperflash"
11-
socs:
12-
- name: mimxrt1062
13-
- name: mimxrt1060_evkb
14-
full_name: MIMXRT1060-EVKB
15-
vendor: nxp
165
socs:
176
- name: mimxrt1062
7+
variants:
8+
- name: "qspi"
9+
- name: "hyperflash"
10+
revision:
11+
format: "letter"
12+
default: "A"
13+
revisions:
14+
- name: "A"
15+
- name: "B"

boards/nxp/mimxrt1060_evk/doc/index.rst

Lines changed: 18 additions & 5 deletions

boards/nxp/mimxrt1060_evk/mimxrt1060_evk_mimxrt1062_hyperflash.overlay renamed to boards/nxp/mimxrt1060_evk/mimxrt1060_evk_mimxrt1062_hyperflash.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include "mimxrt1060_evk.dtsi"
8+
79
/ {
810
chosen {
911
zephyr,flash-controller = &s26ks512s0;

boards/nxp/mimxrt1060_evk/mimxrt1060_evk_mimxrt1062_hyperflash.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
identifier: mimxrt1060_evk@hyperflash
7+
identifier: mimxrt1060_evk/mimxrt1062/hyperflash
88
name: NXP MIMXRT1060-EVK-HYPERFLASH
99
type: mcu
1010
arch: arm

0 commit comments

Comments
 (0)