boards: convert SiFive HiFive1 to Zephyr HWMv2

This commit converts the SiFive HiFive1 board (`hifive1` target) to the
Zephyr Hardware Model v2.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
This commit is contained in:
Filip Kokosinski
2024-02-09 13:10:16 +01:00
committed by Carles Cufi
parent b9e06f4c38
commit 330fc38f9f
14 changed files with 31 additions and 15 deletions

View File

@@ -1,5 +0,0 @@
# SPDX-License-Identifier: Apache-2.0
config BOARD_HIFIVE1
bool "HiFive1 target"
depends on SOC_SIFIVE_FREEDOM_E340

View File

@@ -1,11 +1,8 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_HIFIVE1 if BOARD_HIFIVE1_FE310
config BOARD
default "hifive1"
config SYS_CLOCK_TICKS_PER_SEC config SYS_CLOCK_TICKS_PER_SEC
default 128 default 128
endif endif # BOARD_HIFIVE1_FE310

View File

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

View File

@@ -0,0 +1,11 @@
board:
name: hifive1
vendor: sifive
socs:
- name: fe310
revision:
format: letter
default: "A"
revisions:
- name: "A"
- name: "B"

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -11,10 +11,12 @@ an FE310 RISC-V SoC.
More information can be found on More information can be found on
`SiFive's website <https://www.sifive.com/boards/hifive1>`_. `SiFive's website <https://www.sifive.com/boards/hifive1>`_.
.. image:: img/hifive1.jpg .. figure:: img/hifive1.jpg
:align: center :align: center
:alt: SiFive HiFive1 board :alt: SiFive HiFive1 board
SiFive HiFive1 board (image courtesy of SiFive)
Programming and debugging Programming and debugging
************************* *************************

View File

@@ -1,13 +1,9 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
CONFIG_SOC_SERIES_SIFIVE_FREEDOM_E300=y
CONFIG_SOC_SIFIVE_FREEDOM_E340=y
CONFIG_BOARD_HIFIVE1=y
CONFIG_CONSOLE=y CONFIG_CONSOLE=y
CONFIG_SERIAL=y CONFIG_SERIAL=y
CONFIG_UART_SIFIVE_PORT_0=y CONFIG_UART_SIFIVE_PORT_0=y
CONFIG_UART_CONSOLE=y CONFIG_UART_CONSOLE=y
CONFIG_PINCTRL=y CONFIG_PINCTRL=y
CONFIG_GPIO=y CONFIG_GPIO=y
CONFIG_QEMU_ICOUNT_SHIFT=6
CONFIG_BUILD_OUTPUT_HEX=y CONFIG_BUILD_OUTPUT_HEX=y

10
boards/sifive/index.rst Normal file
View File

@@ -0,0 +1,10 @@
.. _boards-sifive:
SiFive
######
.. toctree::
:maxdepth: 1
:glob:
**/*