]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: fdt_support: add support for "partitions" subnode to fdt_fixup_mtdparts()
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Thu, 3 Feb 2022 14:14:47 +0000 (15:14 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 11 Feb 2022 14:00:47 +0000 (09:00 -0500)
commit36fee2f7621eb2074be17bb0c4f8c950b0362c52
tree094f4a3e87f652b5eec168a3b10d25ff78b302cb
parent80d4c02b9324e7e0049582142474c9cc8630e27c
common: fdt_support: add support for "partitions" subnode to fdt_fixup_mtdparts()

Listing MTD partitions directly in the flash mode has been deprecated
for a while for kernel Device Trees. Look for a node "partitions" in the
found flash nodes and use it instead of the flash node itself for the
partition list when it exists, so Device Trees following the current
best practices can be fixed up.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c