qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Peter A. G. Crosthwaite" <peter.crosthwaite@petalogix.com>
To: qemu-devel@nongnu.org, paul@codesourcery.com,
	edgar.iglesias@gmail.com, peter.maydell@linaro.org,
	stefanha@gmail.com
Cc: blauwirbel@gmail.com,
	"Peter A. G. Crosthwaite" <peter.crosthwaite@petalogix.com>,
	i.mitsyanko@samsung.com
Subject: [Qemu-devel] [PATCH v7 00/13] Ehnahced SSI bus support + M25P80 SPI flash + Xilinx SPI controller
Date: Mon, 24 Sep 2012 19:18:30 +1000	[thread overview]
Message-ID: <cover.1348104012.git.peter.crosthwaite@petalogix.com> (raw)

This series reworks the SSI bus framework for SPI and add some new SPI controllers and devices:

Patches 1-4 reworks SSI to add chip-select support to SPI devices and allow for multiple SPI devices attached to the 
same bus.
Patches 5-6 fix the SPI setup in the stellaris machine model.
Patch 7 is a general FIFO helper API used by the upcomming patches.
Patch 8 is a device model for the m25p80 SPI flash family.
Patches 9 & 11 are the Xilinx SPI flash controller devices
Patches 10 & 12 add SPI controllers to the ML605 and Zynq machine models.
Patch 13 is Maintainerships.

CHANGELOG:
changed from v6:
Address Blue Swirl Review (P8, P11)
changed from v5:
VMSD version bump
various line-by-line review fixes
removed trivial patch (formerly P8)
collapsed former P2-3 into one patch for bisectability
changed from v4 (Major changes):
Completely reworked SPI refactor. Please re-review from scratch.
Added Zynq SPI flash.
Factored out FIFO functionality from SPI flash controller.
changed from v3:
addressed reviewer comments from P Maydell and S Hajnoczi
added patch 5 (re Paul Brooks request)
changed from v2:
folded former SPI bus functionality into existing SSI infrastructure (suggested - Paul Brook) (all patches)
made m25p80 use async io (suggested - Stefan Hajnoczi) (2/4)
instantiated two spi flashes instead of one in ml605 ref design (4/4)
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 (13):
  ssi: Support for multiple attached devices
  ssi: Implemented CS behaviour
  ssi: Added create_slave_no_init()
  qdev: allow multiple qdev_init_gpio_in() calls
  hw/stellaris: Removed gpio_out init array.
  stellaris: Removed SSI mux
  hw: Added generic FIFO API.
  m25p80: Initial implementation of SPI flash device
  xilinx_spi: Initial impl. of Xilinx SPI controller
  petalogix-ml605: added SPI controller with n25q128
  xilinx_spips: Xilinx Zynq SPI cntrlr device model
  xilinx_zynq: Added SPI controllers + flashes
  MAINTAINERS: Added maintainerships for SSI

 MAINTAINERS                              |    8 +
 default-configs/arm-softmmu.mak          |    1 +
 default-configs/microblaze-softmmu.mak   |    2 +
 default-configs/microblazeel-softmmu.mak |    2 +
 hw/Makefile.objs                         |    2 +
 hw/ads7846.c                             |    7 +-
 hw/arm/Makefile.objs                     |    1 +
 hw/fifo.c                                |   78 ++++
 hw/fifo.h                                |   47 +++
 hw/irq.c                                 |   17 +-
 hw/irq.h                                 |   11 +-
 hw/m25p80.c                              |  573 ++++++++++++++++++++++++++++++
 hw/max111x.c                             |    7 +-
 hw/microblaze/Makefile.objs              |    1 +
 hw/petalogix_ml605_mmu.c                 |   27 ++
 hw/qdev.c                                |    6 +-
 hw/spitz.c                               |    8 +-
 hw/ssd0323.c                             |    7 +
 hw/ssi-sd.c                              |    7 +
 hw/ssi.c                                 |   76 ++++-
 hw/ssi.h                                 |   38 ++
 hw/stellaris.c                           |  111 ++-----
 hw/xilinx_spi.c                          |  390 ++++++++++++++++++++
 hw/xilinx_spips.c                        |  352 ++++++++++++++++++
 hw/xilinx_zynq.c                         |   34 ++
 hw/z2.c                                  |    7 +-
 26 files changed, 1698 insertions(+), 122 deletions(-)
 create mode 100644 hw/fifo.c
 create mode 100644 hw/fifo.h
 create mode 100644 hw/m25p80.c
 create mode 100644 hw/xilinx_spi.c
 create mode 100644 hw/xilinx_spips.c

             reply	other threads:[~2012-09-24  9:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-24  9:18 Peter A. G. Crosthwaite [this message]
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 01/13] ssi: Support for multiple attached devices Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 02/13] ssi: Implemented CS behaviour Peter A. G. Crosthwaite
2012-09-24  9:29   ` Peter Maydell
2012-09-24 10:19     ` Peter Crosthwaite
2012-09-24 10:56       ` Peter Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 03/13] ssi: Added create_slave_no_init() Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 04/13] qdev: allow multiple qdev_init_gpio_in() calls Peter A. G. Crosthwaite
2012-09-24  9:53   ` Peter Maydell
2012-09-24 10:35     ` Peter Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 05/13] hw/stellaris: Removed gpio_out init array Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 06/13] stellaris: Removed SSI mux Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 07/13] hw: Added generic FIFO API Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 08/13] m25p80: Initial implementation of SPI flash device Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 09/13] xilinx_spi: Initial impl. of Xilinx SPI controller Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 10/13] petalogix-ml605: added SPI controller with n25q128 Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 11/13] xilinx_spips: Xilinx Zynq SPI cntrlr device model Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 12/13] xilinx_zynq: Added SPI controllers + flashes Peter A. G. Crosthwaite
2012-09-24  9:18 ` [Qemu-devel] [PATCH v7 13/13] MAINTAINERS: Added maintainerships for SSI Peter A. G. Crosthwaite

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1348104012.git.peter.crosthwaite@petalogix.com \
    --to=peter.crosthwaite@petalogix.com \
    --cc=blauwirbel@gmail.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=i.mitsyanko@samsung.com \
    --cc=paul@codesourcery.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).