summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2020-04-24 15:21:34 +0530
committerAnup Patel <[email protected]>2020-05-01 09:36:13 +0530
commit01a8c8eebb6f219afb3873fce82a11a7cf49a03e (patch)
treeaf88966d45c52d7a5a919bb35dc647e3ca30d3b3 /include
parente6c1345f89f0c2fa5d8b0dde733eb80366056632 (diff)
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 <[email protected]> Reviewed-by: Atish Patra <[email protected]> Reviewed-by: Alistair Francis <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h2
1 files changed, 2 insertions, 0 deletions
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 {