diff options
author | Icenowy Zheng <uwu@icenowy.me> | 2022-12-12 11:22:36 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-12-17 08:31:00 +0300 |
commit | a8ee82cd8c008f09c91b5c307de4c9b37660ff71 (patch) | |
tree | 3e7f2e3026333fe8e1bd7ef37481de30946edcdd /lib | |
parent | 9a2eeb4aaeac9102a7db3676035d83394784c88b (diff) | |
download | opensbi-a8ee82cd8c008f09c91b5c307de4c9b37660ff71.tar.xz |
lib: utils/ipi: mswi: add T-Head C9xx CLINT compatible
Althoug the MTIMER part of a C9xx CLINT differs from a SiFive one, the
MSWI part is compliant.
Add T-Head C9xx CLINT compatible string to fdt_ipi_mswi code, sharing
the same codepath with SiFive CLINT.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/ipi/fdt_ipi_mswi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/ipi/fdt_ipi_mswi.c b/lib/utils/ipi/fdt_ipi_mswi.c index 0176941..4dc91f2 100644 --- a/lib/utils/ipi/fdt_ipi_mswi.c +++ b/lib/utils/ipi/fdt_ipi_mswi.c @@ -56,6 +56,7 @@ static const unsigned long clint_offset = CLINT_MSWI_OFFSET; static const struct fdt_match ipi_mswi_match[] = { { .compatible = "riscv,clint0", .data = &clint_offset }, { .compatible = "sifive,clint0", .data = &clint_offset }, + { .compatible = "thead,c900-clint", .data = &clint_offset }, { .compatible = "riscv,aclint-mswi" }, { }, }; |