aspeed: Introduce a AspeedSoCClass 'boot_from_emmc' handler
authorCédric Le Goater <clg@kaod.org>
Wed, 17 Jul 2024 06:30:18 +0000 (08:30 +0200)
committerCédric Le Goater <clg@redhat.com>
Sun, 21 Jul 2024 05:46:38 +0000 (07:46 +0200)
commiteea55625df839813c66c5e2e8f41d9131d591f6c
tree408671ed4603349d3825d33f959ed2c31515b738
parentcc8bae6f6270c52c8f9854a83f9cefec3e5ec108
aspeed: Introduce a AspeedSoCClass 'boot_from_emmc' handler

Report support on the AST2600 SoC if the boot-from-eMMC HW strapping
bit is set at the board level. AST2700 also has support but it is not
yet ready in QEMU and others SoCs do not have support, so return false
always for these.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/arm/aspeed_ast2600.c
hw/arm/aspeed_soc_common.c
include/hw/arm/aspeed_soc.h