mbox series

[v2,0/8] aspeed: Add boot from eMMC support (AST2600)

Message ID 20240717063022.549849-1-clg@redhat.com
Headers show
Series aspeed: Add boot from eMMC support (AST2600) | expand

Message

Cédric Le Goater July 17, 2024, 6:30 a.m. UTC
Hello,

This series enables boot from eMMC on the rainier-bmc machine, which
is the default behavior and also on the AST2600 EVB using a machine
option to change the default.

First 6 patches adjust the machine setup and HW strapping to boot from
eMMC, the last 2 are for the AST2600 EVB and are optional.

Thanks,

C.

Changes since v1:

 - Rebased on upstream, now that the eMMC device model is available
 - Rephrased commit logs
 - Fixed SCU prefix of bit definitions
 - Tuned 'boot-config' and 'boot-partition-size' eMMC properties

Cédric Le Goater (8):
  aspeed: Change type of eMMC device
  aspeed: Load eMMC first boot area as a boot rom
  aspeed/scu: Add boot-from-eMMC HW strapping bit for AST2600 SoC
  aspeed: Introduce a AspeedSoCClass 'boot_from_emmc' handler
  aspeed: Tune eMMC device properties to reflect HW strapping
  aspeed: Add boot-from-eMMC HW strapping bit to rainier-bmc machine
  aspeed: Introduce a 'hw_strap1' machine attribute
  aspeed: Introduce a 'boot-emmc' machine option

 docs/system/arm/aspeed.rst   |  2 ++
 include/hw/arm/aspeed_soc.h  |  1 +
 include/hw/misc/aspeed_scu.h |  4 +++
 hw/arm/aspeed.c              | 62 +++++++++++++++++++++++++++++++-----
 hw/arm/aspeed_ast2600.c      |  8 +++++
 hw/arm/aspeed_soc_common.c   |  7 ++++
 6 files changed, 76 insertions(+), 8 deletions(-)

Comments

Philippe Mathieu-Daudé July 17, 2024, 10:06 a.m. UTC | #1
On 17/7/24 08:30, Cédric Le Goater wrote:

> Cédric Le Goater (8):
>    aspeed: Change type of eMMC device
>    aspeed: Load eMMC first boot area as a boot rom
>    aspeed/scu: Add boot-from-eMMC HW strapping bit for AST2600 SoC
>    aspeed: Introduce a AspeedSoCClass 'boot_from_emmc' handler
>    aspeed: Tune eMMC device properties to reflect HW strapping
>    aspeed: Add boot-from-eMMC HW strapping bit to rainier-bmc machine
>    aspeed: Introduce a 'hw_strap1' machine attribute
>    aspeed: Introduce a 'boot-emmc' machine option

Series:
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Cédric Le Goater July 18, 2024, 4:18 p.m. UTC | #2
On 7/17/24 08:30, Cédric Le Goater wrote:
> Hello,
> 
> This series enables boot from eMMC on the rainier-bmc machine, which
> is the default behavior and also on the AST2600 EVB using a machine
> option to change the default.
> 
> First 6 patches adjust the machine setup and HW strapping to boot from
> eMMC, the last 2 are for the AST2600 EVB and are optional.
> 
> Thanks,
> 
> C.
> 
> Changes since v1:
> 
>   - Rebased on upstream, now that the eMMC device model is available
>   - Rephrased commit logs
>   - Fixed SCU prefix of bit definitions
>   - Tuned 'boot-config' and 'boot-partition-size' eMMC properties
> 
> Cédric Le Goater (8):
>    aspeed: Change type of eMMC device
>    aspeed: Load eMMC first boot area as a boot rom
>    aspeed/scu: Add boot-from-eMMC HW strapping bit for AST2600 SoC
>    aspeed: Introduce a AspeedSoCClass 'boot_from_emmc' handler
>    aspeed: Tune eMMC device properties to reflect HW strapping
>    aspeed: Add boot-from-eMMC HW strapping bit to rainier-bmc machine
>    aspeed: Introduce a 'hw_strap1' machine attribute
>    aspeed: Introduce a 'boot-emmc' machine option
> 
>   docs/system/arm/aspeed.rst   |  2 ++
>   include/hw/arm/aspeed_soc.h  |  1 +
>   include/hw/misc/aspeed_scu.h |  4 +++
>   hw/arm/aspeed.c              | 62 +++++++++++++++++++++++++++++++-----
>   hw/arm/aspeed_ast2600.c      |  8 +++++
>   hw/arm/aspeed_soc_common.c   |  7 ++++
>   6 files changed, 76 insertions(+), 8 deletions(-)
> 


Applied to aspeed-next.

Thanks,

C.