boards: arm: sparkfun_thing_plus_nrf9160: Convert to v2
Converts the board to hwmv2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
committed by
Carles Cufi
parent
594e4bad6b
commit
ee6f7697ac
@@ -1,23 +0,0 @@
|
||||
# Sparkfun nRF9160 Thing Plus configuration
|
||||
|
||||
# Copyright (c) 2018-2020 Nordic Semiconductor ASA
|
||||
# Copyright (c) 2020 Circuit Dojo LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_NRF9160_SICA
|
||||
|
||||
config BOARD_SPARKFUN_THING_PLUS_NRF9160
|
||||
bool "Sparkfun nRF9160 Thing Plus"
|
||||
# The GPIO driver is required by this board's initialization code
|
||||
# (board.c), so it is forced here to be enabled always, not only
|
||||
# enabled by default (in defconfig).
|
||||
select GPIO
|
||||
|
||||
config BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
|
||||
bool "Sparkfun nRF9160 Thing Plus non-secure"
|
||||
# The GPIO driver is required by this board's initialization code
|
||||
# (board.c), so it is forced here to be enabled always, not only
|
||||
# enabled by default (in defconfig).
|
||||
select GPIO
|
||||
|
||||
endif # SOC_NRF9160_SICA
|
||||
11
boards/sparkfun/sparkfun_thing_plus/Kconfig
Normal file
11
boards/sparkfun/sparkfun_thing_plus/Kconfig
Normal file
@@ -0,0 +1,11 @@
|
||||
# Sparkfun nRF9160 Thing Plus configuration
|
||||
|
||||
# Copyright (c) 2018-2020 Nordic Semiconductor ASA
|
||||
# Copyright (c) 2020 Circuit Dojo LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_SPARKFUN_THING_PLUS
|
||||
# The GPIO driver is required by this board's initialization code
|
||||
# (board.c), so it is forced here to be enabled always, not only
|
||||
# enabled by default (in defconfig).
|
||||
select GPIO
|
||||
@@ -4,10 +4,7 @@
|
||||
# Copyright (c) 2020 Circuit Dojo LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
|
||||
|
||||
config BOARD
|
||||
default "sparkfun_thing_plus_nrf9160"
|
||||
if BOARD_SPARKFUN_THING_PLUS
|
||||
|
||||
# For the secure version of the board the firmware is linked at the beginning
|
||||
# of the flash, or into the code-partition defined in DT if it is intended to
|
||||
@@ -34,6 +31,6 @@ config FLASH_LOAD_OFFSET
|
||||
config FLASH_LOAD_SIZE
|
||||
default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
|
||||
|
||||
endif # BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
|
||||
endif # BOARD_SPARKFUN_THING_PLUS_NRF9160
|
||||
|
||||
endif # BOARD_SPARKFUN_THING_PLUS_NRF9160 || BOARD_SPARKFUN_THING_PLUS_NRF9160_NS
|
||||
endif # BOARD_SPARKFUN_THING_PLUS
|
||||
@@ -1,5 +1,8 @@
|
||||
# Circuit Dojo nRF9160 Feather configuration
|
||||
# Sparkfun nRF9160 Thing Plus configuration
|
||||
|
||||
# Copyright (c) 2018-2020 Nordic Semiconductor ASA
|
||||
# Copyright (c) 2020 Circuit Dojo LLC
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_SPARKFUN_THING_PLUS
|
||||
select SOC_NRF9160_SICA
|
||||
7
boards/sparkfun/sparkfun_thing_plus/board.yml
Normal file
7
boards/sparkfun/sparkfun_thing_plus/board.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
board:
|
||||
name: sparkfun_thing_plus
|
||||
vendor: SparkFun Electronics
|
||||
socs:
|
||||
- name: nrf9160
|
||||
variants:
|
||||
- name: 'ns'
|
||||
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 65 KiB |
@@ -139,7 +139,7 @@ the board are working properly with Zephyr:
|
||||
|
||||
You can build and flash the examples to make sure Zephyr is running correctly on
|
||||
your board. The button and LED definitions can be found in
|
||||
:zephyr_file:`boards/arm/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dtsi`.
|
||||
:zephyr_file:`boards/sparkfun/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dtsi`.
|
||||
|
||||
References
|
||||
**********
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: sparkfun_thing_plus_nrf9160
|
||||
identifier: sparkfun_thing_plus/nrf9160
|
||||
name: Sparkfun-Thing-Plus-nRF9160
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_NRF91X=y
|
||||
CONFIG_SOC_NRF9160_SICA=y
|
||||
CONFIG_BOARD_SPARKFUN_THING_PLUS_NRF9160=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
@@ -13,10 +9,10 @@ CONFIG_ARM_TRUSTZONE_M=y
|
||||
# Hardware stack protection
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
|
||||
# Enable uart driver
|
||||
# Enable UART driver
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
# enable console
|
||||
# Enable console
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
identifier: sparkfun_thing_plus_nrf9160_ns
|
||||
identifier: sparkfun_thing_plus/nrf9160/ns
|
||||
name: Sparkfun-Thing-Plus-nRF9160-Non-Secure
|
||||
type: mcu
|
||||
arch: arm
|
||||
@@ -1,9 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_NRF91X=y
|
||||
CONFIG_SOC_NRF9160_SICA=y
|
||||
CONFIG_BOARD_SPARKFUN_THING_PLUS_NRF9160_NS=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
@@ -16,10 +12,10 @@ CONFIG_TRUSTED_EXECUTION_NONSECURE=y
|
||||
# Hardware stack protection
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
|
||||
# Enable uart driver
|
||||
# Enable UART driver
|
||||
CONFIG_SERIAL=y
|
||||
|
||||
# enable console
|
||||
# Enable console
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
Reference in New Issue
Block a user