From patchwork Wed Mar 20 22:54:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 2310431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 4B1F9DF24C for ; Wed, 20 Mar 2013 23:03:29 +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 1UIRza-0005Oa-FR; Wed, 20 Mar 2013 23:00:22 +0000 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UIRu3-0002Jq-C6 for linux-arm-kernel@lists.infradead.org; Wed, 20 Mar 2013 22:54:49 +0000 Received: by mail-ob0-f181.google.com with SMTP id ni5so2256756obc.12 for ; Wed, 20 Mar 2013 15:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=jvL2qfnEVBdd1PtoC45d9Ip7JVrXPLkUl3+VS3g8MzU=; b=dMI1E3NIzJKMoFq7QpGtQDw82ySFQ3SclGGg3ecPDqolP+7uKMcv4WRJegj8e6UAbc ybbYUJimlueUfUAdFQKSbkll04X8qCe6y1PTZ37XmNNe44KaTABQzOM5+HmBOzhvuAZ8 b6CVH9E+AdQYQzpyXr3rTAp0JeLAVRJJJ3boi1PhA7L64jECz96dxBa0uudVKnVxPAV9 kBeWy0KxWgnkROPnU2UIX3CRm4m/2sjlfqczzWGa76e+trF+driGg/ChYVKmH3BStbUA hRJvd67xrh3s6gJhHuXx+5yrVNY8Af8C1b3ft29r2DbK1EJWv03pjUrFwMCtN2jQDqmL wjXA== X-Received: by 10.60.32.134 with SMTP id j6mr5513620oei.15.1363820078643; Wed, 20 Mar 2013 15:54:38 -0700 (PDT) Received: from rob-laptop.calxeda.com ([173.226.190.126]) by mx.google.com with ESMTPS id be1sm4358963obb.11.2013.03.20.15.54.37 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 15:54:38 -0700 (PDT) From: Rob Herring To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH 10/11] ARM: move sp804 and integrator timers to drivers/clocksource Date: Wed, 20 Mar 2013 17:54:10 -0500 Message-Id: <1363820051-24428-11-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1363820051-24428-1-git-send-email-robherring2@gmail.com> References: <1363820051-24428-1-git-send-email-robherring2@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130320_185439_783603_127031D2 X-CRM114-Status: GOOD ( 20.76 ) X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (robherring2[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (robherring2[at]gmail.com) -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: Russell King , Arnd Bergmann , pawel.moll@arm.com, linus.walleij@linaro.org, Rob Herring , john.stultz@linaro.org, haojian.zhuang@linaro.org, tglx@linutronix.de 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: Rob Herring Move timer-sp and integrator-ap timer code to drivers/clocksource and update timer-sp.h and arm_timer.h includes. This adds CLKSRC_OF support for the integrator-ap timer and removes the use of "arm,timer-primary" and "arm,timer-secondary" aliases. The timer selection should not be important as all 3 timers are equal capability. Signed-off-by: Rob Herring Cc: Russell King Cc: John Stultz Cc: Thomas Gleixner Acked-by: Linus Walleij --- arch/arm/Kconfig | 6 - arch/arm/common/Makefile | 1 - arch/arm/mach-integrator/Kconfig | 1 + arch/arm/mach-integrator/integrator_ap.c | 169 +---------------- arch/arm/mach-integrator/integrator_cp.c | 3 +- arch/arm/mach-realview/core.c | 3 +- arch/arm/mach-versatile/core.c | 2 +- arch/arm/mach-vexpress/ct-ca9x4.c | 4 +- arch/arm/mach-vexpress/v2m.c | 3 +- drivers/clocksource/Kconfig | 12 ++ drivers/clocksource/Makefile | 2 + .../hardware => drivers/clocksource}/arm_timer.h | 6 +- drivers/clocksource/integrator_ap_timer.c | 190 ++++++++++++++++++++ .../arm/common => drivers/clocksource}/timer-sp.c | 9 +- include/clocksource/integrator_ap_timer.h | 7 + .../hardware => include/clocksource}/timer-sp.h | 8 + 16 files changed, 232 insertions(+), 194 deletions(-) rename {arch/arm/include/asm/hardware => drivers/clocksource}/arm_timer.h (89%) create mode 100644 drivers/clocksource/integrator_ap_timer.c rename {arch/arm/common => drivers/clocksource}/timer-sp.c (98%) create mode 100644 include/clocksource/integrator_ap_timer.h rename {arch/arm/include/asm/hardware => include/clocksource}/timer-sp.h (84%) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 774131a..46970d7 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1169,12 +1169,6 @@ config PLAT_PXA config PLAT_VERSATILE bool -config ARM_TIMER_SP804 - bool - select CLKSRC_MMIO - select CLKSRC_OF if OF - select HAVE_SCHED_CLOCK - source arch/arm/mm/Kconfig config ARM_NR_BANKS diff --git a/arch/arm/common/Makefile b/arch/arm/common/Makefile index dc8dd0d..5a4cc1a 100644 --- a/arch/arm/common/Makefile +++ b/arch/arm/common/Makefile @@ -10,4 +10,3 @@ obj-$(CONFIG_SHARP_LOCOMO) += locomo.o obj-$(CONFIG_SHARP_PARAM) += sharpsl_param.o obj-$(CONFIG_SHARP_SCOOP) += scoop.o obj-$(CONFIG_PCI_HOST_ITE8152) += it8152.o -obj-$(CONFIG_ARM_TIMER_SP804) += timer-sp.o diff --git a/arch/arm/mach-integrator/Kconfig b/arch/arm/mach-integrator/Kconfig index abeff25..c5e4ff3 100644 --- a/arch/arm/mach-integrator/Kconfig +++ b/arch/arm/mach-integrator/Kconfig @@ -5,6 +5,7 @@ menu "Integrator Options" config ARCH_INTEGRATOR_AP bool "Support Integrator/AP and Integrator/PP2 platforms" select CLKSRC_MMIO + select INTEGRATOR_AP_TIMER select MIGHT_HAVE_PCI select SERIAL_AMBA_PL010 select SERIAL_AMBA_PL010_CONSOLE diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 4cb322d..6b5f540 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c @@ -27,8 +27,6 @@ #include #include #include -#include -#include #include #include #include @@ -41,15 +39,14 @@ #include #include #include +#include #include