summaryrefslogtreecommitdiff
path: root/include/sbi_utils/fdt/fdt_helper.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2021-09-14 18:35:42 +0300
committerAnup Patel <anup@brainfault.org>2021-09-26 17:22:07 +0300
commit72154f4708de79816f0178b16223afa352b20e30 (patch)
treea1800b08659ab8da4fa9dc0da63aaca26d806259 /include/sbi_utils/fdt/fdt_helper.h
parent51113fe2a5ac6b5a712f2e5393347bf24194c09b (diff)
downloadopensbi-72154f4708de79816f0178b16223afa352b20e30.tar.xz
lib: utils/fdt: Add fdt_parse_timebase_frequency() function
We add fdt_parse_timebase_frequency() function which can be used by ACLINT mtimer driver and platform code to get timebase frequency. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Xiang W <wxjstz@126.com>
Diffstat (limited to 'include/sbi_utils/fdt/fdt_helper.h')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 2246254..5cb7340 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -50,6 +50,8 @@ int fdt_parse_hart_id(void *fdt, int cpu_offset, u32 *hartid);
int fdt_parse_max_hart_id(void *fdt, u32 *max_hartid);
+int fdt_parse_timebase_frequency(void *fdt, unsigned long *freq);
+
int fdt_parse_gaisler_uart_node(void *fdt, int nodeoffset,
struct platform_uart_data *uart);