[PATCH v3 0/2] Use GCR.U timer device as clocksource
Aleksa Paunovic
aleksa.paunovic at htecgroup.com
Wed Apr 23 05:12:02 PDT 2025
HTEC Public
This series adds bindings for the GCR.U timer device and corresponding
driver support. Accessing the memory mapped mtime register in the GCR.U
region should be faster than trapping to M mode each time the timer
needs to be read.
Aleksa Paunovic (2):
dt-bindings: timer: mti,gcru
Allow for riscv-clock to pick up mmio address.
.../devicetree/bindings/timer/mti,gcru.yaml | 47 +++++++++++++++
arch/riscv/include/asm/timex.h | 59 ++++++++++++-------
drivers/clocksource/Kconfig | 12 ++++
drivers/clocksource/timer-riscv.c | 32 ++++++++++
4 files changed, 130 insertions(+), 20 deletions(-)
create mode 100644 Documentation/devicetree/bindings/timer/mti,gcru.yaml
--
2.34.1
More information about the linux-riscv
mailing list