summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorInochi Amaoto <[email protected]>2023-12-27 08:46:11 +0800
committerAnup Patel <[email protected]>2023-12-27 11:57:33 +0530
commitba29293dc947e13fa2e63de7ed289d7bb9b540f4 (patch)
treebea7f6343a8320a81f81f7f17006b70f189b7cc0 /include
parent63e09ad3f77218e34fb6cc1df88bedde9b9f38cb (diff)
lib: utils/timer: mtimer: only use regname for aclint
The parser will fail if the timer is clint timer and has regname property. As the regname is only meaningful for aclint, it is more robust to only check regname for aclint timer. Fixes: 6112d58 ("lib: utils/fdt: Allow to use reg-names when parsing ACLINT") Signed-off-by: Inochi Amaoto <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 430d8180..ab4a80fa 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -99,7 +99,8 @@ int fdt_parse_plic_node(void *fdt, int nodeoffset, struct plic_data *plic);
int fdt_parse_plic(void *fdt, struct plic_data *plic, const char *compat);
-int fdt_parse_aclint_node(void *fdt, int nodeoffset, bool for_timer,
+int fdt_parse_aclint_node(void *fdt, int nodeoffset,
+ bool for_timer, bool allow_regname,
unsigned long *out_addr1, unsigned long *out_size1,
unsigned long *out_addr2, unsigned long *out_size2,
u32 *out_first_hartid, u32 *out_hart_count);