event: Pass the images to EVT_FT_FIXUP
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:26:58 +0000 (20:26 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 Sep 2022 20:07:58 +0000 (16:07 -0400)
Pass the boot images along as well, in case the fixups need to look at
them.

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

index ca51796..884e089 100644 (file)
@@ -669,6 +669,7 @@ int image_setup_libfdt(struct bootm_headers *images, void *blob,
                struct event_ft_fixup fixup;
 
                fixup.tree = oftree_default();
+               fixup.images = images;
                ret = event_notify(EVT_FT_FIXUP, &fixup, sizeof(fixup));
                if (ret) {
                        printf("ERROR: fdt fixup event failed: %d\n", ret);
index ff883ca..3e6dcbc 100644 (file)
@@ -60,9 +60,11 @@ union event_data {
         * struct event_ft_fixup - FDT fixup before booting
         *
         * @tree: tree to update
+        * @images: images which are being booted
         */
        struct event_ft_fixup {
                oftree tree;
+               struct bootm_headers *images;
        } ft_fixup;
 };