]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: timer: Update the sifive clint timer driver to support aclint
authorBin Meng <bmeng@tinylab.org>
Wed, 21 Jun 2023 15:11:44 +0000 (23:11 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 12 Jul 2023 05:21:40 +0000 (13:21 +0800)
commit5764acb2617658af76c25285685e791ce6d0b051
treedb44e07045cc57d1888f8efed317f5228f1423c1
parentc9745365f516a361be9cbe3568d2b8608084bbbf
riscv: timer: Update the sifive clint timer driver to support aclint

This RISC-V ACLINT specification [1] defines a set of memory mapped
devices which provide inter-processor interrupts (IPI) and timer
functionalities for each HART on a multi-HART RISC-V platform.

The RISC-V ACLINT specification is defined to be backward compatible
with the SiFive CLINT specification, however the device tree binding
is a new one. This change updates the sifive clint timer driver to
support ACLINT mtimer device, using a per-driver data field to hold
the mtimer offset to the base address encoded in the mtimer node.

[1] https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Rick Chen <rick@andestech.com>
drivers/timer/sifive_clint_timer.c
include/configs/qemu-riscv.h
include/configs/sifive-unleashed.h
include/configs/starfive-visionfive2.h