aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 57c47201..a5254930 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -10,6 +10,11 @@
#ifndef __FDT_HELPER_H__
#define __FDT_HELPER_H__
+struct fdt_match {
+ const char *compatible;
+ void *data;
+};
+
struct platform_uart_data {
unsigned long addr;
unsigned long freq;
@@ -23,6 +28,12 @@ struct platform_plic_data {
unsigned long num_src;
};
+const struct fdt_match *fdt_match_node(void *fdt, int nodeoff,
+ const struct fdt_match *match_table);
+
+int fdt_find_match(void *fdt, const struct fdt_match *match_table,
+ const struct fdt_match **out_match);
+
int fdt_parse_uart8250_node(void *fdt, int nodeoffset,
struct platform_uart_data *uart);