diff --git a/lib/utils/timer/fdt_timer_clint.c b/lib/utils/timer/fdt_timer_clint.c index 0352e53..9fd9839 100644 --- a/lib/utils/timer/fdt_timer_clint.c +++ b/lib/utils/timer/fdt_timer_clint.c @@ -7,6 +7,7 @@ * Anup Patel */ +#include #include #include #include @@ -33,12 +34,16 @@ static int timer_clint_cold_init(void *fdt, int nodeoff, if (rc) return rc; + if (fdt_node_check_compatible(fdt, nodeoff, "thead,c900-clint") >= 0) + ct->has_64bit_mmio = FALSE; + return clint_cold_timer_init(ct, ctmaster); } static const struct fdt_match timer_clint_match[] = { { .compatible = "riscv,clint0" }, { .compatible = "sifive,clint0" }, + { .compatible = "thead,c900-clint" }, { }, };