[PATCH] xilinx: zynqmp: Save multiboot as variable
Michal Simek
michal.simek at xilinx.com
Thu Oct 21 08:59:35 CEST 2021
Save multiboot register as u-boot variable. And use it as primary source
for composing dfu_alt_info for capsule update. If variable is not defined
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
board/xilinx/zynqmp/zynqmp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index ed6c287df221..5fce74d6085a 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -658,6 +658,8 @@ int board_late_init(void)
if (ret)
return ret;
+ env_set_hex("multiboot", multi_boot());
+
bootmode = zynqmp_get_bootmode();
puts("Bootmode: ");
@@ -863,7 +865,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
memset(buf, 0, sizeof(buf));
- multiboot = multi_boot();
+ multiboot = env_get_hex("multiboot", multi_boot());
debug("Multiboot: %d\n", multiboot);
switch (zynqmp_get_bootmode()) {
--
2.33.1
More information about the U-Boot
mailing list