From patchwork Wed Feb 26 16:08:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Edworthy X-Patchwork-Id: 3725521 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 20DAFBF13A for ; Wed, 26 Feb 2014 16:09:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 506C22017B for ; Wed, 26 Feb 2014 16:09:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3793E20158 for ; Wed, 26 Feb 2014 16:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751892AbaBZQJN (ORCPT ); Wed, 26 Feb 2014 11:09:13 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:15361 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751401AbaBZQJM (ORCPT ); Wed, 26 Feb 2014 11:09:12 -0500 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 27 Feb 2014 01:09:10 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id A6267479DF; Thu, 27 Feb 2014 01:09:10 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id A0C61480A4; Thu, 27 Feb 2014 01:09:10 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id A0821480A6; Thu, 27 Feb 2014 01:09:10 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id BAC13075; Thu, 27 Feb 2014 01:09:10 +0900 X-IronPort-AV: E=Sophos;i="4.97,548,1389711600"; d="scan'208";a="155212537" Received: from unknown (HELO relay51.aps.necel.com) ([10.29.19.60]) by relmlii2.idc.renesas.com with ESMTP; 27 Feb 2014 01:09:10 +0900 Received: from julia (du2com5.eu.necel.com [172.29.24.35] (may be forged)) by relay51.aps.necel.com (8.14.4+Sun/8.14.4) with ESMTP id s1QG95sw011773; Thu, 27 Feb 2014 01:09:05 +0900 (JST) Received: by julia (Postfix, from userid 2) id E76784B212; Wed, 26 Feb 2014 17:09:04 +0100 (CET) Received: from DU0NOTES13.ad.ree.renesas.com (unknown [172.29.24.131]) by julia (Postfix) with ESMTP id D45F64B234; Wed, 26 Feb 2014 17:09:04 +0100 (CET) Received: from duacsls.ad.ree.renesas.com ([172.29.43.47]) by DU0NOTES13.ad.ree.renesas.com (Lotus Domino Release 8.5.3 HF466) with ESMTP id 2014022617081738-235413 ; Wed, 26 Feb 2014 17:08:17 +0100 From: Phil Edworthy To: linux-pci@vger.kernel.org Cc: linux-sh@vger.kernel.org, Bjorn Helgaas , Valentine Barshak , Simon Horman , Magnus Damm , Phil Edworthy X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393430893-2466-1-git-send-email-phil.edworthy@renesas.com> References: <1393430893-2466-1-git-send-email-phil.edworthy@renesas.com> X-TNEFEvaluated: 1 Message-ID: <1393430893-2466-4-git-send-email-phil.edworthy@renesas.com> Date: Wed, 26 Feb 2014 16:08:11 +0000 Subject: [PATCH 3/5] ARM: shmobile: Add PCIe resources to r8a7791 device X-MIMETrack: Itemize by SMTP Server on DU0NOTES13/SERVER/REE(Release 8.5.3 HF466|March 09, 2012) at 26.02.2014 17:08:17, Serialize by Router on DU0NOTES13/SERVER/REE(Release 8.5.3 HF466|March 09, 2012) at 26.02.2014 17:08:18, Serialize complete at 26.02.2014 17:08:18 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Phil Edworthy --- arch/arm/mach-shmobile/setup-r8a7791.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c index d9393d6..7751aae 100644 --- a/arch/arm/mach-shmobile/setup-r8a7791.c +++ b/arch/arm/mach-shmobile/setup-r8a7791.c @@ -136,6 +136,16 @@ static struct resource irqc0_resources[] = { &irqc##idx##_data, \ sizeof(struct renesas_irqc_config)) +/* PCI Express */ +static struct resource pcie_resources[] = { + DEFINE_RES_MEM(0xfe000000, SZ_512K), + DEFINE_RES_MEM(0xfe100000, SZ_1M), + DEFINE_RES_MEM(0xfe200000, SZ_2M), + DEFINE_RES_MEM(0x30000000, SZ_128M), + DEFINE_RES_MEM(0x38000000, SZ_128M), + DEFINE_RES_IRQ(gic_spi(116)), +}; + void __init r8a7791_add_dt_devices(void) { r8a7791_register_scif(SCIFA0); @@ -160,6 +170,9 @@ void __init r8a7791_add_standard_devices(void) { r8a7791_add_dt_devices(); r8a7791_register_irqc(0); + platform_device_register_simple("r8a7791-pcie", -1, + pcie_resources, + ARRAY_SIZE(pcie_resources)); } void __init r8a7791_init_early(void)