lib: utils: consider ':' in stdout-path
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 28 May 2021 17:06:32 +0000 (19:06 +0200)
committerAnup Patel <anup@brainfault.org>
Wed, 2 Jun 2021 11:36:17 +0000 (17:06 +0530)
commit66c4fca532288c750681f33339016772b0ffbf2a
treeb8b187a802156646642492e24dd2fcec202c2c2e
parentd9ba6536d307f05a838e7c96cd20b0b7e43ec886
lib: utils: consider ':' in stdout-path

The value of the /chosen/stdout-path devicetree property is used to
determine the UART used by openSBI. According to the devicetree
specification the value may contain a hyphen, e.g.

chosen {
                stdout-path = "/serial@f00:115200";
        };

If the character ':' is present, it terminates the path of the device.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/utils/serial/fdt_serial.c