Christian Walter uploaded patch set #3 to the change originally created by Patrick Rudolph.
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.