Skip to content

SPI bus support + Xilinx SPI controller

Peter A. G. Crosthwaite qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v1 RFC4 patches 18 repliesSuperseded

Changes in v2 from the cover letter

minor sylistic changes (1/4)
converted spi api to modified txrx style (1-3/4)
heavily refactored m25p80 model (2/4)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4SPI: initial supportMakefile.objs hw/spi.c hw/spi.h+218 -10 replies
2/4m25p80: initial verionMakefile.target hw/m25p80.c+398 -00 replies
3/4xilinx_spi: initial versionMakefile.target hw/xilinx_spi.c+483 -00 replies
4/4petalogix-ml605: added spi controller with m25p80hw/petalogix_ml605_mmu.c+19 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/4] SPI bus support + Xilinx SPI controller

Add support for Serial Peripheral interface (SPI) as a proper bus standard. Includes an example device (m25p80 SPI flash), an example controller (Xilinx XPS SPI) and adds it to all to a machine model (petalogix_ml605_mmu.c).

Patch 1 adds the Serial Peripheral Interface (SPI) protocol as a bus and defines a QOM type for slave devices. The approach to doing this is based loosely on the existing I2C QOMification.

Patch 2 is a device model for the m25p80 style SPI flash chip.

Patch 3 is the Xilinx XPS SPI contoller. Its a sysbus device that instantiates a spi bus, and interfaces the two (as per the controllers functionality)

Patch 4 instantiates the XPS SPI controller in the petalogix ML605 reference platform and connects one m25p80 to it.

CHANGELOG:
changed from v1:
minor sylistic changes (1/4)
converted spi api to modified txrx style (1-3/4)
heavily refactored m25p80 model (2/4)

Peter A. G. Crosthwaite (4):
SPI: initial support
m25p80: initial verion
xilinx_spi: initial version
petalogix-ml605: added spi controller with m25p80

 Makefile.objs            |    2 +-
 Makefile.target          |    2 +
 hw/m25p80.c              |  397 ++++++++++++++++++++++++++++++++++++++
 hw/petalogix_ml605_mmu.c |   19 ++
 hw/spi.c                 |  148 ++++++++++++++
 hw/spi.h                 |   69 +++++++
 hw/xilinx_spi.c          |  482 ++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 1118 insertions(+), 1 deletions(-)
 create mode 100644 hw/m25p80.c
 create mode 100644 hw/spi.c
 create mode 100644 hw/spi.h
 create mode 100644 hw/xilinx_spi.c
Signature · 1 line
1.7.3.2