[PATCH 2/4] lib: utils/timer: mtimer: add Nuclei UX900 compatible

Zhuxu Ran zhuxu_ran at zohomail.com
Wed Dec 2 06:30:34 PST 2026


The timer unit in the Nuclei UX900 is compliant with the ACLINT
specification. Add the compatible string and quirks for its MTIMER part,
which only support aligned read and write access with WORD size [1].

Link: https://www.nucleisys.com/upload/files/doc/Nuclei_RISC-V_ISA_Spec.pdf [1]

Signed-off-by: Zhuxu Ran <zhuxu_ran at zohomail.com>
---
 lib/utils/timer/fdt_timer_mtimer.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/utils/timer/fdt_timer_mtimer.c b/lib/utils/timer/fdt_timer_mtimer.c
index d5520fad..12cb872f 100644
--- a/lib/utils/timer/fdt_timer_mtimer.c
+++ b/lib/utils/timer/fdt_timer_mtimer.c
@@ -156,6 +156,10 @@ static const struct timer_mtimer_quirks thead_aclint_quirks = {
 	.has_64bit_mmio		= false,
 };
 
+static const struct timer_mtimer_quirks nuclei_aclint_quirks = {
+	.has_64bit_mmio		= false,
+};
+
 static const struct fdt_match timer_mtimer_match[] = {
 	{ .compatible = "mips,p8700-aclint-mtimer" },
 	{ .compatible = "riscv,clint0", .data = &sifive_clint_quirks },
@@ -164,6 +168,8 @@ static const struct fdt_match timer_mtimer_match[] = {
 	{ .compatible = "thead,c900-clint", .data = &thead_clint_quirks },
 	{ .compatible = "thead,c900-aclint-mtimer",
 	  .data = &thead_aclint_quirks },
+	{ .compatible = "nuclei,ux900-aclint-mtimer",
+	  .data = &nuclei_aclint_quirks },
 	{ .compatible = "riscv,aclint-mtimer" },
 	{ },
 };

-- 
2.56.1




More information about the opensbi mailing list