diff options
| author | Cédric Le Goater <clg@kaod.org> | 2024-07-17 08:30:18 +0200 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2024-07-21 07:46:38 +0200 |
| commit | eea55625df839813c66c5e2e8f41d9131d591f6c (patch) | |
| tree | 408671ed4603349d3825d33f959ed2c31515b738 /include/hw/arm/aspeed_soc.h | |
| parent | cc8bae6f6270c52c8f9854a83f9cefec3e5ec108 (diff) | |
| download | focaccia-qemu-eea55625df839813c66c5e2e8f41d9131d591f6c.tar.gz focaccia-qemu-eea55625df839813c66c5e2e8f41d9131d591f6c.zip | |
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>
Diffstat (limited to 'include/hw/arm/aspeed_soc.h')
| -rw-r--r-- | include/hw/arm/aspeed_soc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h index 849ba37f95..624d489e0d 100644 --- a/include/hw/arm/aspeed_soc.h +++ b/include/hw/arm/aspeed_soc.h @@ -164,6 +164,7 @@ struct AspeedSoCClass { const hwaddr *memmap; uint32_t num_cpus; qemu_irq (*get_irq)(AspeedSoCState *s, int dev); + bool (*boot_from_emmc)(AspeedSoCState *s); }; const char *aspeed_soc_cpu_type(AspeedSoCClass *sc); |