Skip to content

Add SSP/TSP power control and DRAM remap support for AST2700

Jamin Lin via qemu-arm qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 0 repliesNew
  2. v111 patches 11 repliesSuperseded

Changes in v2 from the cover letter

Fix "make check" failure caused by both AST2700 and AST1700 realizing the same TYPE_AST2700_SCU model.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11hw/arm/ast27x0: Move DRAM and SDMC initialization earlier to support memory aliasinghw/arm/aspeed_ast27x0.c+20 -200 replies
2/11hw/arm/ast27x0: Start SSP in powered-off state to match hardware behaviorhw/arm/aspeed_ast27x0-ssp.c+7 -00 replies
3/11hw/arm/ast27x0: Start TSP in powered-off state to match hardware behaviorhw/arm/aspeed_ast27x0-tsp.c+7 -00 replies
4/11hw/arm/ast27x0: Add DRAM alias for SSP SDRAM remaphw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_ast27x0-ssp.c hw/arm/aspeed_ast27x0.c +2 more+53 -20 replies
5/11hw/arm/ast27x0: Add DRAM alias for TSP SDRAM remaphw/arm/aspeed_ast27x0-fc.c hw/arm/aspeed_ast27x0-tsp.c hw/arm/aspeed_ast27x0.c +2 more+24 -10 replies
6/11hw/misc/aspeed_scu: Implement SSP reset and power-on control via SCU registershw/misc/aspeed_scu.c+107 -00 replies
7/11hw/misc/aspeed_scu: Implement TSP reset and power-on control via SCU registershw/misc/aspeed_scu.c+36 -10 replies
8/11hw/misc/aspeed_scu: Add SCU support for SSP SDRAM remaphw/misc/aspeed_scu.c+50 -00 replies
9/11hw/misc/aspeed_scu: Add SCU support for TSP SDRAM remaphw/misc/aspeed_scu.c+23 -00 replies
10/11tests/functional/aarch64/test_aspeed_ast2700fc: Boot SSP/TSP via PSP and load binaries from DRAMtests/functional/aarch64/test_aspeed_ast2700fc.py+20 -150 replies
11/11docs: Add support vbootrom and update Manual boot for ast2700fcdocs/system/arm/aspeed.rst+33 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/11] Add SSP/TSP power control and DRAM remap support for AST2700

This series improves AST2700 platform support by aligning SSP/TSP power and reset behavior with hardware, and enabling DRAM remapping required for proper firmware boot flow.

v1:
1. The changes move DRAM/SDMC initialization earlier to support memory
aliasing, add DRAM aliases for SSP/TSP SDRAM remap, and implement SSP/TSP reset, power-on, and remap controls via SCU registers.
2. With these updates, SSP and TSP can be booted via PSP and load their
binaries from DRAM. Functional tests and documentation are updated accordingly.

v2:
Fix "make check" failure caused by both AST2700 and AST1700 realizing the same TYPE_AST2700_SCU model.

Jamin Lin (11):
hw/arm/ast27x0: Move DRAM and SDMC initialization earlier to support
memory aliasing
hw/arm/ast27x0: Start SSP in powered-off state to match hardware
behavior
hw/arm/ast27x0: Start TSP in powered-off state to match hardware
behavior
hw/arm/ast27x0: Add DRAM alias for SSP SDRAM remap hw/arm/ast27x0: Add DRAM alias for TSP SDRAM remap hw/misc/aspeed_scu: Implement SSP reset and power-on control via SCU
registers
hw/misc/aspeed_scu: Implement TSP reset and power-on control via SCU
registers
hw/misc/aspeed_scu: Add SCU support for SSP SDRAM remap hw/misc/aspeed_scu: Add SCU support for TSP SDRAM remap tests/functional/aarch64/test_aspeed_ast2700fc: Boot SSP/TSP via PSP
and load binaries from DRAM
docs: Add support vbootrom and update Manual boot for ast2700fc

 docs/system/arm/aspeed.rst                    |  37 ++-
 include/hw/misc/aspeed_scu.h                  |   6 +
 hw/arm/aspeed_ast27x0-fc.c                    |   4 +
 hw/arm/aspeed_ast27x0-ssp.c                   |  13 +
 hw/arm/aspeed_ast27x0-tsp.c                   |  10 +
 hw/arm/aspeed_ast27x0.c                       |  46 +--
 hw/misc/aspeed_scu.c                          | 268 +++++++++++++++++-
 .../aarch64/test_aspeed_ast2700fc.py          |  35 ++-
 8 files changed, 378 insertions(+), 41 deletions(-)
Signature · 1 line
2.43.0