From patchwork Mon Mar 18 14:32:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2293661 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 200603FCF6 for ; Mon, 18 Mar 2013 15:25:55 +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 1UHbt9-0007M7-Hw; Mon, 18 Mar 2013 15:22:15 +0000 Received: from mail-pb0-f44.google.com ([209.85.160.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UHb1Z-0000Nh-69 for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2013 14:26:54 +0000 Received: by mail-pb0-f44.google.com with SMTP id wz12so6478227pbc.3 for ; Mon, 18 Mar 2013 07:26:48 -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=rHVwKvpU2ZRrYEeb9qneQI+y9XYCQ4bxvcDGiA31k5w=; b=twwPJQYic2U3ggUnE7yF/Y8wWq7bd9BBv5KEr5LGzOSWxt2Sy6H/cX9NiQsroOH3Tq t0zzDOedlfhZtBcczc6Xa16p3Tw/KH/csHq6aC7iY4GXa5ncN4P8rMM9tsNo2KVzACKA Bl2pJ8BksiQAa2pPtoGEVldOX6Tv8MNn1n/wK7agI1S4vl4xfJezTWvNGI+rnQ7VpU/u 99Fu7aosdC+rxqaJlgFKJlz+2zvssGY2j9Fthmoh+pLyqehElzrcE80ue5GffH+JK1fd G9gLFh5CxtoNFKAqlo/CClloycoEVqz4rt2EmbFQylH9gCLWs6FDWIit3Qg1Wj0C1/ln 0pOg== X-Received: by 10.66.151.2 with SMTP id um2mr10682635pab.42.1363616808393; Mon, 18 Mar 2013 07:26:48 -0700 (PDT) Received: from [127.0.0.1] (FLH1All083.tky.mesh.ad.jp. [211.13.49.83]) by mx.google.com with ESMTPS id is1sm20371841pbc.15.2013.03.18.07.26.45 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Mar 2013 07:26:47 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Mon, 18 Mar 2013 23:32:41 +0900 Message-Id: <20130318143241.26687.75018.sendpatchset@w520> In-Reply-To: <20130318143203.26687.98180.sendpatchset@w520> References: <20130318143203.26687.98180.sendpatchset@w520> Subject: [PATCH 04/04] ARM: shmobile: r8a73a4 PFC support X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130318_102653_481646_C91C0A04 X-CRM114-Status: UNSURE ( 9.23 ) 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.44 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 r8a73a4 PFC. Signed-off-by: Magnus Damm --- No build time dependency, but requires PFC tables in separate patch series to actually do something. arch/arm/mach-shmobile/Kconfig | 1 + arch/arm/mach-shmobile/include/mach/r8a73a4.h | 1 + arch/arm/mach-shmobile/setup-r8a73a4.c | 10 ++++++++++ 3 files changed, 12 insertions(+) --- 0005/arch/arm/mach-shmobile/Kconfig +++ work/arch/arm/mach-shmobile/Kconfig 2013-03-18 18:51:13.000000000 +0900 @@ -20,6 +20,7 @@ config ARCH_SH73A0 config ARCH_R8A73A4 bool "R-Mobile APE6 (R8A73A40)" + select ARCH_WANT_OPTIONAL_GPIOLIB select ARM_GIC select CPU_V7 select ARM_ARCH_TIMER --- 0003/arch/arm/mach-shmobile/include/mach/r8a73a4.h +++ work/arch/arm/mach-shmobile/include/mach/r8a73a4.h 2013-03-18 18:51:13.000000000 +0900 @@ -3,5 +3,6 @@ void r8a73a4_add_standard_devices(void); void r8a73a4_clock_init(void); +void r8a73a4_pinmux_init(void); #endif /* __ASM_R8A73A4_H__ */ --- 0005/arch/arm/mach-shmobile/setup-r8a73a4.c +++ work/arch/arm/mach-shmobile/setup-r8a73a4.c 2013-03-18 18:53:50.000000000 +0900 @@ -28,6 +28,16 @@ #include #include +static const struct resource pfc_resources[] = { + DEFINE_RES_MEM(0xe6050000, 0x9000), +}; + +void __init r8a73a4_pinmux_init(void) +{ + platform_device_register_simple("pfc-r8a73a4", -1, pfc_resources, + ARRAY_SIZE(pfc_resources)); +} + #define SCIF_COMMON(scif_type, baseaddr, irq) \ .type = PORT_SCIFA, \ .mapbase = baseaddr, \