Skip to content

Split AST2500 SoC machines into separate source files for maintainability

Jamin Lin via qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 15 repliesIn review

Changes in v1 from the cover letter

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

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13hw/arm/aspeed: Move AspeedMachineState definition to common header for reusehw/arm/aspeed.c include/hw/arm/aspeed.h+14 -141 reply
2/13hw/arm/aspeed: Make aspeed_machine_class_init_cpus_defaults() globally accessiblehw/arm/aspeed.c include/hw/arm/aspeed.h+2 -11 reply
3/13hw/arm/aspeed: Make create_pca9552() globally accessible for reusehw/arm/aspeed.c include/hw/arm/aspeed.h+2 -13 replies
4/13hw/arm/aspeed: Make create_pca9554() available for use by other Aspeed machineshw/arm/aspeed.c include/hw/arm/aspeed.h+2 -11 reply
5/13hw/arm/aspeed: Split FP5280G2 machine into a separate source file for maintenancehw/arm/aspeed.c hw/arm/aspeed_ast2500_fp5280g2.c hw/arm/meson.build+88 -651 reply
6/13hw/arm/aspeed: Split G220A machine into a separate source file for better maintenancehw/arm/aspeed.c hw/arm/aspeed_ast2500_g220a.c hw/arm/meson.build+92 -711 reply
7/13hw/arm/aspeed: Split Tiogapass machine into a separate source file for cleanuphw/arm/aspeed.c hw/arm/aspeed_ast2500_tiogapass.c hw/arm/aspeed_eeprom.c +2 more+90 -611 reply
8/13hw/arm/aspeed: Split YosemiteV2 machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2500_yosemitev2.c hw/arm/aspeed_eeprom.c +2 more+91 -611 reply
9/13hw/arm/aspeed: Split Witherspoon machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2500_witherspoon.c hw/arm/meson.build+112 -811 reply
10/13hw/arm/aspeed: Split Sonorapass machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2500_sonorapass.c hw/arm/meson.build+102 -811 reply
11/13hw/arm/aspeed: Split Romulus machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2500_romulus.c hw/arm/meson.build+62 -421 reply
12/13hw/arm/aspeed: Split Supermicro X11SPI machine into a separate file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2500_supermicro-x11spi.c hw/arm/meson.build+77 -321 reply
13/13hw/arm/aspeed: Split AST2500 EVB machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2500_evb.c hw/arm/meson.build+67 -451 reply

Reviews trailers per patch

11 of 13 patches have a Reviewed-by or Acked-by.

PatchCédric Le Goater
1/13R-b
2/13R-b
3/13
4/13
5/13R-b
6/13R-b
7/13R-b
8/13R-b
9/13R-b
10/13R-b
11/13R-b
12/13R-b
13/13R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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
Signature · 1 line
2.43.0