[PATCH v1 00/13] Split AST2500 SoC machines into separate source files for maintainability

Jamin Lin via posted 13 patches 3 weeks, 1 day ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251023100150.295370-1-jamin._5Flin@aspeedtech.com
Maintainers: "Cédric Le Goater" <clg@kaod.org>, Peter Maydell <peter.maydell@linaro.org>, Steven Lee <steven_lee@aspeedtech.com>, Troy Lee <leetroy@gmail.com>, Jamin Lin <jamin_lin@aspeedtech.com>, Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>
hw/arm/aspeed_eeprom.h                    |   7 -
include/hw/arm/aspeed.h                   |  17 +
hw/arm/aspeed.c                           | 508 +---------------------
hw/arm/aspeed_ast2500_evb.c               |  66 +++
hw/arm/aspeed_ast2500_fp5280g2.c          |  87 ++++
hw/arm/aspeed_ast2500_g220a.c             |  91 ++++
hw/arm/aspeed_ast2500_romulus.c           |  61 +++
hw/arm/aspeed_ast2500_sonorapass.c        | 101 +++++
hw/arm/aspeed_ast2500_supermicro-x11spi.c |  76 ++++
hw/arm/aspeed_ast2500_tiogapass.c         |  89 ++++
hw/arm/aspeed_ast2500_witherspoon.c       | 111 +++++
hw/arm/aspeed_ast2500_yosemitev2.c        |  90 ++++
hw/arm/aspeed_eeprom.c                    |  44 --
hw/arm/meson.build                        |   9 +
14 files changed, 801 insertions(+), 556 deletions(-)
create mode 100644 hw/arm/aspeed_ast2500_evb.c
create mode 100644 hw/arm/aspeed_ast2500_fp5280g2.c
create mode 100644 hw/arm/aspeed_ast2500_g220a.c
create mode 100644 hw/arm/aspeed_ast2500_romulus.c
create mode 100644 hw/arm/aspeed_ast2500_sonorapass.c
create mode 100644 hw/arm/aspeed_ast2500_supermicro-x11spi.c
create mode 100644 hw/arm/aspeed_ast2500_tiogapass.c
create mode 100644 hw/arm/aspeed_ast2500_witherspoon.c
create mode 100644 hw/arm/aspeed_ast2500_yosemitev2.c
[PATCH v1 00/13] Split AST2500 SoC machines into separate source files for maintainability
Posted by Jamin Lin via 3 weeks, 1 day ago
v1:
 1. Move "AspeedMachineState" definition to a shared header.
 2. Make common helper functions globally accessible.
 3. Split each AST2500 machine into its own source file:
   - FP5280G2
   - G220A
   - Tiogapass
   - YosemiteV2
   - Witherspoon
   - Sonorapass
   - Romulus
   - Supermicro X11SPI
   - AST2500 EVB
 
Jamin Lin (13):
  hw/arm/aspeed: Move AspeedMachineState definition to common header for
    reuse
  hw/arm/aspeed: Make aspeed_machine_class_init_cpus_defaults() globally
    accessible
  hw/arm/aspeed: Make create_pca9552() globally accessible for reuse
  hw/arm/aspeed: Make create_pca9554() available for use by other Aspeed
    machines
  hw/arm/aspeed: Split FP5280G2 machine into a separate source file for
    maintenance
  hw/arm/aspeed: Split G220A machine into a separate source file for
    better maintenance
  hw/arm/aspeed: Split Tiogapass machine into a separate source file for
    cleanup
  hw/arm/aspeed: Split YosemiteV2 machine into a separate source file
    for maintainability
  hw/arm/aspeed: Split Witherspoon machine into a separate source file
    for maintainability
  hw/arm/aspeed: Split Sonorapass machine into a separate source file
    for maintainability
  hw/arm/aspeed: Split Romulus machine into a separate source file for
    maintainability
  hw/arm/aspeed: Split Supermicro X11SPI machine into a separate file
    for maintainability
  hw/arm/aspeed: Split AST2500 EVB machine into a separate source file
    for maintainability

 hw/arm/aspeed_eeprom.h                    |   7 -
 include/hw/arm/aspeed.h                   |  17 +
 hw/arm/aspeed.c                           | 508 +---------------------
 hw/arm/aspeed_ast2500_evb.c               |  66 +++
 hw/arm/aspeed_ast2500_fp5280g2.c          |  87 ++++
 hw/arm/aspeed_ast2500_g220a.c             |  91 ++++
 hw/arm/aspeed_ast2500_romulus.c           |  61 +++
 hw/arm/aspeed_ast2500_sonorapass.c        | 101 +++++
 hw/arm/aspeed_ast2500_supermicro-x11spi.c |  76 ++++
 hw/arm/aspeed_ast2500_tiogapass.c         |  89 ++++
 hw/arm/aspeed_ast2500_witherspoon.c       | 111 +++++
 hw/arm/aspeed_ast2500_yosemitev2.c        |  90 ++++
 hw/arm/aspeed_eeprom.c                    |  44 --
 hw/arm/meson.build                        |   9 +
 14 files changed, 801 insertions(+), 556 deletions(-)
 create mode 100644 hw/arm/aspeed_ast2500_evb.c
 create mode 100644 hw/arm/aspeed_ast2500_fp5280g2.c
 create mode 100644 hw/arm/aspeed_ast2500_g220a.c
 create mode 100644 hw/arm/aspeed_ast2500_romulus.c
 create mode 100644 hw/arm/aspeed_ast2500_sonorapass.c
 create mode 100644 hw/arm/aspeed_ast2500_supermicro-x11spi.c
 create mode 100644 hw/arm/aspeed_ast2500_tiogapass.c
 create mode 100644 hw/arm/aspeed_ast2500_witherspoon.c
 create mode 100644 hw/arm/aspeed_ast2500_yosemitev2.c

-- 
2.43.0