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>
This commit is contained in:
Anup Patel
2020-04-25 18:33:54 +05:30
committed by Anup Patel
parent 01a8c8eebb
commit 0a0093b0bc
2 changed files with 26 additions and 14 deletions

View File

@@ -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);