From patchwork Thu Jan 3 16:27:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: BALATON Zoltan X-Patchwork-Id: 10747545 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 228606C5 for ; Thu, 3 Jan 2019 16:44:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1240A28925 for ; Thu, 3 Jan 2019 16:44:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 066A928A73; Thu, 3 Jan 2019 16:44:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F2AE928925 for ; Thu, 3 Jan 2019 16:44:24 +0000 (UTC) Received: from localhost ([127.0.0.1]:55950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf66a-0002e7-4V for patchwork-qemu-devel@patchwork.kernel.org; Thu, 03 Jan 2019 11:44:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf65B-0000jG-5m for qemu-devel@nongnu.org; Thu, 03 Jan 2019 11:42:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gf656-0007hE-52 for qemu-devel@nongnu.org; Thu, 03 Jan 2019 11:42:57 -0500 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:18116) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gf655-0007cQ-Ul; Thu, 03 Jan 2019 11:42:52 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 584587456BC; Thu, 3 Jan 2019 17:42:50 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 3D68B74569F; Thu, 3 Jan 2019 17:42:50 +0100 (CET) Message-Id: From: BALATON Zoltan Date: Thu, 03 Jan 2019 17:27:24 +0100 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 v3 0/6] Misc sam460ex related patches 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: Peter Maydell , Paolo Bonzini , Aleksandar Markovic , David Gibson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP The last code patch in this series fixes memory size larger than 1GB for sam460ex, other patches are just clean ups I've made along the way. The first patch is intended to be generic and may be useful for other boards which currently have their own SPD EEPROM data or don't yet generate any SPD data just have TODO comments instead. These are MIPS malta and fulong2e, ARM integratorcp and maybe aspeed, and the PIIX and Q35 pc machines. I did not try to change these as I have no way to test them throughly. Patch 2 converts sam460ex to use this function. Other patches are misc cleanups. Regards, BALATON Zoltan v3: A tab indent got in by accident hence v3 but also include smilar cleanup for sdram_set_bcd() in another file v2: Address review comments, omitting patches already merged BALATON Zoltan (6): smbus: Add a helper to generate SPD EEPROM data sam460ex: Clean up SPD EEPROM creation ppc4xx: Use ram_addr_t in ppc4xx_sdram_adjust() ppc4xx: Rename ppc4xx_sdram_t in ppc440_uc.c to ppc440_sdram_t ppc4xx: Pass array index to function instead of pointer into the array sam460ex: Fix support for memory larger than 1GB hw/i2c/smbus_eeprom.c | 130 ++++++++++++++++++++++++++++++++++ hw/ppc/ppc440_bamboo.c | 2 +- hw/ppc/ppc440_uc.c | 70 +++++++++---------- hw/ppc/ppc4xx_devs.c | 48 ++++++------- hw/ppc/sam460ex.c | 181 +++++++----------------------------------------- include/hw/i2c/smbus.h | 3 + include/hw/ppc/ppc4xx.h | 2 +- 7 files changed, 216 insertions(+), 220 deletions(-)