From patchwork Wed Mar 27 15:50:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2351711 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 466D43FC8C for ; Wed, 27 Mar 2013 15:47:02 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UKsWi-0001Ch-02; Wed, 27 Mar 2013 15:44:36 +0000 Received: from mail-pb0-f53.google.com ([209.85.160.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UKsWH-00015a-DK for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2013 15:44:10 +0000 Received: by mail-pb0-f53.google.com with SMTP id un1so5318533pbc.12 for ; Wed, 27 Mar 2013 08:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:date:message-id:in-reply-to:references :subject; bh=H2a9XJdo58+iCPdTeNh4vTpXAXcFlYt38BhWYamMsvI=; b=U4/ZGj2pq+7LQqU9Bz6uaABlwL5kWjTJjDj40oC3IVhgZ3p14aM81l2+LgkHiVNqI1 RL4uXsS8w72tIfFhFXAdjf3/aXtNiJCBSl9wYQHBAuVjRpH6ELuO0HA/NN3jMDJcjkjX /w4JexJ1LTicfZcc2qYTAfzc9i+ZyGHLzyaOW789EEVAKoTaIcWUq6T/PkGejoWHr2a/ ZEP7hRdsgLD/tp87OPKAYK/lMCp/XKvv753r5JJDABJiLslx6vIhCOThTIddYcN4esUA 1HCUBYt5w79yFRGmy0HICg3wTy2K2qA8fMtt1kfYGCyvEAUyfQCFhM5SCspxtQwDNwmD lmrg== X-Received: by 10.68.204.234 with SMTP id lb10mr15542593pbc.64.1364399047749; Wed, 27 Mar 2013 08:44:07 -0700 (PDT) Received: from [127.0.0.1] (FLH1All083.tky.mesh.ad.jp. [211.13.49.83]) by mx.google.com with ESMTPS id ql7sm21915920pbb.2.2013.03.27.08.44.04 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Mar 2013 08:44:06 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 28 Mar 2013 00:50:03 +0900 Message-Id: <20130327155003.10876.51231.sendpatchset@w520> In-Reply-To: <20130327154925.10876.40575.sendpatchset@w520> References: <20130327154925.10876.40575.sendpatchset@w520> Subject: [PATCH 04/04] ARM: shmobile: r8a7790 PFC support X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130327_114409_664236_33819F8C X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.53 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (magnus.damm[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: kuninori.morimoto.gx@renesas.com, arnd@arndb.de, Magnus Damm , horms@verge.net.au, 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 From: Magnus Damm Add a platform device for the r8a7790 PFC. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/Kconfig | 1 + arch/arm/mach-shmobile/include/mach/r8a7790.h | 1 + arch/arm/mach-shmobile/setup-r8a7790.c | 10 ++++++++++ 3 files changed, 12 insertions(+) --- 0019/arch/arm/mach-shmobile/Kconfig +++ work/arch/arm/mach-shmobile/Kconfig 2013-03-27 23:11:38.000000000 +0900 @@ -45,6 +45,7 @@ config ARCH_R8A7779 config ARCH_R8A7790 bool "R-Car H2 (R8A77900)" + select ARCH_WANT_OPTIONAL_GPIOLIB select ARM_GIC select CPU_V7 select ARM_ARCH_TIMER --- 0017/arch/arm/mach-shmobile/include/mach/r8a7790.h +++ work/arch/arm/mach-shmobile/include/mach/r8a7790.h 2013-03-27 23:12:02.000000000 +0900 @@ -3,5 +3,6 @@ void r8a7790_add_standard_devices(void); void r8a7790_clock_init(void); +void r8a7790_pinmux_init(void); #endif /* __ASM_R8A7790_H__ */ --- 0019/arch/arm/mach-shmobile/setup-r8a7790.c +++ work/arch/arm/mach-shmobile/setup-r8a7790.c 2013-03-27 23:12:58.000000000 +0900 @@ -29,6 +29,16 @@ #include #include +static const struct resource pfc_resources[] = { + DEFINE_RES_MEM(0xe6060000, 0x250), +}; + +void __init r8a7790_pinmux_init(void) +{ + platform_device_register_simple("pfc-r8a7790", -1, pfc_resources, + ARRAY_SIZE(pfc_resources)); +} + #define SCIF_COMMON(scif_type, baseaddr, irq) \ .type = scif_type, \ .mapbase = baseaddr, \