From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLYJw-0008Uq-Bv for qemu-devel@nongnu.org; Fri, 08 Jul 2016 12:08:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLYJq-0002Jl-Pv for qemu-devel@nongnu.org; Fri, 08 Jul 2016 12:08:03 -0400 Received: from 1.mo179.mail-out.ovh.net ([178.33.111.220]:51162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLYJq-0002JO-JZ for qemu-devel@nongnu.org; Fri, 08 Jul 2016 12:07:58 -0400 Received: from player715.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo179.mail-out.ovh.net (Postfix) with ESMTP id BB2B9100C406 for ; Fri, 8 Jul 2016 18:07:57 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Fri, 8 Jul 2016 18:06:54 +0200 Message-Id: <1467994016-11678-4-git-send-email-clg@kaod.org> In-Reply-To: <1467994016-11678-1-git-send-email-clg@kaod.org> References: <1467994016-11678-1-git-send-email-clg@kaod.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 3/5] ast2400: pretend DMAs are done for U-boot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Peter Crosthwaite Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, Andrew Jeffery , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= U-boot does SPI timing calibration using DMA tranfers. To let the initialization continue, we fake success by setting the DMA status of the Interrupt Control Register. For the moment, DMA support is not required as it is not used in normal operation. Signed-off-by: C=C3=A9dric Le Goater --- hw/ssi/aspeed_smc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/ssi/aspeed_smc.c b/hw/ssi/aspeed_smc.c index 854474b642ea..d319e04a27f0 100644 --- a/hw/ssi/aspeed_smc.c +++ b/hw/ssi/aspeed_smc.c @@ -273,6 +273,9 @@ static void aspeed_smc_reset(DeviceState *d) =20 memset(s->regs, 0, sizeof s->regs); =20 + /* Pretend DMA is done (u-boot initialization) */ + s->regs[R_INTR_CTRL] =3D INTR_CTRL_DMA_STATUS; + /* Unselect all slaves */ for (i =3D 0; i < s->num_cs; ++i) { s->regs[s->r_ctrl0 + i] |=3D CTRL_CE_STOP_ACTIVE; @@ -297,6 +300,7 @@ static uint64_t aspeed_smc_read(void *opaque, hwaddr = addr, unsigned int size) if (addr =3D=3D s->r_conf || addr =3D=3D s->r_timings || addr =3D=3D s->r_ce_ctrl || + addr =3D=3D R_INTR_CTRL || (addr >=3D s->r_ctrl0 && addr < s->r_ctrl0 + s->num_cs)) { return s->regs[addr]; } else { --=20 2.1.4