]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
fdt: Fix handling of paths with options in them
authorHans de Goede <hdegoede@redhat.com>
Mon, 20 Apr 2015 09:13:37 +0000 (11:13 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:31:33 +0000 (22:31 +0200)
commit4119573a0380fac5027da2eb5ba4f494d2629c60
treedd360d1a842922216ec0d2b98d2ad257916c8208
parentdc18ea3e0daa1ba1e01569191c406fef0b3ff4ef
fdt: Fix handling of paths with options in them

After syncing the sunxi dts files with the upstream kernel dm/fdt sunxi
builds would no longer boot.

The problem is that stdout-path is now set like this in the upstream dts
files: stdout-path = "serial0:115200n8". The use of options in of-paths,
either after an alias name, or after a full path, e.g. stdout-path =
"/soc@01c00000/serial@01c28000:115200", is standard of usage, but something
which the u-boot dts code so far did not handle.

This commit fixes this, adding support for both path formats.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
lib/libfdt/fdt_ro.c