Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754545Ab3CTWym (ORCPT ); Wed, 20 Mar 2013 18:54:42 -0400 Received: from mail-ob0-f175.google.com ([209.85.214.175]:65533 "EHLO mail-ob0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754359Ab3CTWyj (ORCPT ); Wed, 20 Mar 2013 18:54:39 -0400 From: Rob Herring To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Cc: Arnd Bergmann , linus.walleij@linaro.org, Russell King , haojian.zhuang@linaro.org, pawel.moll@arm.com, john.stultz@linaro.org, tglx@linutronix.de, Rob Herring 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 21907 Lines: 740 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 --- 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