aboutsummaryrefslogtreecommitdiff
path: root/include/common
diff options
context:
space:
mode:
authorMadhukar Pappireddy <madhukar.pappireddy@arm.com>2020-03-24 10:03:34 -0500
committerMadhukar Pappireddy <madhukar.pappireddy@arm.com>2020-05-20 21:41:50 -0500
commit447870bf0d6619c2e0f3afd483cc22834a3d7500 (patch)
tree39a36eaa1e1050b9fbf69db60f21c9668238b412 /include/common
parentf1a1653ce17861441383ae58a3df929cb521c9d8 (diff)
downloadtrusted-firmware-a-447870bf0d6619c2e0f3afd483cc22834a3d7500.tar.gz
plat/fvp: Support for extracting UART serial node info from DT
This patch introduces the populate function which leverages a new driver to extract base address and clk frequency properties of the uart serial node from HW_CONFIG device tree. This patch also introduces fdt helper API fdtw_translate_address() which helps in performing address translation. Change-Id: I053628065ebddbde0c9cb3aa93d838619f502ee3 Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Diffstat (limited to 'include/common')
-rw-r--r--include/common/fdt_wrappers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common/fdt_wrappers.h b/include/common/fdt_wrappers.h
index 382651e5d3..1d8da18235 100644
--- a/include/common/fdt_wrappers.h
+++ b/include/common/fdt_wrappers.h
@@ -34,4 +34,7 @@ int fdt_get_reg_props_by_name(const void *dtb, int node, const char *name,
uintptr_t *base, size_t *size);
int fdt_get_stdout_node_offset(const void *dtb);
+uint64_t fdtw_translate_address(const void *dtb, int bus_node,
+ uint64_t base_address);
+
#endif /* FDT_WRAPPERS_H */