boards: convert SparkFun RED-V Things Plus to Zephyr HWMv2

This commit converts the SparkFun RED-V Things Plus board
(`sparkfun_red_v_things_plus` target) to the Zephyr Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit is contained in:
Filip Kokosinski
2024-02-13 11:57:13 +01:00
committed by Carles Cufi
parent 95a1f96399
commit 6547845e9d
12 changed files with 24 additions and 29 deletions

View File

@@ -1,6 +0,0 @@
# Copyright (c) 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_SPARKFUN_RED_V_THINGS_PLUS
bool "SparkFun RED-V Things Plus board"
depends on SOC_SIFIVE_FREEDOM_E340

View File

@@ -1,14 +0,0 @@
# Copyright (c) 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_SIFIVE_FREEDOM_E300=y
CONFIG_SOC_SIFIVE_FREEDOM_E340=y
CONFIG_BOARD_SPARKFUN_RED_V_THINGS_PLUS=y
CONFIG_GPIO=y
CONFIG_PINCTRL=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_SIFIVE_PORT_0=y
CONFIG_UART_CONSOLE=y
CONFIG_RISCV_CORE_E31=y
CONFIG_BUILD_OUTPUT_HEX=y

View File

@@ -1,21 +1,17 @@
# Copyright (c) 2022 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0
if BOARD_SPARKFUN_RED_V_THINGS_PLUS
config BOARD
default "sparkfun_red_v_things_plus"
config SYS_CLOCK_TICKS_PER_SEC
default 128
config HAS_FLASH_LOAD_OFFSET
default y
config FLASH_BASE_ADDRESS
default $(dt_node_reg_addr_hex,/soc/spi@10014000,1)
config FLASH_LOAD_OFFSET
default 0x0
config SYS_CLOCK_TICKS_PER_SEC
default 128
config FLASH_BASE_ADDRESS
default $(dt_node_reg_addr_hex,/soc/spi@10014000,1)
endif
endif # BOARD_SPARKFUN_RED_V_THINGS_PLUS

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2024 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_SPARKFUN_RED_V_THINGS_PLUS
select SOC_SIFIVE_FREEDOM_FE310

View File

@@ -1,5 +1,6 @@
# Copyright (c) 2019 SiFive Inc.
# SPDX-License-Identifier: Apache-2.0
board_runner_args(jlink "--device=FE310")
board_runner_args(jlink "--iface=JTAG")
board_runner_args(jlink "--speed=4000")

View File

@@ -0,0 +1,5 @@
board:
name: sparkfun_red_v_things_plus
vendor: SparkFun Electronics
socs:
- name: fe310

View File

@@ -0,0 +1,8 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_GPIO=y
CONFIG_PINCTRL=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_SIFIVE_PORT_0=y
CONFIG_UART_CONSOLE=y