boards: arm: actinius_icarus_som_dk: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-02 11:38:13 +00:00
committed by Carles Cufi
parent dd0672a64c
commit 486504cf24
23 changed files with 31 additions and 63 deletions

View File

@@ -3,6 +3,4 @@
# #
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
zephyr_library()
add_subdirectory(${ZEPHYR_BASE}/boards/common/actinius actinius_common) add_subdirectory(${ZEPHYR_BASE}/boards/common/actinius actinius_common)

View File

@@ -0,0 +1,7 @@
# Actinius Icarus SoM DK board configuration
# Copyright (c) 2022 Actinius
# SPDX-License-Identifier: Apache-2.0
config BOARD_ACTINIUS_ICARUS_SOM_DK
select SOC_NRF9160_SICA

View File

@@ -3,10 +3,7 @@
# Copyright (c) 2022 Actinius # Copyright (c) 2022 Actinius
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_ACTINIUS_ICARUS_SOM_DK || BOARD_ACTINIUS_ICARUS_SOM_DK_NS if BOARD_ACTINIUS_ICARUS_SOM_DK
config BOARD
default "actinius_icarus_som_dk"
source "boards/common/actinius/Kconfig" source "boards/common/actinius/Kconfig"
@@ -25,9 +22,9 @@ DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
config FLASH_LOAD_SIZE config FLASH_LOAD_SIZE
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
depends on BOARD_ACTINIUS_ICARUS_SOM_DK && TRUSTED_EXECUTION_SECURE depends on BOARD_ACTINIUS_ICARUS_SOM_DK_NRF9160 && TRUSTED_EXECUTION_SECURE
if BOARD_ACTINIUS_ICARUS_SOM_DK_NS if BOARD_ACTINIUS_ICARUS_SOM_DK_NRF9160_NS
config FLASH_LOAD_OFFSET config FLASH_LOAD_OFFSET
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
@@ -35,6 +32,6 @@ config FLASH_LOAD_OFFSET
config FLASH_LOAD_SIZE config FLASH_LOAD_SIZE
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
endif # BOARD_ACTINIUS_ICARUS_SOM_DK_NS endif # BOARD_ACTINIUS_ICARUS_SOM_DK_NRF9160_NS
endif # BOARD_ACTINIUS_ICARUS_SOM_DK || BOARD_ACTINIUS_ICARUS_SOM_DK_NS endif # BOARD_ACTINIUS_ICARUS_SOM_DK

View File

@@ -1,9 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_SOC_NRF9160_SICA=y
CONFIG_BOARD_ACTINIUS_ICARUS_SOM_DK=y
# Enable MPU # Enable MPU
CONFIG_ARM_MPU=y CONFIG_ARM_MPU=y
@@ -13,12 +9,12 @@ CONFIG_HW_STACK_PROTECTION=y
# Enable TrustZone-M # Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y CONFIG_ARM_TRUSTZONE_M=y
# enable GPIO # Enable GPIO
CONFIG_GPIO=y CONFIG_GPIO=y
# Enable uart driver # Enable UART driver
CONFIG_SERIAL=y CONFIG_SERIAL=y
# enable console # Enable console
CONFIG_CONSOLE=y CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y CONFIG_UART_CONSOLE=y

View File

@@ -1,4 +1,4 @@
identifier: actinius_icarus_som_dk identifier: actinius_icarus_som_dk/nrf9160
name: Actinius Icarus SoM DK name: Actinius Icarus SoM DK
type: mcu type: mcu
arch: arm arch: arm

View File

@@ -1,4 +1,4 @@
identifier: actinius_icarus_som_dk_ns identifier: actinius_icarus_som_dk/nrf9160/ns
name: Actinius Icarus SoM DK Non-Secure name: Actinius Icarus SoM DK Non-Secure
type: mcu type: mcu
arch: arm arch: arm

View File

@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
# This board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y

View File

@@ -0,0 +1,5 @@
board:
name: actinius_icarus_som_dk
vendor: Actinius
variants:
- name: 'ns'

View File

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

@@ -210,7 +210,7 @@ Building Secure/Non-Secure Zephyr applications
The process requires the following steps: The process requires the following steps:
1. Build the Secure Zephyr application using ``-DBOARD=actinius_icarus_som_dk``. 1. Build the Secure Zephyr application using ``-DBOARD=actinius_icarus_som_dk``.
2. Build the Non-Secure Zephyr application using ``-DBOARD=actinius_icarus_som_dk_ns``. 2. Build the Non-Secure Zephyr application using ``-DBOARD=actinius_icarus_som_dk/ns``.
3. Merge the two binaries together. 3. Merge the two binaries together.
If you are using Segger Embedded Studio v4.18 or later, the two binaries are built, merged, and If you are using Segger Embedded Studio v4.18 or later, the two binaries are built, merged, and

View File

@@ -1,14 +0,0 @@
# Actinius Icarus SoM DK board configuration
# Copyright (c) 2022 Actinius
# SPDX-License-Identifier: Apache-2.0
if SOC_NRF9160_SICA
config BOARD_ACTINIUS_ICARUS_SOM_DK
bool "Actinius Icarus SoM DK"
config BOARD_ACTINIUS_ICARUS_SOM_DK_NS
bool "Actinius Icarus SoM DK Non-Secure"
endif # SOC_NRF9160_SICA

View File

@@ -1,27 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_SOC_NRF9160_SICA=y
CONFIG_BOARD_ACTINIUS_ICARUS_SOM_DK_NS=y
# Enable MPU
CONFIG_ARM_MPU=y
# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
# Enable TrustZone-M
CONFIG_ARM_TRUSTZONE_M=y
# This Board implies building Non-Secure firmware
CONFIG_TRUSTED_EXECUTION_NONSECURE=y
# enable GPIO
CONFIG_GPIO=y
# Enable uart driver
CONFIG_SERIAL=y
# enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

View File

@@ -1,5 +1,7 @@
board: board:
name: xiao_ble name: xiao_ble
vendor: Seeed Studio vendor: Seeed Studio
variants: socs:
- name: 'sense' - name: nrf52840
variants:
- name: 'sense'