aboutsummaryrefslogtreecommitdiff
path: root/include/sbi_utils/fdt/fdt_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi_utils/fdt/fdt_helper.h')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 079b619..42baeab 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -9,6 +9,26 @@
#ifndef __FDT_HELPER_H__
#define __FDT_HELPER_H__
+struct platform_uart_data {
+ unsigned long addr;
+ unsigned long freq;
+ unsigned long baud;
+};
+
+struct platform_plic_data {
+ unsigned long addr;
+ unsigned long num_src;
+};
+
+int fdt_parse_uart8250(void *fdt, struct platform_uart_data *uart,
+ const char *compatible);
+
+int fdt_parse_plic(void *fdt, struct platform_plic_data *plic,
+ const char *compatible);
+
+int fdt_parse_clint(void *fdt, unsigned long *clint_addr,
+ const char *compatible);
+
/**
* Fix up the CPU node in the device tree
*