On 10/23/25 12:01, Jamin Lin wrote:
This commit moves the AST2500 EVB machine implementation out of
aspeed.c into a new standalone file aspeed_ast2500_evb.c.

This refactor continues the modularization effort for Aspeed platform
support, placing each board’s logic in its own dedicated source file.
It improves maintainability, readability, and simplifies future
development for new platforms without cluttering aspeed.c.

Key updates include:

- Moved AST2500_EVB_HW_STRAP1 macro definition into the new file.
- Moved ast2500_evb_i2c_init() I²C initialization logic.
- Moved aspeed_machine_ast2500_evb_class_init() and type registration.
- Added aspeed_ast2500_evb.c to the build system (meson.build).
- Removed all AST2500 EVB–specific code and macros from aspeed.c.

No functional changes.

Signed-off-by: Jamin Lin <[email protected]>
---
  hw/arm/aspeed.c             | 45 -------------------------
  hw/arm/aspeed_ast2500_evb.c | 66 +++++++++++++++++++++++++++++++++++++
  hw/arm/meson.build          |  1 +
  3 files changed, 67 insertions(+), 45 deletions(-)
  create mode 100644 hw/arm/aspeed_ast2500_evb.c




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

Thanks,

C.





Reply via email to