Received: by 10.25.21.96 with SMTP id l93csp233257lfi; Fri, 17 Jun 2016 05:16:00 -0700 (PDT) X-Received: by 10.200.45.89 with SMTP id o25mr1736805qta.22.1466165758649; Fri, 17 Jun 2016 05:15:58 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c82si31183264qkj.237.2016.06.17.05.15.58 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 17 Jun 2016 05:15:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Received: from localhost ([::1]:56414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDsgn-0001qz-Vc for alex.bennee@linaro.org; Fri, 17 Jun 2016 08:15:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDsgj-0001pI-Gm for qemu-arm@nongnu.org; Fri, 17 Jun 2016 08:15:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDsgf-00033Y-F0 for qemu-arm@nongnu.org; Fri, 17 Jun 2016 08:15:53 -0400 Received: from 1.mo53.mail-out.ovh.net ([178.32.108.164]:49056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDsgf-00033Q-8d for qemu-arm@nongnu.org; Fri, 17 Jun 2016 08:15:49 -0400 Received: from player158.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo53.mail-out.ovh.net (Postfix) with ESMTP id 1A559FF8990 for ; Fri, 17 Jun 2016 14:15:45 +0200 (CEST) Received: from hermes.ibm.com (LFbn-1-2234-107.w90-76.abo.wanadoo.fr [90.76.55.107]) (Authenticated sender: clg@kaod.org) by player158.ha.ovh.net (Postfix) with ESMTPSA id 8C6126200A4; Fri, 17 Jun 2016 14:15:36 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: Peter Maydell , Peter Crosthwaite Date: Fri, 17 Jun 2016 14:15:19 +0200 Message-Id: <1466165724-7620-1-git-send-email-clg@kaod.org> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Ovh-Tracer-Id: 16857254880447859473 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -65 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekledrledtgdeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdefhedm Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 178.32.108.164 Subject: [Qemu-arm] [PATCH v2 0/5] ast2400: SMC controllers X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, Andrew Jeffery , qemu-devel@nongnu.org, armbru@redhat.com, qemu-arm@nongnu.org, Joel Stanley , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: qWUdZCgd5EdY Hello, The following adds support for the AST2400 SMC controllers. The device model does not implement all the HW features, linear addressing mode is underway, but it should be complete enough for the OpenBMC distro. Code is based on Andrew's SCU model :=20 https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg04420.html Flash images can be grabbed here for testing : https://openpower.xyz/job/openbmc-build/distro=3Dubuntu,target=3Dpalm= etto/lastSuccessfulBuild/artifact/images/palmetto/flash-palmetto https://openpower.xyz/job/openpower-op-build/distro=3Dubuntu,target=3D= palmetto/lastSuccessfulBuild/artifact/images/palmetto.pnor Changes Since v1: - included Paolo's fix adding a "drive" property to the flash device model =20 - fixed drive definition in the test command line Thanks, C. C=C3=A9dric Le Goater (4): ast2400: add SMC controllers (FMC and SPI) ast2400: add SPI flash slave object ast2400: create SPI flash slaves tests: add a m25p80 test Paolo Bonzini (1): m25p80: qdev-ify drive property hw/arm/ast2400.c | 31 +++ hw/arm/palmetto-bmc.c | 3 + hw/arm/xilinx_zynq.c | 8 +- hw/arm/xlnx-ep108.c | 9 +- hw/block/m25p80.c | 10 +- hw/microblaze/petalogix_ml605_mmu.c | 9 +- hw/ssi/Makefile.objs | 1 + hw/ssi/aspeed_smc.c | 460 ++++++++++++++++++++++++++++++= ++++++ include/hw/arm/ast2400.h | 3 + include/hw/ssi/aspeed_smc.h | 105 ++++++++ tests/Makefile.include | 2 + tests/m25p80-test.c | 242 +++++++++++++++++++ 12 files changed, 872 insertions(+), 11 deletions(-) create mode 100644 hw/ssi/aspeed_smc.c create mode 100644 include/hw/ssi/aspeed_smc.h create mode 100644 tests/m25p80-test.c --=20 2.1.4