diff options
| author | Anup Patel <anup.patel@wdc.com> | 2020-04-25 18:33:54 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2020-05-01 09:36:13 +0530 |
| commit | 0a0093b0bc8671d3a00cf1bb71d56cabab9474e1 (patch) | |
| tree | b0c6feabcf0c1ce4d7cba42d45d15afad7e6b17b /include/sbi_utils | |
| parent | 01a8c8eebb6f219afb3873fce82a11a7cf49a03e (diff) | |
| download | opensbi-0a0093b0bc8671d3a00cf1bb71d56cabab9474e1.tar.gz opensbi-0a0093b0bc8671d3a00cf1bb71d56cabab9474e1.tar.bz2 opensbi-0a0093b0bc8671d3a00cf1bb71d56cabab9474e1.zip | |
lib: utils: Add fdt_parse_uart8250_node() function
We add fdt_parse_uart8250_node() function which will allow us
to parse a particular DT node as UART 8250 node. This will be
useful in parsing the node pointed by stdout-path.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi_utils')
| -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 d3cc791e..1fbc215e 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -23,6 +23,9 @@ struct platform_plic_data { unsigned long num_src; }; +int fdt_parse_uart8250_node(void *fdt, int nodeoffset, + struct platform_uart_data *uart); + int fdt_parse_uart8250(void *fdt, struct platform_uart_data *uart, const char *compatible); |
