]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clocksource: qcom: Move clocksource code out of mach-msm
authorKumar Gala <galak@codeaurora.org>
Wed, 29 Jan 2014 22:17:30 +0000 (16:17 -0600)
committerKumar Gala <galak@codeaurora.org>
Tue, 4 Feb 2014 23:48:54 +0000 (17:48 -0600)
We intend to share the clocksource code for MSM platforms between legacy
and multiplatform supported qcom SoCs.

Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Kumar Gala <galak@codeaurora.org>
arch/arm/mach-msm/Kconfig
arch/arm/mach-msm/Makefile
drivers/clocksource/Kconfig
drivers/clocksource/Makefile
drivers/clocksource/qcom-timer.c [moved from arch/arm/mach-msm/timer.c with 98% similarity]

index 9625cf378931faa7b3e6740f963ac2128d7f92fe..3c4eca71f9766586aa350464def9b18926ba043c 100644 (file)
@@ -21,7 +21,7 @@ config ARCH_MSM8X60
        select CPU_V7
        select HAVE_SMP
        select MSM_SCM if SMP
-       select MSM_TIMER
+       select CLKSRC_QCOM
 
 config ARCH_MSM8960
        bool "Enable support for MSM8960"
@@ -29,7 +29,7 @@ config ARCH_MSM8960
        select CPU_V7
        select HAVE_SMP
        select MSM_SCM if SMP
-       select MSM_TIMER
+       select CLKSRC_QCOM
 
 config ARCH_MSM8974
        bool "Enable support for MSM8974"
@@ -54,7 +54,7 @@ config ARCH_MSM7X00A
        select MACH_TROUT if !MACH_HALIBUT
        select MSM_PROC_COMM
        select MSM_SMD
-       select MSM_TIMER
+       select CLKSRC_QCOM
        select MSM_SMD_PKG3
 
 config ARCH_MSM7X30
@@ -66,7 +66,7 @@ config ARCH_MSM7X30
        select MSM_GPIOMUX
        select MSM_PROC_COMM
        select MSM_SMD
-       select MSM_TIMER
+       select CLKSRC_QCOM
        select MSM_VIC
 
 config ARCH_QSD8X50
@@ -78,7 +78,7 @@ config ARCH_QSD8X50
        select MSM_GPIOMUX
        select MSM_PROC_COMM
        select MSM_SMD
-       select MSM_TIMER
+       select CLKSRC_QCOM
        select MSM_VIC
 
 endchoice
@@ -153,7 +153,4 @@ config MSM_GPIOMUX
 config MSM_SCM
        bool
 
-config MSM_TIMER
-       bool
-
 endif
index 8327f603df4ce063976f123e321ddb3f1cadc003..04b1bee941f556afb606fe9e20f19974b3a2c4f7 100644 (file)
@@ -1,4 +1,3 @@
-obj-$(CONFIG_MSM_TIMER) += timer.o
 obj-$(CONFIG_MSM_PROC_COMM) += clock.o
 
 obj-$(CONFIG_MSM_VIC) += irq-vic.o
index cd6950fd8caf063417f6717db581f39d69100ed4..6510ec4f45ff8ac88921377a0f6d703f4325f587 100644 (file)
@@ -140,3 +140,6 @@ config VF_PIT_TIMER
        bool
        help
          Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
+
+config CLKSRC_QCOM
+       bool
index c7ca50a9c232bdcc246fbce2508f71ff6dbcab97..2e0c0cc0a014fe6d9a3368e08fb5040abc045d63 100644 (file)
@@ -32,6 +32,7 @@ obj-$(CONFIG_CLKSRC_EFM32)    += time-efm32.o
 obj-$(CONFIG_CLKSRC_EXYNOS_MCT)        += exynos_mct.o
 obj-$(CONFIG_CLKSRC_SAMSUNG_PWM)       += samsung_pwm_timer.o
 obj-$(CONFIG_VF_PIT_TIMER)     += vf_pit_timer.o
+obj-$(CONFIG_CLKSRC_QCOM)      += qcom-timer.o
 
 obj-$(CONFIG_ARM_ARCH_TIMER)           += arm_arch_timer.o
 obj-$(CONFIG_ARM_GLOBAL_TIMER)         += arm_global_timer.o
similarity index 98%
rename from arch/arm/mach-msm/timer.c
rename to drivers/clocksource/qcom-timer.c
index fd1644987534e6a54db4a7b157f9df817eff222e..dca829ec859bbdbd266a50996bac89274cf979a3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *
  * Copyright (C) 2007 Google, Inc.
- * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2009-2012,2014, The Linux Foundation. All rights reserved.
  *
  * This software is licensed under the terms of the GNU General Public
  * License version 2, as published by the Free Software Foundation, and
 #include <linux/of_irq.h>
 #include <linux/sched_clock.h>
 
-#include <asm/mach/time.h>
-
-#include "common.h"
-
 #define TIMER_MATCH_VAL                        0x0000
 #define TIMER_COUNT_VAL                        0x0004
 #define TIMER_ENABLE                   0x0008