event: Pass the images to EVT_FT_FIXUP

Pass the boot images along as well, in case the fixups need to look at
them.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2022-09-06 20:26:58 -06:00 committed by Tom Rini
parent 829d51246f
commit b215b6034c
2 changed files with 3 additions and 0 deletions

View 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);

View 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;
};