Skip to content

Allwinner A10 SPI controller emulation

Strahinja Jankovic qemu-arm qemu-devel 2 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v11 patch 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2hw/ssi: Allwinner A10 SPI emulationhw/ssi/Kconfig hw/ssi/allwinner-a10-spi.c hw/ssi/meson.build +2 more+633 -00 replies
2/2{hw/arm,docs/system/arm}: Add SPI to Allwinner A10docs/system/arm/cubieboard.rst hw/arm/Kconfig hw/arm/allwinner-a10.c +1 more+12 -00 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 0/2] Allwinner A10 SPI controller emulation

This patch set introduces the SPI controller emulation for Allwinner A10 SoC and Cubieboard.

Only master-mode functionality of the SPI controller is implemented.

Since U-Boot and Linux SPI drivers for Allwinner A10 perform only byte-wide CPU access to the transmit and receive registers of the controller, the emulated controller does not implement DMA handling, and supports only byte-wide access to transmit and receive registers (half-word and word access will be treated as byte access).

* diff from v1:

- split patch into two parts, one implementing the peripheral and another for integrating peripheral into Allwinner A10 description
- fixed issue with CS level handling when channel is not selected (idle mode); this was discovered when CS level handling was converted to a separate function
- updated read and write register handling to log error when byte and half-word access not aligned to 4-byte boundary is performed
- updated SPDX license tags for both header and c files
- various minor fixes suggested in review

Strahinja Jankovic (2):
hw/ssi: Allwinner A10 SPI emulation {hw/arm,docs/system/arm}: Add SPI to Allwinner A10

 docs/system/arm/cubieboard.rst     |   1 +
 hw/arm/Kconfig                     |   1 +
 hw/arm/allwinner-a10.c             |   8 +
 hw/ssi/Kconfig                     |   4 +
 hw/ssi/allwinner-a10-spi.c         | 561 +++++++++++++++++++++++++++++
 hw/ssi/meson.build                 |   1 +
 hw/ssi/trace-events                |  10 +
 include/hw/arm/allwinner-a10.h     |   2 +
 include/hw/ssi/allwinner-a10-spi.h |  57 +++
 9 files changed, 645 insertions(+)
 create mode 100644 hw/ssi/allwinner-a10-spi.c
 create mode 100644 include/hw/ssi/allwinner-a10-spi.h
Signature · 1 line
2.39.5