From patchwork Mon Jul 7 07:08:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 33135 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 059DB20C88 for ; Mon, 7 Jul 2014 07:12:13 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id b6sf17468643yha.8 for ; Mon, 07 Jul 2014 00:12:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=ox82Z9jnCZve7mQOBU7m9ycPusDWfMhvqJoT1NFChiY=; b=k0kJShKKUy+AwZNDAMECZvD2djuvZXL0JyVKea+yNAopM+oH/wKXnTxTsEC0MpLfhf 9IqTGLDC0WqC5YWQd4EPR/rCUb54IqL9GMZoctYo9lDIkwGCkjnUNLLQZx5CqHA+zkxA ETn+AUlGUAmzvyqOLkGKucjIeRj3o2mqR44zZM91u8JnfFzPKckQuw9wVuMGbsmUKP3V Z99DQ7d35TgBWtUwFeqtDoa6w7cJYoiZxJgZ9Qm7DjlKneL6bZJCPXsdy7M0seCAnMzM QAdfL80DXokAgVd12yhqJpZEUuk9ff4mEVnZzeEbzq/9tFoMPjMGwFbO2B2lPhE+Ywel 3XUQ== X-Gm-Message-State: ALoCoQmpsuE3185coHdP/ihMg5p6EjUX2RotJik+InTnqcKeqGRpBIiJJ8ouG8APX+QedOmBl/1L X-Received: by 10.52.120.47 with SMTP id kz15mr11369987vdb.5.1404717132831; Mon, 07 Jul 2014 00:12:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.201 with SMTP id z67ls1667540qgd.94.gmail; Mon, 07 Jul 2014 00:12:12 -0700 (PDT) X-Received: by 10.52.23.71 with SMTP id k7mr21816042vdf.27.1404717132762; Mon, 07 Jul 2014 00:12:12 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id b15si209673vcv.30.2014.07.07.00.12.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 00:12:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id oy12so3613847veb.37 for ; Mon, 07 Jul 2014 00:12:12 -0700 (PDT) X-Received: by 10.58.160.72 with SMTP id xi8mr11263648veb.36.1404717132649; Mon, 07 Jul 2014 00:12:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp644892vcb; Mon, 7 Jul 2014 00:12:12 -0700 (PDT) X-Received: by 10.194.10.167 with SMTP id j7mr7644179wjb.100.1404717131371; Mon, 07 Jul 2014 00:12:11 -0700 (PDT) Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by mx.google.com with ESMTPS id g13si39837260wiv.43.2014.07.07.00.12.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 00:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 74.125.82.176 as permitted sender) client-ip=74.125.82.176; Received: by mail-we0-f176.google.com with SMTP id u56so3913263wes.7 for ; Mon, 07 Jul 2014 00:12:10 -0700 (PDT) X-Received: by 10.194.171.68 with SMTP id as4mr30880874wjc.80.1404717130757; Mon, 07 Jul 2014 00:12:10 -0700 (PDT) Received: from midway01-04-00.lavalab ([88.98.47.97]) by mx.google.com with ESMTPSA id fb15sm111830218wid.23.2014.07.07.00.12.10 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 00:12:10 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, christoffer.dall@linaro.org, qemu-devel@nongnu.org, kim.phillips@freescale.com, a.rigo@virtualopensystems.com Cc: eric.auger@linaro.org, kvmarm@lists.cs.columbia.edu, alex.williamson@redhat.com, agraf@suse.de, peter.maydell@linaro.org, stuart.yoder@freescale.com, a.motakis@virtualopensystems.com, patches@linaro.org Subject: [PATCH 7/7] hw/misc/platform_devices: Add platform_bus_base to PlatformDevtreeData Date: Mon, 7 Jul 2014 08:08:12 +0100 Message-Id: <1404716892-15600-8-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404716892-15600-1-git-send-email-eric.auger@linaro.org> References: <1404716892-15600-1-git-send-email-eric.auger@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The base address of the platform bus sometimes is used to build the property. --- Actually I did not succeed in doing it another way with Calxeda xgmac. If someone knows how to do without, please advise. Signed-off-by: Eric Auger --- hw/misc/platform_devices.c | 1 + include/hw/misc/platform_devices.h | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/misc/platform_devices.c b/hw/misc/platform_devices.c index a054606..f194b1d 100644 --- a/hw/misc/platform_devices.c +++ b/hw/misc/platform_devices.c @@ -54,6 +54,7 @@ void platform_bus_create_devtree(PlatformParams *params, void *fdt, data.fdt = fdt; data.mpic = mpic; data.irq_start = irq_start; + data.platform_bus_base = addr; data.node = node; container = container_get(qdev_get_machine(), "/peripheral"); diff --git a/include/hw/misc/platform_devices.h b/include/hw/misc/platform_devices.h index ab79346..6d228ca 100644 --- a/include/hw/misc/platform_devices.h +++ b/include/hw/misc/platform_devices.h @@ -11,6 +11,7 @@ typedef struct PlatformDevtreeData { const char *mpic; int irq_start; const char *node; + hwaddr platform_bus_base; } PlatformDevtreeData; typedef struct {