On 9/24/25 07:56, Jamin Lin wrote:
Introduces support for loading a vbootrom image into the dedicated vbootrom
memory region in the AST2700 Full Core machine.

Signed-off-by: Jamin Lin <[email protected]>
---
  hw/arm/aspeed_ast27x0-fc.c | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/hw/arm/aspeed_ast27x0-fc.c b/hw/arm/aspeed_ast27x0-fc.c
index 2e6036b192..b2d963e1fe 100644
--- a/hw/arm/aspeed_ast27x0-fc.c
+++ b/hw/arm/aspeed_ast27x0-fc.c
@@ -62,6 +62,7 @@ static void ast2700fc_ca35_init(MachineState *machine)
      Ast2700FCState *s = AST2700A1FC(machine);
      AspeedSoCState *soc;
      AspeedSoCClass *sc;
+    const char *bios_name = NULL;
      BlockBackend *fmc0 = NULL;
      DeviceState *dev = NULL;
      Error **errp = NULL;
@@ -133,6 +134,10 @@ static void ast2700fc_ca35_init(MachineState *machine)
          }
      }
+ /* VBOOTROM */
+    bios_name = machine->firmware ?: VBOOTROM_FILE_NAME;
+    aspeed_load_vbootrom(soc, bios_name, errp);
+
      arm_load_kernel(ARM_CPU(first_cpu), machine, &ast2700fc_board_info);
  }


Reviewed-by: Cédric Le Goater <[email protected]>

Thanks,

C.



Reply via email to