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:
committed by
Carles Cufi
parent
b9e06f4c38
commit
330fc38f9f
@@ -1,5 +0,0 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_HIFIVE1
|
||||
bool "HiFive1 target"
|
||||
depends on SOC_SIFIVE_FREEDOM_E340
|
||||
@@ -1,11 +1,8 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_HIFIVE1
|
||||
|
||||
config BOARD
|
||||
default "hifive1"
|
||||
if BOARD_HIFIVE1_FE310
|
||||
|
||||
config SYS_CLOCK_TICKS_PER_SEC
|
||||
default 128
|
||||
|
||||
endif
|
||||
endif # BOARD_HIFIVE1_FE310
|
||||
5
boards/sifive/hifive1/Kconfig.hifive1
Normal file
5
boards/sifive/hifive1/Kconfig.hifive1
Normal 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
|
||||
11
boards/sifive/hifive1/board.yml
Normal file
11
boards/sifive/hifive1/board.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
board:
|
||||
name: hifive1
|
||||
vendor: sifive
|
||||
socs:
|
||||
- name: fe310
|
||||
revision:
|
||||
format: letter
|
||||
default: "A"
|
||||
revisions:
|
||||
- name: "A"
|
||||
- name: "B"
|
||||
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
@@ -11,10 +11,12 @@ an FE310 RISC-V SoC.
|
||||
More information can be found on
|
||||
`SiFive's website <https://www.sifive.com/boards/hifive1>`_.
|
||||
|
||||
.. image:: img/hifive1.jpg
|
||||
.. figure:: img/hifive1.jpg
|
||||
:align: center
|
||||
:alt: SiFive HiFive1 board
|
||||
|
||||
SiFive HiFive1 board (image courtesy of SiFive)
|
||||
|
||||
Programming and debugging
|
||||
*************************
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
# 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_SERIAL=y
|
||||
CONFIG_UART_SIFIVE_PORT_0=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_PINCTRL=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_QEMU_ICOUNT_SHIFT=6
|
||||
CONFIG_BUILD_OUTPUT_HEX=y
|
||||
10
boards/sifive/index.rst
Normal file
10
boards/sifive/index.rst
Normal file
@@ -0,0 +1,10 @@
|
||||
.. _boards-sifive:
|
||||
|
||||
SiFive
|
||||
######
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:glob:
|
||||
|
||||
**/*
|
||||
Reference in New Issue
Block a user