]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: clint: Update the sifive clint ipi driver to support aclint
authorBin Meng <bmeng@tinylab.org>
Wed, 21 Jun 2023 15:11:45 +0000 (23:11 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 12 Jul 2023 05:21:40 +0000 (13:21 +0800)
commit7f1a30fdeb6b51ddeb8ca8ecbfcc8069721db186
tree53e0539fb16d607724abcbc5b39a0e9cd4d1666d
parent5764acb2617658af76c25285685e791ce6d0b051
riscv: clint: Update the sifive clint ipi 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 ipi driver to
support ACLINT mswi device, by checking the per-driver data field of
the ACLINT mtimer driver to determine whether a syscon based approach
needs to be taken to get the base address of the ACLINT mswi device.

[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>
arch/riscv/Kconfig
arch/riscv/lib/sifive_clint.c