From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbSLB-0002c1-Ll for qemu-devel@nongnu.org; Mon, 04 Jun 2012 04:08:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbSL5-0002ho-7S for qemu-devel@nongnu.org; Mon, 04 Jun 2012 04:08:41 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:45731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbSL5-0002hc-1D for qemu-devel@nongnu.org; Mon, 04 Jun 2012 04:08:35 -0400 Received: by dadv2 with SMTP id v2so5974491dad.4 for ; Mon, 04 Jun 2012 01:08:28 -0700 (PDT) From: "Peter A. G. Crosthwaite" Date: Mon, 4 Jun 2012 18:08:19 +1000 Message-Id: Subject: [Qemu-devel] [PATCH V4 0/5] Ehnahced SSI bus support + M25P80 SPI flash + Xilinx SPI controller List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, paul@codesourcery.com, edgar.iglesias@gmail.com, peter.maydell@linaro.org, stefanha@gmail.com Cc: peter.crosthwaite@petalogix.com, john.williams@petalogix.com Patch 1 Enhances SSI bus support to properly support multiple attached devices. An api is provided for SSI/SPI masters to select a particular device attached to the bus. 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 ssi 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 two m25p80s to it. Patch 5 updates the stellaris machine model to use the multi slave SSI support CHANGELOG: 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 (5): SSI: Built in multiple device support m25p80: initial verion xilinx_spi: initial version petalogix-ml605: added spi controller with m25p80 stellaris: Updated spi bus implementation Makefile.target | 2 + default-configs/microblaze-softmmu.mak | 1 + default-configs/microblazeel-softmmu.mak | 1 + hw/m25p80.c | 557 ++++++++++++++++++++++++++++++ hw/petalogix_ml605_mmu.c | 23 ++ hw/spitz.c | 8 +- hw/ssi.c | 107 +++++- hw/ssi.h | 28 ++- hw/stellaris.c | 21 +- hw/tosa.c | 2 +- hw/xilinx_spi.c | 481 ++++++++++++++++++++++++++ hw/z2.c | 2 +- 12 files changed, 1196 insertions(+), 37 deletions(-) create mode 100644 hw/m25p80.c create mode 100644 hw/xilinx_spi.c -- 1.7.3.2