vbe: Allow VBE to load FITs on any architecture
authorSimon Glass <sjg@chromium.org>
Thu, 16 Jan 2025 01:27:12 +0000 (18:27 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 22 Jan 2025 15:47:49 +0000 (09:47 -0600)
At present the VBE implementation is limited to sandbox only. Adjust the
call to fit_image_load() to remove this limitation.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/vbe_common.c

index 5f45724..ecf4ad9 100644 (file)
@@ -178,7 +178,7 @@ int vbe_read_fit(struct udevice *blk, ulong area_offset, ulong area_size,
        fit_uname_config = NULL;
        log_debug("loading FIT\n");
        ret = fit_image_load(&images, addr, &fit_uname, &fit_uname_config,
-                            IH_ARCH_SANDBOX, image_ph(phase, IH_TYPE_FIRMWARE),
+                            IH_ARCH_DEFAULT, image_ph(phase, IH_TYPE_FIRMWARE),
                             BOOTSTAGE_ID_FIT_SPL_START, FIT_LOAD_IGNORED,
                             &load_addr, &len);
        if (ret < 0)