mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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:
parent
829d51246f
commit
b215b6034c
2 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue