Christian Walter uploaded patch set #3 to the change originally created by Patrick Rudolph.

View Change

arch/riscv: Fix arch timer timebase

The arch timer uses a platform specific clock source.
Add a Kconfig that holds this clock frequency and use it to calculate
the time passed by.

Update Kconfig and Documentation with a TODO:
Implement bootblock FDT parser and read 'timebase-frequency' instead
of using a Kconfig.

Tested on qemu-system-riscv:
Fixes delays being ten times shorter as expected.

Change-Id: I2588149e2ee32130a2c41695c4c723b57d4fa827
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
---
M Documentation/arch/riscv/index.md
M src/arch/riscv/Kconfig
M src/arch/riscv/arch_timer.c
M src/soc/sifive/fu540/Kconfig
M src/soc/ucb/riscv/Kconfig
5 files changed, 35 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/97/33797/3

To view, visit change 33797. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I2588149e2ee32130a2c41695c4c723b57d4fa827
Gerrit-Change-Number: 33797
Gerrit-PatchSet: 3
Gerrit-Owner: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Reviewer: Christian Walter <christian.walter@9elements.com>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Gerrit-Reviewer: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Gerrit-Reviewer: Philipp Hug <philipp@hug.cx>
Gerrit-Reviewer: Xiang Wang <merle@hardenedlinux.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-Reviewer: ron minnich <rminnich@gmail.com>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-MessageType: newpatchset