From 01a8c8eebb6f219afb3873fce82a11a7cf49a03e Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Fri, 24 Apr 2020 15:21:34 +0530 Subject: lib: utils: Improve fdt_parse_uart8250() API The information parsed by fdt_parse_uart8250() API is not complete. We need to parse reg-shift and reg-io-width for UART 8520 as well. Signed-off-by: Anup Patel Reviewed-by: Atish Patra Reviewed-by: Alistair Francis --- include/sbi_utils/fdt/fdt_helper.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index 06b8a62a..d3cc791e 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -14,6 +14,8 @@ struct platform_uart_data { unsigned long addr; unsigned long freq; unsigned long baud; + unsigned long reg_shift; + unsigned long reg_io_width; }; struct platform_plic_data { -- cgit v1.3.1