From patchwork Sun Jun 24 11:20:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: BALATON Zoltan X-Patchwork-Id: 933900 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=eik.bme.hu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41D9RX0Qqwz9s01 for ; Sun, 24 Jun 2018 21:43:20 +1000 (AEST) Received: from localhost ([::1]:41416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX3QL-0001GC-N3 for incoming@patchwork.ozlabs.org; Sun, 24 Jun 2018 07:43:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fX3Pd-0001E8-T7 for qemu-devel@nongnu.org; Sun, 24 Jun 2018 07:42:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fX3PZ-0007n8-1X for qemu-devel@nongnu.org; Sun, 24 Jun 2018 07:42:33 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]:18831) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fX3PY-0007lc-Ql; Sun, 24 Jun 2018 07:42:28 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 15B157456CF; Sun, 24 Jun 2018 13:42:20 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id EF8E07456B3; Sun, 24 Jun 2018 13:42:19 +0200 (CEST) Message-Id: From: BALATON Zoltan Date: Sun, 24 Jun 2018 13:20:03 +0200 To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 152.66.115.2 Subject: [Qemu-devel] [PATCH v5 0/4] Misc sam460ex improvements X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Graf , David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" These are the remaining patches for sam460ex needed to implement RTC and get AmigaOS to boot. The sm501 patches are also needed but that's now a separate series. I'd appreciate if this could be reviewed and merged before the imminent 3.0 freeze. I think only patch 1/4 (i2c rewrite) is a bit more complex but given that originally it was only a stub and previous patches just hacked it for u-boot IMO it does not worth trying to make incremental changes to the previous nonsense behaviour instead of replacing it with a more proper implementation which is what this patch does. Basically it implements the 4 byte FIFO for mdata register and implements interrupts the device should generate. Considering that this device is only used on some not too well maintained boards it should be low risk to make this change. Patches 1-3 are for RTC emulation, patch 4 is new and is needed by AmigaOS. Regards, BALATON Zoltan BALATON Zoltan (4): ppc4xx_i2c: Rewrite to model hardware more closely hw/timer: Add basic M41T80 emulation sam460ex: Add RTC device ppc440_uc: Basic emulation of PPC440 DMA controller MAINTAINERS | 1 + default-configs/ppc-softmmu.mak | 1 + hw/i2c/ppc4xx_i2c.c | 222 +++++++++++++++++++--------------------- hw/ppc/ppc440.h | 1 + hw/ppc/ppc440_uc.c | 215 ++++++++++++++++++++++++++++++++++++++ hw/ppc/sam460ex.c | 4 + hw/timer/Makefile.objs | 1 + hw/timer/m41t80.c | 117 +++++++++++++++++++++ include/hw/i2c/ppc4xx_i2c.h | 3 +- 9 files changed, 450 insertions(+), 115 deletions(-) create mode 100644 hw/timer/m41t80.c