From 13d149fe09619b05136e502b64cd07151556bcf6 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 24 Nov 2020 08:57:19 +0100 Subject: [PATCH] boards/hifive1*: add renode configuration --- boards/hifive1/dist/board.resc | 24 ++++++++++++++++++++++++ boards/hifive1b/dist/board.resc | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 boards/hifive1/dist/board.resc create mode 100644 boards/hifive1b/dist/board.resc diff --git a/boards/hifive1/dist/board.resc b/boards/hifive1/dist/board.resc new file mode 100644 index 0000000000..0e90f854f2 --- /dev/null +++ b/boards/hifive1/dist/board.resc @@ -0,0 +1,24 @@ +:name: SiFive-FE310 +:description: This script runs the Sifive Hifive1 on RIOT. + +$name?="SiFive-FE310" + +using sysbus +mach create $name +machine LoadPlatformDescription @platforms/cpus/sifive-fe310.repl + +showAnalyzer uart0 + +cpu PerformanceInMips 320 + +sysbus Tag <0x10008000 4> "PRCI_HFROSCCFG" 0xFFFFFFFF +sysbus Tag <0x10008004 4> "PRCI_HFXOSCCFG" 0xFFFFFFFF +sysbus Tag <0x10008008 4> "PRCI_PLLCFG" 0xFFFFFFFF + +macro reset +""" + sysbus LoadELF $image_file +""" + +runMacro $reset +start diff --git a/boards/hifive1b/dist/board.resc b/boards/hifive1b/dist/board.resc new file mode 100644 index 0000000000..7c08b025a5 --- /dev/null +++ b/boards/hifive1b/dist/board.resc @@ -0,0 +1,24 @@ +:name: SiFive-FE310 +:description: This script runs the Sifive Hifive1b on RIOT. + +$name?="SiFive-FE310" + +using sysbus +mach create $name +machine LoadPlatformDescription @platforms/cpus/sifive-fe310.repl + +showAnalyzer uart0 + +cpu PerformanceInMips 320 + +sysbus Tag <0x10008000 4> "PRCI_HFROSCCFG" 0xFFFFFFFF +sysbus Tag <0x10008004 4> "PRCI_HFXOSCCFG" 0xFFFFFFFF +sysbus Tag <0x10008008 4> "PRCI_PLLCFG" 0xFFFFFFFF + +macro reset +""" + sysbus LoadELF $image_file +""" + +runMacro $reset +start