]> git.baikalelectronics.ru Git - arm-tf.git/commit
fdt/wrappers: Introduce code to find UART DT node
authorAndre Przywara <andre.przywara@arm.com>
Thu, 26 Mar 2020 12:52:06 +0000 (12:52 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 5 May 2020 14:36:51 +0000 (15:36 +0100)
commit60e2e27db51df2b819ad10521a0821544f2f8ce0
tree8dd9febc432f5657e73bad5d0c4939562a6d1dc2
parent7ad6d362016a875eaee0d227365b74acd464050b
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 <andre.przywara@arm.com>
common/fdt_wrappers.c
include/common/fdt_wrappers.h
plat/arm/board/fvp/jmptbl.i
plat/arm/board/juno/jmptbl.i