From patchwork Tue Oct 8 03:39:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3000201 Return-Path: X-Original-To: patchwork-linux-arm@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 6968BBF924 for ; Tue, 8 Oct 2013 03:40:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F2532017E for ; Tue, 8 Oct 2013 03:40:09 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9DAF32015D for ; Tue, 8 Oct 2013 03:40:08 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTO8m-0004KE-3e; Tue, 08 Oct 2013 03:39:20 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTO8Z-0008Ki-NU; Tue, 08 Oct 2013 03:39:07 +0000 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VTO8X-0008Ix-5Q for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2013 03:39:05 +0000 Received: by mail-pd0-f171.google.com with SMTP id g10so8014403pdj.30 for ; Mon, 07 Oct 2013 20:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=QrDsBciD1uKX0W+xGgABK55w5WOpwjWj6W9Iou9WDeM=; b=F7szLm320bkDJDe9vilfrxe1zTJ5aeR851Az5dcB7NT/t6mq47/YgUKRhQARa4ABRz csa3otpWhex22zu2j6f5HmByM9ZqOhiLm/5PH8AIirLDGYvW0gibBZapR/l89You1XxP 9lsX1+lMQNGKr2z4hVYsyRF8bjajnqc7IF1C/9LkznQZP5kq/Qg2bJmcKhWKXGHq2uTS Tjh5icl2z1WLfQrtaxmrJvYjYXk6x8CuiblFqBKk2gYhsd3zGDWKKSip3q/7wbqbMYVK 6xSSclwM6wgZuYj2nhwP2w56hpv2bvcCv4EtH1Hy+jYbdHheQC2qnx1P6RfFUrjlNMvE +ttQ== X-Received: by 10.68.203.195 with SMTP id ks3mr34240009pbc.83.1381203523782; Mon, 07 Oct 2013 20:38:43 -0700 (PDT) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id q4sm36740859pba.12.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Oct 2013 20:38:42 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Tue, 08 Oct 2013 12:39:10 +0900 Message-Id: <20131008033910.20455.63317.sendpatchset@w520> In-Reply-To: <20131008033851.20455.68845.sendpatchset@w520> References: <20131008033851.20455.68845.sendpatchset@w520> Subject: [PATCH 02/08] ARM: shmobile: r8a7791 PFC platform device support X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131007_233905_301178_BCC3D0EC X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: khilman@linaro.org, kuninori.morimoto.gx@renesas.com, arnd@arndb.de, Magnus Damm , ryo.kataoka.wt@renesas.com, hisashi.nakamura.ak@renesas.com, horms@verge.net.au, yoshikazu.fujikawa.ue@renesas.com, olof@lixom.net, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Magnus Damm Add a platform device for the r8a7791 PFC device. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/include/mach/r8a7791.h | 1 + arch/arm/mach-shmobile/setup-r8a7791.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) --- 0001/arch/arm/mach-shmobile/include/mach/r8a7791.h +++ work/arch/arm/mach-shmobile/include/mach/r8a7791.h 2013-10-04 18:31:02.000000000 +0900 @@ -4,6 +4,7 @@ void r8a7791_add_standard_devices(void); void r8a7791_add_dt_devices(void); void r8a7791_clock_init(void); +void r8a7791_pinmux_init(void); void r8a7791_init_early(void); extern struct smp_operations r8a7791_smp_ops; --- 0001/arch/arm/mach-shmobile/setup-r8a7791.c +++ work/arch/arm/mach-shmobile/setup-r8a7791.c 2013-10-04 18:31:02.000000000 +0900 @@ -31,6 +31,19 @@ #include #include +static const struct resource pfc_resources[] __initconst = { + DEFINE_RES_MEM(0xe6060000, 0x250), +}; + +#define r8a7791_register_pfc() \ + platform_device_register_simple("pfc-r8a7791", -1, pfc_resources, \ + ARRAY_SIZE(pfc_resources)) + +void __init r8a7791_pinmux_init(void) +{ + r8a7791_register_pfc(); +} + #define SCIF_COMMON(scif_type, baseaddr, irq) \ .type = scif_type, \ .mapbase = baseaddr, \