Skip to content

Commit 79c8bd0

Browse files
dleach02nordicjm
authored andcommitted
boards: nxp: convert lpcxpresso55s69 to hwmv2
Convert lpcxpresso55s69 Signed-off-by: David Leach <[email protected]>
1 parent 36777f5 commit 79c8bd0

24 files changed

+79
-94
lines changed

boards/boards_legacy/arm/lpcxpresso55s69/Kconfig.board

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

boards/boards_legacy/arm/lpcxpresso55s69/board.cmake

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

boards/boards_legacy/arm/lpcxpresso55s69/lpcxpresso55s69_cpu1_defconfig

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

boards/nxp/lpcxpresso11u68/Kconfig.lpcxpresso11u68

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Copyright (c) 2020, Seagate
2+
# Copyright 2024 NXP
3+
#
24
# SPDX-License-Identifier: Apache-2.0
35

46
config BOARD_LPCXPRESSO11U68

boards/boards_legacy/arm/lpcxpresso55s69/Kconfig.defconfig renamed to boards/nxp/lpcxpresso55s69/Kconfig.defconfig

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
# LPCXpresso55S69 board
2-
3-
# Copyright (c) 2019, NXP
1+
# Copyright 2019,2024 NXP
42
# SPDX-License-Identifier: Apache-2.0
53

6-
if BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1
7-
8-
config BOARD
9-
default "lpcxpresso55S69_cpu0" if BOARD_LPCXPRESSO55S69_CPU0
10-
default "lpcxpresso55S69_cpu1" if BOARD_LPCXPRESSO55S69_CPU1
4+
if BOARD_LPCXPRESSO55S69
115

126
if FXOS8700
137

@@ -36,9 +30,9 @@ DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
3630

3731
config FLASH_LOAD_SIZE
3832
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
39-
depends on BOARD_LPCXPRESSO55S69_CPU0 && TRUSTED_EXECUTION_SECURE
33+
depends on BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 && TRUSTED_EXECUTION_SECURE
4034

41-
if TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_CPU1
35+
if TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_LPC55S69_CPU1
4236

4337
config FLASH_LOAD_OFFSET
4438
default 0x50000 if (!TFM_BL2 && BUILD_WITH_TFM)
@@ -48,7 +42,7 @@ config FLASH_LOAD_SIZE
4842
default 0x40000 if (!TFM_BL2 && BUILD_WITH_TFM)
4943
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
5044

51-
endif # TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_CPU1
45+
endif # TRUSTED_EXECUTION_NONSECURE || BOARD_LPCXPRESSO55S69_LPC55S69_CPU1
5246

5347
choice TFM_PROFILE_TYPE
5448
depends on BUILD_WITH_TFM
@@ -62,4 +56,4 @@ choice MCUBOOT_BOOTLOADER_MODE
6256
endchoice
6357
endif #BOOTLOADER_MCUBOOT
6458

65-
endif # BOARD_LPCXPRESSO55S69_CPU0 || BOARD_LPCXPRESSO55S69_CPU1
59+
endif # BOARD_LPCXPRESSO55S69
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright 2024 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_LPCXPRESSO55S69
5+
select SOC_LPC55S69_CPU0 if BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 || \
6+
BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS
7+
select SOC_LPC55S69_CPU1 if BOARD_LPCXPRESSO55S69_LPC55S69_CPU1
8+
select SOC_PART_NUMBER_LPC55S69JBD100
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#
2+
# Copyright 2019, 2023 NXP
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
8+
## DAP Link implementation in pyocd is underway,
9+
## until then jlink can be used or copy image to storage
10+
11+
if(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
12+
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0_NS OR
13+
CONFIG_SECOND_CORE_MCUX)
14+
board_runner_args(jlink "--device=LPC55S69_M33_0")
15+
board_runner_args(linkserver "--device=LPC55S69:LPCXpresso55S69")
16+
board_runner_args(linkserver "--override=/device/memory/0/flash-driver=LPC55xx_S.cfx")
17+
board_runner_args(linkserver "--override=/device/memory/0/location=0x10000000")
18+
elseif(CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1)
19+
board_runner_args(jlink "--device=LPC55S69_M33_1")
20+
endif()
21+
22+
board_runner_args(pyocd "--target=lpc55s69")
23+
24+
if(CONFIG_BUILD_WITH_TFM)
25+
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
26+
endif()
27+
28+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
29+
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
30+
include(${ZEPHYR_BASE}/boards/common/linkserver.board.cmake)

boards/nxp/lpcxpresso55s69/board.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
board:
2+
name: lpcxpresso55s69
3+
vendor: nxp
4+
socs:
5+
- name: lpc55s69
6+
variants:
7+
- name: "ns"
8+
cpucluster: 'cpu0'

boards/boards_legacy/arm/lpcxpresso55s69/doc/index.rst renamed to boards/nxp/lpcxpresso55s69/doc/index.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ Targets available
108108
==================
109109

110110
The default configuration file
111-
``boards/arm/lpcxpresso55s69/lpcxpresso55s69_cpu0_defconfig``
111+
``boards/arm/lpcxpresso55s69/lpcxpresso55s69_lpc55s69_cpu0_defconfig``
112112
only enables the first core.
113113
CPU0 is the only target that can run standalone.
114114

115-
- *lpcxpresso55s69_cpu0* secure (S) address space for CPU0
116-
- *lpcxpresso55s69_ns* non-secure (NS) address space for CPU0
117-
- *lpcxpresso55s69_cpu1* CPU1 target, no security extensions
115+
- *lpcxpresso55s69/lpc55s69/cpu0* secure (S) address space for CPU0
116+
- *lpcxpresso55s69/lpc55s69/cpu0/ns* non-secure (NS) address space for CPU0
117+
- *lpcxpresso55s69/lpc55s69/cpu1* CPU1 target, no security extensions
118118

119119
NS target for CPU0 does not work correctly without a secure image to configure
120120
the system, then hand execution over to the NS environment. To enable a secure
@@ -326,7 +326,7 @@ Here is an example for the :ref:`hello_world` application. This example uses the
326326

327327
.. zephyr-app-commands::
328328
:zephyr-app: samples/hello_world
329-
:board: lpcxpresso55s69_cpu0
329+
:board: lpcxpresso55s69/lpc55s69/cpu0
330330
:goals: flash
331331

332332
Open a serial terminal, reset the board (press the RESET button), and you should

0 commit comments

Comments
 (0)