From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29EAEC31E51 for ; Tue, 18 Jun 2019 08:53:50 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E66A220823 for ; Tue, 18 Jun 2019 08:53:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="azRhhvmi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E66A220823 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:54898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hd9sD-00083s-5M for qemu-devel@archiver.kernel.org; Tue, 18 Jun 2019 04:53:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45028) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hd9qi-000718-5P for qemu-devel@nongnu.org; Tue, 18 Jun 2019 04:52:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hd9qg-0000fs-82 for qemu-devel@nongnu.org; Tue, 18 Jun 2019 04:52:16 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:39058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hd9qc-0000cc-H6; Tue, 18 Jun 2019 04:52:10 -0400 Received: by mail-pf1-x443.google.com with SMTP id j2so7256500pfe.6; Tue, 18 Jun 2019 01:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=snit/yseUcrZq6RkNSA3lCMWYlX3mSDb0XLYFyqTCkU=; b=azRhhvmiI3kd7xWqp88u3iKomPup5W0cBu+g6bXixr1i/8VNCGMuW4+/PQs2GamLpz ShOHn67ujUtQe3oIwonoBHLTJV8yBzNm41soVAxuakZdP1OhPIjf/lioQVVL8kHRvR7P yv5IapvnbDKVVhT3LMU6D+00QUqRy4lcASxiGR52+L/sWtctZkUC337lt4OTZ1mIliDF 78GTs+jF8r11XPGbWmYjikt8FrNdlP+sAkOVlbpuB2/xHTzsExRxuTJtiJid5Y27BQJi l/yi1jRTABiy2y5eLbl1o4sWMzR76wCrSvHlfwwOyhnIabhNUDoFGGMiRwFepn0k052v f4sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=snit/yseUcrZq6RkNSA3lCMWYlX3mSDb0XLYFyqTCkU=; b=VNqb4L/2CeUuOJ42xlmX6zvhGZF7J/RHVSJ8IkH510vdwHJTY7MlMXjXxwatD0/Ifu a6+yYvA1xqqanTPDB3U6a5EHALXs+RzlCQk9QhoTUk8pgsX6So1d5i1LkaAxW33m8veK tDj8L407CzSoRE2ORFwA6yLs/vYM0miJaQG8lj5L37yx/UBC/lsB3Wj8GNENMlRFbd4V BGD5gQgkfxY8iMH8kNInk2TLNxHZKDsTNjnyMpYdHhEMAR9oMv44u6Okwn5kMW7azrpd 7uWRB0GoIOdmtvgbHuq3JsA1np/fYcdjqvpLG/jOJ8Dllb45q3sR4CUNzP5VrlI5sdda uKZQ== X-Gm-Message-State: APjAAAV13IE1Tab6/tG4U9mdPPKacVaiUoVXD1E9/JLKKczjAHxRChpw Y4VkkrSEunvZai3M5G18WkzV6q9K X-Google-Smtp-Source: APXvYqzl/DKuIbm1iziCJtjFQWrgqy4sEqylu9Lsiz0hTbUbL2l3hGswV7VrbVd+L0Di91dRHaMZYw== X-Received: by 2002:a63:1450:: with SMTP id 16mr1695033pgu.52.1560847928392; Tue, 18 Jun 2019 01:52:08 -0700 (PDT) Received: from rashmica.home.majoof.com ([43.245.162.131]) by smtp.gmail.com with ESMTPSA id p7sm27032616pfp.131.2019.06.18.01.52.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Jun 2019 01:52:07 -0700 (PDT) From: Rashmica Gupta To: qemu-arm@nongnu.org Date: Tue, 18 Jun 2019 18:51:52 +1000 Message-Id: <20190618085154.21498-1-rashmica.g@gmail.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::443 Subject: [Qemu-devel] [PATCH 0/2] Add Aspeed GPIO controller model X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@aj.id.au, clg@kaod.org, qemu-devel@nongnu.org, Rashmica Gupta , joel@jms.id.au Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, These two patches add a bunch of the functionality of the ast2400 and ast2500 gpio controllers. This is based off upstream/master with two of Cédric's patches: - aspeed: add a per SoC mapping for the interrupt space - aspeed: add a per SoC mapping for the memory space Any feedback would be great! Rashmica Gupta (2): hw/gpio: Add basic Aspeed GPIO model aspeed: add a GPIO controller to the SoC hw/arm/aspeed_soc.c | 17 + hw/gpio/Makefile.objs | 1 + hw/gpio/aspeed_gpio.c | 869 ++++++++++++++++++++++++++++++++++ include/hw/arm/aspeed_soc.h | 3 + include/hw/gpio/aspeed_gpio.h | 76 +++ 5 files changed, 966 insertions(+) create mode 100644 hw/gpio/aspeed_gpio.c create mode 100644 include/hw/gpio/aspeed_gpio.h -- 2.17.2