From ce780d3787828d2058028d0b019ee7c9d640ff54 Mon Sep 17 00:00:00 2001 From: Shitalkumar Gandhi Date: Fri, 24 Sep 2021 20:46:22 +0530 Subject: [PATCH] hw/arm/aspeed:Added mmc boot support for AST2600 eMMC image. This patch has been added to boot eMMC image for AST2600 machine on QEMU. Run quemu as follows: ./qemu-system-arm -m 1G -M ast2600-evb -nographic -drive file=mmc-evb-ast2600.img,format=raw,if=sd,index=2 Tested: Booted AST2600 eMMC image on QEMU. Signed-off-by: Shitalkumar Gandhi --- hw/arm/aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 01c1747972416..8a58a9c827d15 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -158,7 +158,7 @@ struct AspeedMachineState { SCU_AST2400_HW_STRAP_BOOT_MODE(AST2400_SPI_BOOT)) /* AST2600 evb hardware value */ -#define AST2600_EVB_HW_STRAP1 0x000000C0 +#define AST2600_EVB_HW_STRAP1 (0x000000C0 | AST26500_HW_STRAP_BOOT_SRC_EMMC) #define AST2600_EVB_HW_STRAP2 0x00000003 /* Tacoma hardware value */