]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 ca51796322ddd6c81b42fe13a3088a60ab8d4022..884e089f2d89c39a328f037688fb9bfb6d29673b 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 ff883ca064ee9a2b84a12366c4ea21543639c926..3e6dcbc3dd62128d2e13ef6e6332914969211e63 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;
 };