From patchwork Wed Feb 26 18:11:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Edworthy X-Patchwork-Id: 3726931 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 7E81ABF13A for ; Wed, 26 Feb 2014 18:12:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC217201DD for ; Wed, 26 Feb 2014 18:12:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D28E22018E for ; Wed, 26 Feb 2014 18:12:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751557AbaBZSMT (ORCPT ); Wed, 26 Feb 2014 13:12:19 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:64830 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752142AbaBZSMS (ORCPT ); Wed, 26 Feb 2014 13:12:18 -0500 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 27 Feb 2014 03:12:17 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id F1D433DF70; Thu, 27 Feb 2014 03:12:16 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id EAEF4480A4; Thu, 27 Feb 2014 03:12:16 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id E95CC480A6; Thu, 27 Feb 2014 03:12:16 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id DAP32050; Thu, 27 Feb 2014 03:12:16 +0900 X-IronPort-AV: E=Sophos;i="4.97,548,1389711600"; d="scan'208";a="155216816" Received: from unknown (HELO relay51.aps.necel.com) ([10.29.19.60]) by relmlii2.idc.renesas.com with ESMTP; 27 Feb 2014 03:12:16 +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 s1QICELL012669; Thu, 27 Feb 2014 03:12:15 +0900 (JST) Received: by julia (Postfix, from userid 2) id 4EDC54B23D; Wed, 26 Feb 2014 19:12:14 +0100 (CET) Received: from DU0NOTES13.ad.ree.renesas.com (unknown [172.29.24.131]) by julia (Postfix) with ESMTP id 3D88F4B212; Wed, 26 Feb 2014 19:12:14 +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 2014022619112680-237509 ; Wed, 26 Feb 2014 19:11:26 +0100 From: Phil Edworthy To: linux-pci@vger.kernel.org Cc: linux-sh@vger.kernel.org, Bjorn Helgaas , Valentine Barshak , Simon Horman , Magnus Damm , Ben Dooks , Phil Edworthy X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393438283-10542-1-git-send-email-phil.edworthy@renesas.com> References: <1393438283-10542-1-git-send-email-phil.edworthy@renesas.com> X-TNEFEvaluated: 1 Message-ID: <1393438283-10542-4-git-send-email-phil.edworthy@renesas.com> Date: Wed, 26 Feb 2014 18:11:21 +0000 Subject: [PATCH 3/5 v2 RFC] 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 19:11:27, Serialize by Router on DU0NOTES13/SERVER/REE(Release 8.5.3 HF466|March 09, 2012) at 26.02.2014 19:11:28, Serialize complete at 26.02.2014 19:11:28 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)