From 60e2e27db51df2b819ad10521a0821544f2f8ce0 Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Thu, 26 Mar 2020 12:52:06 +0000 Subject: fdt/wrappers: Introduce code to find UART DT node The stdout-path property in the /chosen node of a DTB points to a device node, which is used for boot console output. On most (if not all) ARM based platforms this is the debug UART. The ST platform code contains a function to parse this property and chase down eventual aliases to learn the node offset of this UART node. Introduce a slightly more generalised version of this ST platform function in the generic fdt_wrappers code. This will be useful for other platforms as well. Change-Id: Ie6da47ace7833861b5e35fe8cba49835db3659a5 Signed-off-by: Andre Przywara --- plat/arm/board/fvp/jmptbl.i | 2 ++ plat/arm/board/juno/jmptbl.i | 3 +++ 2 files changed, 5 insertions(+) (limited to 'plat/arm/board') diff --git a/plat/arm/board/fvp/jmptbl.i b/plat/arm/board/fvp/jmptbl.i index c656c7938..213a9749d 100644 --- a/plat/arm/board/fvp/jmptbl.i +++ b/plat/arm/board/fvp/jmptbl.i @@ -24,11 +24,13 @@ fdt fdt_setprop_inplace_namelen_partial fdt fdt_first_subnode fdt fdt_next_subnode fdt fdt_path_offset +fdt fdt_path_offset_namelen fdt fdt_subnode_offset fdt fdt_address_cells fdt fdt_size_cells fdt fdt_parent_offset fdt fdt_stringlist_search +fdt fdt_get_alias_namelen mbedtls mbedtls_asn1_get_alg mbedtls mbedtls_asn1_get_alg_null mbedtls mbedtls_asn1_get_bitstring_null diff --git a/plat/arm/board/juno/jmptbl.i b/plat/arm/board/juno/jmptbl.i index 213afd008..09017acdc 100644 --- a/plat/arm/board/juno/jmptbl.i +++ b/plat/arm/board/juno/jmptbl.i @@ -25,6 +25,9 @@ fdt fdt_first_subnode fdt fdt_next_subnode fdt fdt_parent_offset fdt fdt_stringlist_search +fdt fdt_get_alias_namelen +fdt fdt_path_offset +fdt fdt_path_offset_namelen mbedtls mbedtls_asn1_get_alg mbedtls mbedtls_asn1_get_alg_null mbedtls mbedtls_asn1_get_bitstring_null -- cgit v1.2.1