diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-04-25 16:20:37 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-01 07:10:31 +0300 |
commit | 66185b3ec9f103fef14e034550102a6f2a58bf57 (patch) | |
tree | 61a3bcc5b03d7b811b9d085b811698bc35ecc30d /include | |
parent | dd33b9e0a152699416ade045ad6f630432e7f968 (diff) | |
download | opensbi-66185b3ec9f103fef14e034550102a6f2a58bf57.tar.xz |
lib: utils: Add fdt_parse_sifive_uart_node() function
We add fdt_parse_sifive_uart_node() function which will allow
us to parse a particular DT node as SiFive UART node. This will
be useful in parsing the node pointed by stdout-path.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sbi_utils/fdt/fdt_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index a4ad1c1..3a15aca 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -37,6 +37,9 @@ int fdt_find_match(void *fdt, const struct fdt_match *match_table, int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr, unsigned long *size); +int fdt_parse_sifive_uart_node(void *fdt, int nodeoffset, + struct platform_uart_data *uart); + int fdt_parse_uart8250_node(void *fdt, int nodeoffset, struct platform_uart_data *uart); |