From patchwork Wed Jun 6 13:31:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: BALATON Zoltan X-Patchwork-Id: 925852 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 4119Hh6wVwz9s0W for ; Wed, 6 Jun 2018 23:58:24 +1000 (AEST) Received: from localhost ([::1]:52594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQYxB-0008Ql-Vx for incoming@patchwork.ozlabs.org; Wed, 06 Jun 2018 09:58:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQYwW-0008Q5-13 for qemu-devel@nongnu.org; Wed, 06 Jun 2018 09:57:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQYwS-0000VI-VO for qemu-devel@nongnu.org; Wed, 06 Jun 2018 09:57:40 -0400 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:44607) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQYwS-0000ON-NS; Wed, 06 Jun 2018 09:57:36 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 18ECF7456BD; Wed, 6 Jun 2018 15:57:28 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id F209D7456B3; Wed, 6 Jun 2018 15:57:27 +0200 (CEST) Message-Id: From: BALATON Zoltan Date: Wed, 06 Jun 2018 15:31:48 +0200 To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:738:2001:2001::2001 Subject: [Qemu-devel] [PATCH v2 0/8] 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" Some more improvements to sam460ex emulation: - Implemented RTC (which also needed fixing I2C to work) - Fix a problem in sm501 which led to AmigaOS slow down v2: - split patch 1 (i2c rewrite) into smaller pieces - Added another sm501 patch BALATON Zoltan (8): ppc4xx_i2c: Clean up and improve error logging ppc4xx_i2c: Move register state to private struct and remove unimplemented sdata and intr registers ppc4xx_i2c: Implement directcntl register ppc4xx_i2c: Rewrite to model hardware more closely hw/timer: Add basic M41T80 emulation sam460ex: Add RTC device sm501: Do not clear read only bits when writing register sm501: Implement i2c part for reading monitor EDID MAINTAINERS | 1 + default-configs/ppc-softmmu.mak | 3 + default-configs/ppcemb-softmmu.mak | 2 + default-configs/sh4-softmmu.mak | 1 + default-configs/sh4eb-softmmu.mak | 1 + hw/display/sm501.c | 142 ++++++++++++++- hw/i2c/ppc4xx_i2c.c | 364 ++++++++++++++++++++----------------- hw/ppc/sam460ex.c | 1 + hw/timer/Makefile.objs | 1 + hw/timer/m41t80.c | 117 ++++++++++++ include/hw/i2c/ppc4xx_i2c.h | 19 +- 11 files changed, 457 insertions(+), 195 deletions(-) create mode 100644 hw/timer/m41t80.c