Skip to content

Commit 99fecb2

Browse files
henrikbrixandersenkartben
authored andcommitted
boards: others: neorv32: default to reading clock frequency at boot
Default to reading the clock frequency from SYSINFO at boot time to make the board compatible with a wider range of NEORV32 implementations. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 8a1ed6f commit 99fecb2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

boards/others/neorv32/doc/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ using :ref:`devicetree overlays <use-dt-overlays>`.
2727
System Clock
2828
============
2929

30-
The default board configuration assumes a system clock of 18 MHz. The clock
31-
frequency can be overridden by changing the ``clock-frequency`` property of the
32-
``cpu0`` devicetree node.
30+
The default board configuration reads the system clock frequency from the NEORV32 SYSINFO module,
31+
which results in a small run-time overhead. If the clock frequency is known at build time, this
32+
behavior can be overridden by setting the ``clock-frequency`` property of the ``cpu0`` devicetree
33+
node.
3334

3435
CPU
3536
===

boards/others/neorv32/neorv32.dts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
/dts-v1/;
88

99
#include <neorv32.dtsi>
10-
#include <freq.h>
1110
#include <mem.h>
1211

1312
/ {
@@ -56,7 +55,6 @@
5655

5756
&cpu0 {
5857
riscv,isa = "rv32im_zicsr_zifencei";
59-
clock-frequency = <DT_FREQ_M(18)>;
6058
};
6159

6260
&bootrom {

0 commit comments

Comments
 (0)