Files
zephyr/boards/sifive/hifive1/support/hifive1.resc
Filip Kokosinski 330fc38f9f 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>
2024-03-01 15:50:07 +01:00

29 lines
510 B
Plaintext

:description: This script is prepared to run Zephyr on SiFive-FE310 board.
:name: SiFive-FE310
$name?="SiFive-FE310"
set platform
"""
using "platforms/cpus/sifive-fe310.repl"
clint:
frequency: 16000000
"""
using sysbus
mach create $name
machine LoadPlatformDescriptionFromString $platform
sysbus Tag <0x10008000 4> "PRCI_HFROSCCFG" 0xFFFFFFFF
sysbus Tag <0x10008008 4> "PRCI_PLLCFG" 0xFFFFFFFF
cpu PerformanceInMips 320
showAnalyzer uart0
macro reset
"""
sysbus LoadELF $bin
"""
runMacro $reset