summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-12-15 20:14:14 -0700
committerTom Rini <trini@konsulko.com>2023-12-21 16:07:52 -0500
commitc2211ff65136c39d8d2aefa76803b5da737daf8c (patch)
treeb30e8a31d60675ae82bdfc2bec5592dc146d2289 /boot
parenta48336e5ea19ca0d32dfff1c4eaeececa8d2f570 (diff)
downloadu-boot-c2211ff65136c39d8d2aefa76803b5da737daf8c.tar.gz
u-boot-c2211ff65136c39d8d2aefa76803b5da737daf8c.tar.bz2
u-boot-c2211ff65136c39d8d2aefa76803b5da737daf8c.zip
bootm: Add more fields to bootm_info
Add fields for the three bootm parameters and other things needed for booting. Also add a helper to set up the struct correctly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/bootm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/boot/bootm.c b/boot/bootm.c
index f1c45c3806..9e42fa5117 100644
--- a/boot/bootm.c
+++ b/boot/bootm.c
@@ -1192,6 +1192,14 @@ int bootm_boot_start(ulong addr, const char *cmdline)
return ret;
}
+void bootm_init(struct bootm_info *bmi)
+{
+ memset(bmi, '\0', sizeof(struct bootm_info));
+ bmi->boot_progress = true;
+ if (IS_ENABLED(CONFIG_CMD_BOOTM))
+ bmi->images = &images;
+}
+
/**
* switch_to_non_secure_mode() - switch to non-secure mode
*