aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-03-27 13:05:25 +0800
committerAnup Patel <anup@brainfault.org>2021-04-01 10:26:41 +0530
commit9190ad12f7053497f2bd06af29f25015f7890278 (patch)
tree52dc698afe79eaab0dbbcbdbc4583c4cb12ceac4 /lib
parentbfc85c70e7517dc633b74e33768247b4df6a661c (diff)
downloadopensbi-9190ad12f7053497f2bd06af29f25015f7890278.zip
opensbi-9190ad12f7053497f2bd06af29f25015f7890278.tar.gz
opensbi-9190ad12f7053497f2bd06af29f25015f7890278.tar.bz2
lib/utils: Support the official clint DT bindings
Linux kernel commit a2770b57d083 ("dt-bindings: timer: Add CLINT bindings") adds the official DT bindings for CLINT, which uses "sifive,clint0" as the compatible string. "riscv,clint0" is now legacy and has to be kept for backward compatibility of legacy systems. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/utils/ipi/fdt_ipi_clint.c1
-rw-r--r--lib/utils/timer/fdt_timer_clint.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils/ipi/fdt_ipi_clint.c b/lib/utils/ipi/fdt_ipi_clint.c
index e992440..e799fd7 100644
--- a/lib/utils/ipi/fdt_ipi_clint.c
+++ b/lib/utils/ipi/fdt_ipi_clint.c
@@ -36,6 +36,7 @@ static int ipi_clint_cold_init(void *fdt, int nodeoff,
static const struct fdt_match ipi_clint_match[] = {
{ .compatible = "riscv,clint0" },
+ { .compatible = "sifive,clint0" },
{ },
};
diff --git a/lib/utils/timer/fdt_timer_clint.c b/lib/utils/timer/fdt_timer_clint.c
index fe66708..6ba6c7b 100644
--- a/lib/utils/timer/fdt_timer_clint.c
+++ b/lib/utils/timer/fdt_timer_clint.c
@@ -38,6 +38,7 @@ static int timer_clint_cold_init(void *fdt, int nodeoff,
static const struct fdt_match timer_clint_match[] = {
{ .compatible = "riscv,clint0" },
+ { .compatible = "sifive,clint0" },
{ },
};