diff options
| author | Inochi Amaoto <[email protected]> | 2023-12-27 08:46:11 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-12-27 11:57:33 +0530 |
| commit | ba29293dc947e13fa2e63de7ed289d7bb9b540f4 (patch) | |
| tree | bea7f6343a8320a81f81f7f17006b70f189b7cc0 /include/sbi_utils | |
| parent | 63e09ad3f77218e34fb6cc1df88bedde9b9f38cb (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/sbi_utils')
| -rw-r--r-- | include/sbi_utils/fdt/fdt_helper.h | 3 |
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); |
