Skip to content

Split AST2400, AST2500, AST2600, AST2700 and AST1030 SoC machines into separate source files for maintainability

Jamin Lin via qemu-arm qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest30 patches 2 repliesIn review
  2. v330 patches 7 repliesSuperseded
  3. v217 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v116 patches1 replySuperseded

Changes in v4 from the cover letter

1. maintain :
Copyright 2016 IBM Corp.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/30hw/arm/aspeed: Move AspeedMachineState definition to common header for reusehw/arm/aspeed.c include/hw/arm/aspeed.h+12 -140 replies
2/30hw/arm/aspeed: Make aspeed_machine_class_init_cpus_defaults() globally accessiblehw/arm/aspeed.c include/hw/arm/aspeed.h+11 -10 replies
3/30hw/arm/aspeed: Export and rename create_pca9552() for reusehw/arm/aspeed.c include/hw/arm/aspeed.h+34 -220 replies
4/30hw/arm/aspeed: Rename and export create_pca9554() as aspeed_create_pca9554()hw/arm/aspeed.c include/hw/arm/aspeed.h+18 -40 replies
5/30hw/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+90 -660 replies
6/30hw/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+94 -720 replies
7/30hw/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+92 -620 replies
8/30hw/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+93 -620 replies
9/30hw/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+114 -820 replies
10/30hw/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+104 -820 replies
11/30hw/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+64 -430 replies
12/30hw/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+79 -330 replies
13/30hw/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+69 -460 replies
14/30hw/arm/aspeed: Split Quanta-Q71L machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2400_quanta-q71l.c hw/arm/meson.build+88 -670 replies
15/30hw/arm/aspeed: Split Supermicro X11 machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2400_supermicrox11.c hw/arm/meson.build+83 -370 replies
16/30hw/arm/aspeed: Split Palmetto machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2400_palmetto.c hw/arm/meson.build+82 -600 replies
17/30hw/arm/aspeed: Move ASPEED_RAM_SIZE() macro to common header for reusehw/arm/aspeed.c include/hw/arm/aspeed.h+7 -70 replies
18/30hw/arm/aspeed: Split Bletchley machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_bletchley.c hw/arm/meson.build+99 -770 replies
19/30hw/arm/aspeed: Split FBY35 BMC machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_fby35.c hw/arm/aspeed_eeprom.c +2 more+180 -1600 replies
20/30hw/arm/aspeed: Split Fuji machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_fuji.c hw/arm/meson.build+142 -1170 replies
21/30hw/arm/aspeed: Split QCOM Firework machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_qcom-firework.c hw/arm/meson.build+93 -570 replies
22/30hw/arm/aspeed: Split QCOM DC-SCM V1 machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_qcom-dc-scm-v1.c hw/arm/meson.build+57 -360 replies
23/30hw/arm/aspeed: Make aspeed_machine_ast2600_class_emmc_init() a common API for eMMC boot setuphw/arm/aspeed.c include/hw/arm/aspeed.h+11 -10 replies
24/30hw/arm/aspeed: Split GB200NVL machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_gb200nvl.c hw/arm/aspeed_eeprom.c +2 more+113 -950 replies
25/30hw/arm/aspeed: Split Rainier machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_rainier.c hw/arm/aspeed_eeprom.c +2 more+200 -2030 replies
26/30hw/arm/aspeed: Split Catalina machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_catalina.c hw/arm/meson.build+227 -2050 replies
27/30hw/arm/aspeed: Split AST2600 EVB machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast2600_evb.c hw/arm/meson.build+67 -440 replies
28/30hw/arm/aspeed: Split AST2700 EVB machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast27x0_evb.c hw/arm/meson.build+90 -750 replies
29/30hw/arm/aspeed: Rename and export connect_serial_hds_to_uarts() as aspeed_connect_serial_hds_to_uarts()hw/arm/aspeed.c include/hw/arm/aspeed.h+17 -30 replies
30/30hw/arm/aspeed: Split AST1030 EVB machine into a separate source file for maintainabilityhw/arm/aspeed.c hw/arm/aspeed_ast10x0_evb.c hw/arm/meson.build+110 -890 replies

Reviews trailers per patch

12 of 30 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCédric Le Goater
SeriesR-b R-b
1/30R-b
2/30R-b
3/30R-b
4/30
5/30R-b
6/30R-b
7/30R-b
8/30R-b
9/30R-b
10/30R-b
11/30R-b
12/30R-b
13/30R-b
14/30
15/30
16/30
17/30
18/30
19/30
20/30
21/30
22/30
23/30
24/30
25/30
26/30
27/30
28/30
29/30
30/30

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

Read the v4 thread

Cover letter [PATCH v4 00/30] Split AST2400, AST2500, AST2600, AST2700 and AST1030 SoC machines into separate source files for maintainability

v1:
1. Split each Aspeed machine into its own source file for better readability and maintainability:
- Quanta-Q71L
- Supermicro X11
- Palmetto
- Bletchley
- fby35 BMC
- Facebook Fuji
- QCOM Firework
- QCOM DC-SCM V1
- GB200NVL
- Rainier
- Catalina
- AST2600 EVB
- AST2700 EVB
- AST1030 EVB
2. Make aspeed_machine_ast2600_class_emmc_init() a shared API for eMMC boot setup.
3. Promote connect_serial_hds_to_uarts() to a public machine API for reuse across platforms.

v2:
1. Restore ASPEED_RAM_SIZE() macro

v3:
1. Merged AST2500 SoC machine changes into this patch series. Split each AST2500 machine into its own source file:
- FP5280G2
- G220A
- Tiogapass
- YosemiteV2
- Witherspoon
- Sonorapass
- Romulus
- Supermicro X11SPI
- AST2500 EVB
2. Renamed common API functions with the aspeed_ prefix for consistency.
3. Added detailed descriptions for the common API functions.

v4:
1. maintain :
Copyright 2016 IBM Corp.

in the new files since the code is copied from aspeed.c
2. Use I2C instead of I2C

Jamin Lin (30):
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: Export and rename create_pca9552() for reuse hw/arm/aspeed: Rename and export create_pca9554() as

    aspeed_create_pca9554()

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: Split Quanta-Q71L machine into a separate source file
for maintainability
hw/arm/aspeed: Split Supermicro X11 machine into a separate source
file for maintainability
hw/arm/aspeed: Split Palmetto machine into a separate source file for
maintainability
hw/arm/aspeed: Move ASPEED_RAM_SIZE() macro to common header for reuse hw/arm/aspeed: Split Bletchley machine into a separate source file for
maintainability
hw/arm/aspeed: Split FBY35 BMC machine into a separate source file for
maintainability
hw/arm/aspeed: Split Fuji machine into a separate source file for
maintainability
hw/arm/aspeed: Split QCOM Firework machine into a separate source file
for maintainability
hw/arm/aspeed: Split QCOM DC-SCM V1 machine into a separate source
file for maintainability
hw/arm/aspeed: Make aspeed_machine_ast2600_class_emmc_init() a common
API for eMMC boot setup
hw/arm/aspeed: Split GB200NVL machine into a separate source file for
maintainability
hw/arm/aspeed: Split Rainier machine into a separate source file for
maintainability
hw/arm/aspeed: Split Catalina machine into a separate source file for
maintainability
hw/arm/aspeed: Split AST2600 EVB machine into a separate source file
for maintainability
hw/arm/aspeed: Split AST2700 EVB machine into a separate source file
for maintainability
hw/arm/aspeed: Rename and export connect_serial_hds_to_uarts() as
aspeed_connect_serial_hds_to_uarts()
hw/arm/aspeed: Split AST1030 EVB machine into a separate source file
for maintainability

 hw/arm/aspeed_eeprom.h                    |   32 -
 include/hw/arm/aspeed.h                   |   79 +
 hw/arm/aspeed.c                           | 1678 +--------------------
 hw/arm/aspeed_ast10x0_evb.c               |  109 ++
 hw/arm/aspeed_ast2400_palmetto.c          |   81 +
 hw/arm/aspeed_ast2400_quanta-q71l.c       |   87 ++
 hw/arm/aspeed_ast2400_supermicrox11.c     |   82 +
 hw/arm/aspeed_ast2500_evb.c               |   68 +
 hw/arm/aspeed_ast2500_fp5280g2.c          |   89 ++
 hw/arm/aspeed_ast2500_g220a.c             |   93 ++
 hw/arm/aspeed_ast2500_romulus.c           |   63 +
 hw/arm/aspeed_ast2500_sonorapass.c        |  103 ++
 hw/arm/aspeed_ast2500_supermicro-x11spi.c |   78 +
 hw/arm/aspeed_ast2500_tiogapass.c         |   91 ++
 hw/arm/aspeed_ast2500_witherspoon.c       |  113 ++
 hw/arm/aspeed_ast2500_yosemitev2.c        |   92 ++
 hw/arm/aspeed_ast2600_bletchley.c         |   98 ++
 hw/arm/aspeed_ast2600_catalina.c          |  226 +++
 hw/arm/aspeed_ast2600_evb.c               |   66 +
 hw/arm/aspeed_ast2600_fby35.c             |  179 +++
 hw/arm/aspeed_ast2600_fuji.c              |  141 ++
 hw/arm/aspeed_ast2600_gb200nvl.c          |  112 ++
 hw/arm/aspeed_ast2600_qcom-dc-scm-v1.c    |   56 +
 hw/arm/aspeed_ast2600_qcom-firework.c     |   92 ++
 hw/arm/aspeed_ast2600_rainier.c           |  199 +++
 hw/arm/aspeed_ast27x0_evb.c               |   89 ++
 hw/arm/aspeed_eeprom.c                    |  192 ---
 hw/arm/meson.build                        |   24 +-
 28 files changed, 2515 insertions(+), 1897 deletions(-)
 delete mode 100644 hw/arm/aspeed_eeprom.h
 create mode 100644 hw/arm/aspeed_ast10x0_evb.c
 create mode 100644 hw/arm/aspeed_ast2400_palmetto.c
 create mode 100644 hw/arm/aspeed_ast2400_quanta-q71l.c
 create mode 100644 hw/arm/aspeed_ast2400_supermicrox11.c
 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
 create mode 100644 hw/arm/aspeed_ast2600_bletchley.c
 create mode 100644 hw/arm/aspeed_ast2600_catalina.c
 create mode 100644 hw/arm/aspeed_ast2600_evb.c
 create mode 100644 hw/arm/aspeed_ast2600_fby35.c
 create mode 100644 hw/arm/aspeed_ast2600_fuji.c
 create mode 100644 hw/arm/aspeed_ast2600_gb200nvl.c
 create mode 100644 hw/arm/aspeed_ast2600_qcom-dc-scm-v1.c
 create mode 100644 hw/arm/aspeed_ast2600_qcom-firework.c
 create mode 100644 hw/arm/aspeed_ast2600_rainier.c
 create mode 100644 hw/arm/aspeed_ast27x0_evb.c
 delete mode 100644 hw/arm/aspeed_eeprom.c
Signature · 1 line
2.43.0