]> git.baikalelectronics.ru Git - uboot.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)
commit7c40efde0953fffb22d82e9e60ebdf18339e7e6f
tree094f4a3e87f652b5eec168a3b10d25ff78b302cb
parent7bbc0edd2cf8bb7f25c198da684fb057912e7846
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