boot: Pass the correct FDT to the EVT_FT_FIXUP event
authorSimon Glass <sjg@chromium.org>
Tue, 11 Oct 2022 15:47:15 +0000 (09:47 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:13 +0000 (21:17 -0600)
commit33ba72700b586babfad7f5ef1e408b6b399fe0ec
tree7472327c1a61f45e29ce7952d5a770354919aa15
parent0718c3154c428b694bff94fab178bc2c43ce3ff9
boot: Pass the correct FDT to the EVT_FT_FIXUP event

Now that we support multiple device trees with the ofnode interface, we
can pass the correct FDT to this event. This allows the 'working' FDT to
be fixed up, as expected, so long as OFNODE_MULTI_TREE is enabled.

Also make sure we don't try to do this with livetree, which does not
support fixups yet.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/image-fdt.c