From patchwork Tue Mar 26 01:34:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2334371 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 16A933FD8C for ; Tue, 26 Mar 2013 01:35:14 +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 1UKIl2-0000FS-UZ; Tue, 26 Mar 2013 01:33:01 +0000 Received: from mail-da0-x229.google.com ([2607:f8b0:400e:c00::229]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UKIhC-0005sR-5Z for linux-arm-kernel@lists.infradead.org; Tue, 26 Mar 2013 01:29:03 +0000 Received: by mail-da0-f41.google.com with SMTP id w4so3461886dam.14 for ; Mon, 25 Mar 2013 18:28:57 -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=pW9H9TLqQWvBL8obkSzDpyBcfLuCxDs7h6vQ9vo+2ZwcAH0C4lZC7V0HulTiDtBQNM oPst3lIJq/zrLCXdAdoDiq3iWG9va4nRcgbzravcZr2nFJkgTO6JNtWLJH7RsUFxI++/ Cy+bALyxESPQEEiaVxJJRQKW/VFI8/5i9cWhwdc8xVYLkwvu0D0r7EDUI4XgyQ0QvBtY m+tP0hemO9lVLqpbKXfp/YKB81ZGdveU4SeIGoTSlfhis5Bk2/FU/dEDB7f4jta2OtlI xfzwkN1+rz6qyeDAm2f0YWKmb4NnRNXmJvBQ494Wa8XyR1L13kAHmZqUHaFzvEuyd11r YdoA== X-Received: by 10.68.217.202 with SMTP id pa10mr20636507pbc.11.1364261337030; Mon, 25 Mar 2013 18:28:57 -0700 (PDT) Received: from [127.0.0.1] (FLH1All083.tky.mesh.ad.jp. [211.13.49.83]) by mx.google.com with ESMTPS id ti8sm15351688pbc.12.2013.03.25.18.28.54 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Mar 2013 18:28:55 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Tue, 26 Mar 2013 10:34:52 +0900 Message-Id: <20130326013452.11796.62159.sendpatchset@w520> In-Reply-To: <20130326013414.11796.9937.sendpatchset@w520> References: <20130326013414.11796.9937.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-20130325_212902_426857_669A244B X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 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, \