Skip to content

Introduce AspeedCoprocessor class and base implementation

Jamin Lin via qemu-arm qemu-devel 3 versions – Applied

Status from this message: Applied to aspeed-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest16 patches 17 repliesApplied
  2. v216 patches 3 repliesSuperseded
  3. v116 patches 2 repliesSuperseded

Changes in v3 from the cover letter

1. Remove the aspeed_soc_get_irq and class get_irq hook

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/16hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_uart_first() APIhw/arm/aspeed.c hw/arm/aspeed_soc_common.c include/hw/arm/aspeed_soc.h+5 -51 reply
2/16hw/arm/aspeed: Remove AspeedSoCClass dependency from aspeed_uart_last() APIhw/arm/aspeed.c include/hw/arm/aspeed_soc.h+3 -31 reply
3/16hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_soc_uart_set_chr() APIhw/arm/aspeed.c hw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_soc_common.c +2 more+29 -131 reply
4/16hw/arm/aspeed: Remove AspeedSoCClass dependency from aspeed_soc_cpu_type() APIhw/arm/aspeed_ast10x0.c hw/arm/aspeed_ast2400.c hw/arm/aspeed_ast2600.c +5 more+15 -131 reply
5/16hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_mmio_map() APIhw/arm/aspeed_ast10x0.c hw/arm/aspeed_ast2400.c hw/arm/aspeed_ast2600.c +5 more+133 -1011 reply
6/16hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_mmio_map_unimplemented() APIhw/arm/aspeed_ast10x0.c hw/arm/aspeed_ast2400.c hw/arm/aspeed_ast2600.c +5 more+44 -301 reply
7/16hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_soc_uart_realize() APIhw/arm/aspeed_ast10x0.c hw/arm/aspeed_ast2400.c hw/arm/aspeed_ast2600.c +5 more+60 -311 reply
8/16hw/arm/aspeed: Remove the aspeed_soc_get_irq and class get_irq hookhw/arm/aspeed_ast10x0.c hw/arm/aspeed_ast2400.c hw/arm/aspeed_ast2600.c +5 more+55 -671 reply
9/16hw/arm/aspeed: Introduce AspeedCoprocessor class and base implementationhw/arm/aspeed_coprocessor_common.c hw/arm/meson.build include/hw/arm/aspeed_coprocessor.h+95 -11 reply
10/16hw/arm/aspeed_ast27x0-ssp: Make AST27x0 SSP inherit from AspeedCoprocessor instead of AspeedSoChw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_ast27x0-ssp.c hw/arm/meson.build +2 more+31 -351 reply
11/16hw/arm/aspeed_ast27x0-tsp: Make AST27x0 TSP inherit from AspeedCoprocessor instead of AspeedSoChw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_ast27x0-tsp.c hw/arm/meson.build +2 more+30 -341 reply
12/16hw/arm/aspeed_ast27x0-ssp: Change to use Aspeed27x0CoprocessorStatehw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_ast27x0-ssp.c include/hw/arm/aspeed_coprocessor.h+7 -71 reply
13/16hw/arm/aspeed_ast27x0-tsp: Change to use Aspeed27x0CoprocessorStatehw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_ast27x0-tsp.c include/hw/arm/aspeed_coprocessor.h+7 -151 reply
14/16hw/arm/aspeed_ast27x0-ssp: Rename type to TYPE_ASPEED27X0SSP_COPROCESSORhw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_ast27x0-ssp.c include/hw/arm/aspeed_coprocessor.h+10 -81 reply
15/16hw/arm/aspeed_ast27x0-tsp: Rename type to TYPE_ASPEED27X0TSP_COPROCESSORhw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_ast27x0-tsp.c include/hw/arm/aspeed_coprocessor.h+9 -81 reply
16/16hw/arm/aspeed_ast27x0-{ssp,tsp}: Fix coding stylehw/arm/aspeed_ast27x0-ssp.c hw/arm/aspeed_ast27x0-tsp.c+4 -21 reply

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by.

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

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

Read the v3 thread

Cover letter [PATCH v3 00/16] Introduce AspeedCoprocessor class and base implementation

v1:
1. Remove AspeedSoCState dependency from aspeed_uart_first, aspeed_uart_last, aspeed_soc_uart_set_chr, aspeed_soc_cpu_type, aspeed_mmio_map, aspeed_mmio_map_unimplemented, aspeed_soc_get_irq, and aspeed_soc_uart_realize APIs.
2. Introduce AspeedCoprocessor class and base implementation

v2:
1. Fix the "make check" failure.

v3:
1. Remove the aspeed_soc_get_irq and class get_irq hook

Jamin Lin (16):
hw/arm/aspeed: Remove AspeedSoCState dependency from
aspeed_uart_first() API
hw/arm/aspeed: Remove AspeedSoCClass dependency from
aspeed_uart_last() API
hw/arm/aspeed: Remove AspeedSoCState dependency from
aspeed_soc_uart_set_chr() API
hw/arm/aspeed: Remove AspeedSoCClass dependency from
aspeed_soc_cpu_type() API
hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_mmio_map()
API
hw/arm/aspeed: Remove AspeedSoCState dependency from
aspeed_mmio_map_unimplemented() API
hw/arm/aspeed: Remove AspeedSoCState dependency from
aspeed_soc_uart_realize() API
hw/arm/aspeed: Remove the aspeed_soc_get_irq and class get_irq hook hw/arm/aspeed: Introduce AspeedCoprocessor class and base
implementation
hw/arm/aspeed_ast27x0-ssp: Make AST27x0 SSP inherit from
AspeedCoprocessor instead of AspeedSoC
hw/arm/aspeed_ast27x0-tsp: Make AST27x0 TSP inherit from
AspeedCoprocessor instead of AspeedSoC
hw/arm/aspeed_ast27x0-ssp: Change to use Aspeed27x0CoprocessorState hw/arm/aspeed_ast27x0-tsp: Change to use Aspeed27x0CoprocessorState hw/arm/aspeed_ast27x0-ssp: Rename type to
TYPE_ASPEED27X0SSP_COPROCESSOR
hw/arm/aspeed_ast27x0-tsp: Rename type to
TYPE_ASPEED27X0TSP_COPROCESSOR
hw/arm/aspeed_ast27x0-{ssp,tsp}: Fix coding style

 include/hw/arm/aspeed_coprocessor.h |  61 ++++++++++++++
 include/hw/arm/aspeed_soc.h         |  48 +++--------
 hw/arm/aspeed.c                     |  10 ++-
 hw/arm/aspeed_ast10x0.c             |  89 ++++++++++++--------
 hw/arm/aspeed_ast2400.c             |  94 ++++++++++++---------
 hw/arm/aspeed_ast2600.c             | 121 ++++++++++++++++------------
 hw/arm/aspeed_ast27x0-fc.c          |  33 +++++---
 hw/arm/aspeed_ast27x0-ssp.c         |  74 +++++++++--------
 hw/arm/aspeed_ast27x0-tsp.c         |  74 +++++++++--------
 hw/arm/aspeed_ast27x0.c             | 107 +++++++++++++-----------
 hw/arm/aspeed_coprocessor_common.c  |  49 +++++++++++
 hw/arm/aspeed_soc_common.c          |  63 ++++++---------
 hw/arm/fby35.c                      |  10 ++-
 hw/arm/meson.build                  |   7 +-
 14 files changed, 502 insertions(+), 338 deletions(-)
 create mode 100644 include/hw/arm/aspeed_coprocessor.h
 create mode 100644 hw/arm/aspeed_coprocessor_common.c
Signature · 1 line
2.43.0