aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-03-27 19:57:35 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2021-04-08 15:37:29 +0800
commit9c02e50fa10982a9500503a0075307179d481388 (patch)
tree528a7ef171c0fdab3a87d6d2467036652487e36c
parent8f0dc4cfd106edbb8f8efb4583b33ecd52610e6c (diff)
downloadu-boot-9c02e50fa10982a9500503a0075307179d481388.zip
u-boot-9c02e50fa10982a9500503a0075307179d481388.tar.gz
u-boot-9c02e50fa10982a9500503a0075307179d481388.tar.bz2
timer: sifive_clint: 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: Leo Yu-Chi Liang <ycliang@andestech.com>
-rw-r--r--drivers/timer/sifive_clint_timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/timer/sifive_clint_timer.c b/drivers/timer/sifive_clint_timer.c
index de7b4b9..939b99d 100644
--- a/drivers/timer/sifive_clint_timer.c
+++ b/drivers/timer/sifive_clint_timer.c
@@ -54,6 +54,7 @@ static int sifive_clint_probe(struct udevice *dev)
static const struct udevice_id sifive_clint_ids[] = {
{ .compatible = "riscv,clint0" },
+ { .compatible = "sifive,clint0" },
{ }
};