Browse Source
This commit updates nrf5340dk_nrf5340 to use board scheme v2, and thereby remove the Kconfig BOARD setting, as this is now passed from CMake. The nRF5340dk now support cpuapp and cpunet as cpusets, and the ns as a build variant. It also uses the new SoC approach, and thereby ensuring that the right SoC is always used, and cannot accidentially be changed by the user. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>pull/69687/head
25 changed files with 19 additions and 40 deletions
@ -1,18 +0,0 @@
@@ -1,18 +0,0 @@
|
||||
# nRF5340 DK NRF5340 board configuration |
||||
|
||||
# Copyright (c) 2019-2020 Nordic Semiconductor ASA |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
if SOC_NRF5340_CPUAPP_QKAA |
||||
|
||||
config BOARD_NRF5340DK_NRF5340_CPUAPP |
||||
bool "nRF5340 DK nRF5340 Application MCU" |
||||
|
||||
config BOARD_NRF5340DK_NRF5340_CPUAPP_NS |
||||
bool "nRF5340 DK nRF5340 Application MCU non-secure" |
||||
|
||||
endif # SOC_NRF5340_CPUAPP_QKAA |
||||
|
||||
config BOARD_NRF5340DK_NRF5340_CPUNET |
||||
bool "nRF5340 DK NRF5340 Network MCU" |
||||
depends on SOC_NRF5340_CPUNET_QKAA |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
# Copyright (c) 2022 Zephyr Project members and individual contributors |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config BOARD_NRF5340DK |
||||
select SOC_NRF5340_CPUAPP_QKAA if BOARD_NRF5340DK_NRF5340_CPUAPP |
||||
select SOC_NRF5340_CPUAPP_QKAA if BOARD_NRF5340DK_NRF5340_CPUAPP_NS |
||||
select SOC_NRF5340_CPUNET_QKAA if BOARD_NRF5340DK_NRF5340_CPUNET |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
board: |
||||
name: nrf5340dk |
||||
vendor: Nordic Semiconductor |
||||
socs: |
||||
- name: 'nrf5340' |
||||
variants: |
||||
- name: 'ns' |
||||
cpucluster: 'cpuapp' |
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
identifier: nrf5340dk_nrf5340_cpuapp |
||||
identifier: nrf5340dk/nrf5340/cpuapp |
||||
name: NRF5340-DK-NRF5340-application-MCU |
||||
type: mcu |
||||
arch: arm |
@ -1,9 +1,5 @@
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
CONFIG_SOC_SERIES_NRF53X=y |
||||
CONFIG_SOC_NRF5340_CPUAPP_QKAA=y |
||||
CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP=y |
||||
|
||||
# Enable MPU |
||||
CONFIG_ARM_MPU=y |
||||
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
identifier: nrf5340dk_nrf5340_cpuapp_ns |
||||
identifier: nrf5340dk/nrf5340/cpuapp/ns |
||||
name: NRF5340-DK-NRF5340-application-MCU-Non-Secure |
||||
type: mcu |
||||
arch: arm |
@ -1,9 +1,5 @@
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
CONFIG_SOC_SERIES_NRF53X=y |
||||
CONFIG_SOC_NRF5340_CPUAPP_QKAA=y |
||||
CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP_NS=y |
||||
|
||||
# Enable MPU |
||||
CONFIG_ARM_MPU=y |
||||
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
identifier: nrf5340dk_nrf5340_cpunet |
||||
identifier: nrf5340dk/nrf5340/cpunet |
||||
name: NRF5340-DK-NRF5340-network-MCU |
||||
type: mcu |
||||
arch: arm |
@ -1,9 +1,5 @@
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
CONFIG_SOC_SERIES_NRF53X=y |
||||
CONFIG_SOC_NRF5340_CPUNET_QKAA=y |
||||
CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET=y |
||||
|
||||
# Enable MPU |
||||
CONFIG_ARM_MPU=y |
||||
|
Loading…
Reference in new issue