On 10/23/25 12:01, Jamin Lin wrote:
This commit moves the Romulus BMC machine implementation out of
aspeed.c into a new standalone file aspeed_ast2500_romulus.c.
The refactor continues the modularization of Aspeed platform
definitions, separating each board into its own C source file to
improve maintainability, readability, and reduce code clutter in
aspeed.c.
Key updates include:
- Moved ROMULUS_BMC_HW_STRAP1 definition to the new file.
- Moved romulus_bmc_i2c_init() and related I²C device setup.
- Moved aspeed_machine_romulus_class_init() and type registration
to aspeed_ast2500_romulus.c.
- Added the new file to the build system (meson.build).
- Removed all Romulus-specific code from aspeed.c.
No functional changes.
Signed-off-by: Jamin Lin <[email protected]>
---
hw/arm/aspeed.c | 42 -----------------------
hw/arm/aspeed_ast2500_romulus.c | 61 +++++++++++++++++++++++++++++++++
hw/arm/meson.build | 1 +
3 files changed, 62 insertions(+), 42 deletions(-)
create mode 100644 hw/arm/aspeed_ast2500_romulus.c
Reviewed-by: Cédric Le Goater <[email protected]>
Thanks,
C.