Skip to content

aspeed/i2c: Add support for pool and DMA transfer modes

Cédric Le Goater qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5aspeed/i2c: Add support for pool buffer transfershw/i2c/aspeed_i2c.c include/hw/i2c/aspeed_i2c.h+186 -192 replies
2/5aspeed/i2c: Check SRAM enablement on A2500hw/i2c/aspeed_i2c.c include/hw/i2c/aspeed_i2c.h+40 -02 replies
3/5aspeed: Add a DRAM memory region at the SoC levelhw/arm/aspeed_ast2600.c hw/arm/aspeed_soc.c include/hw/arm/aspeed_soc.h+13 -43 replies
4/5aspeed/i2c: Add support for DMA transfershw/arm/aspeed_ast2600.c hw/arm/aspeed_soc.c hw/i2c/aspeed_i2c.c +1 more+138 -32 replies
5/5aspeed/i2c: Add trace eventshw/i2c/aspeed_i2c.c hw/i2c/trace-events+89 -135 replies

Reviews trailers per patch

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

PatchJoel StanleyJae Hyun YooPhilippe Mathieu-Daudé
1/5R-b T-b
2/5R-b T-b
3/5R-b T-b R-b
4/5R-b T-b
5/5R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] aspeed/i2c: Add support for pool and DMA transfer modes

Hello,

The Aspeed I2C controller can operate in three different transfer modes :

- Byte Buffer mode, using a dedicated register to transfer a byte. This is what the model supports today.

- Pool Buffer mode, using an internal SRAM to transfer multiple bytes in the same command sequence.

- DMA mode, supporting transfers up to 4K to and from DRAM.

This series adds support for the pool and DMA transfer modes taking into account the specificities of each SoC.

Last patch adds some traces which proved to be useful to debug the I2C state machine.

Thanks,

C.

Cédric Le Goater (5):
aspeed/i2c: Add support for pool buffer transfers aspeed/i2c: Check SRAM enablement on A2500
aspeed: Add a DRAM memory region at the SoC level aspeed/i2c: Add support for DMA transfers aspeed/i2c: Add trace events

 include/hw/arm/aspeed_soc.h |   1 +
 include/hw/i2c/aspeed_i2c.h |  16 ++
 hw/arm/aspeed_ast2600.c     |  12 +-
 hw/arm/aspeed_soc.c         |  14 +-
 hw/i2c/aspeed_i2c.c         | 439 +++++++++++++++++++++++++++++++++---
 hw/i2c/trace-events         |   9 +
 6 files changed, 459 insertions(+), 32 deletions(-)
Signature · 1 line
2.21.0