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:
committed by
Carles Cufi
parent
95a1f96399
commit
6547845e9d
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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")
|
||||
5
boards/sparkfun/sparkfun_red_v_things_plus/board.yml
Normal file
5
boards/sparkfun/sparkfun_red_v_things_plus/board.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
board:
|
||||
name: sparkfun_red_v_things_plus
|
||||
vendor: SparkFun Electronics
|
||||
socs:
|
||||
- name: fe310
|
||||
|
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 214 KiB |
@@ -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
|
||||
Reference in New Issue
Block a user