summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-04-24 12:51:34 +0300
committerAnup Patel <anup@brainfault.org>2020-05-01 07:06:13 +0300
commit01a8c8eebb6f219afb3873fce82a11a7cf49a03e (patch)
treeaf88966d45c52d7a5a919bb35dc647e3ca30d3b3 /include
parente6c1345f89f0c2fa5d8b0dde733eb80366056632 (diff)
downloadopensbi-01a8c8eebb6f219afb3873fce82a11a7cf49a03e.tar.xz
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 <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
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 06b8a62..d3cc791 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 {