diff options
| author | Jamin Lin <jamin_lin@aspeedtech.com> | 2025-10-13 13:43:23 +0800 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-10-13 14:37:55 +0200 |
| commit | bbdd4167fa7ab8b27527e00214c3b903cf30a737 (patch) | |
| tree | 0058bde0a5662b7fc84266cab20a5b6a5ee7783c /scripts/lib/kdoc/kdoc_parser.py | |
| parent | 860204de8a49bc687b11b98fff460a984d9321ce (diff) | |
| download | qemu-bbdd4167fa7ab8b27527e00214c3b903cf30a737.zip qemu-bbdd4167fa7ab8b27527e00214c3b903cf30a737.tar.gz qemu-bbdd4167fa7ab8b27527e00214c3b903cf30a737.tar.bz2 | |
hw/arm/aspeed_ast27x0-tsp: Make AST27x0 TSP inherit from AspeedCoprocessor instead of AspeedSoC
Refactor the AST27x0 TSP implementation to derive from the newly introduced
AspeedCoprocessor base class rather than AspeedSoC. The AspeedSoC class
includes SoC-level infrastructure and peripheral definitions that are not
applicable to lightweight coprocessor subsystems such as TSP, resulting in
unnecessary coupling and complexity.
This change moves the Aspeed27x0TSPSoCState structure definition into
aspeed_coprocessor.h and updates all related references in
aspeed_ast27x0-tsp.c and aspeed_ast27x0-fc.c to use
AspeedCoprocessorState and AspeedCoprocessorClass.
Key updates include:
- Replace inheritance from AspeedSoC -> AspeedCoprocessor.
- Update type casts and macros from ASPEED_SOC_* to ASPEED_COPROCESSOR_*
This refactor improves modularity, reduces memory footprint, and prepares
for future coprocessor variants to share a lighter-weight common base.
No functional change.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20251013054334.955331-12-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions
