diff options
author | Kumar Gala <galak@codeaurora.org> | 2014-01-29 17:17:30 -0500 |
---|---|---|
committer | Kumar Gala <galak@codeaurora.org> | 2014-02-04 18:48:54 -0500 |
commit | 3f8e8cee2f4bd02367583cc2d143887d1f49fd6c (patch) | |
tree | 4f1f256517ce35f790384256092cc3ca339a0945 | |
parent | 6a032dba7d2329084dca41cc8d82c0cda13103ef (diff) |
clocksource: qcom: Move clocksource code out of mach-msm
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>
-rw-r--r-- | arch/arm/mach-msm/Kconfig | 13 | ||||
-rw-r--r-- | arch/arm/mach-msm/Makefile | 1 | ||||
-rw-r--r-- | drivers/clocksource/Kconfig | 3 | ||||
-rw-r--r-- | drivers/clocksource/Makefile | 1 | ||||
-rw-r--r-- | drivers/clocksource/qcom-timer.c (renamed from arch/arm/mach-msm/timer.c) | 6 |
5 files changed, 10 insertions, 14 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig index 9625cf378931..3c4eca71f976 100644 --- a/arch/arm/mach-msm/Kconfig +++ b/arch/arm/mach-msm/Kconfig | |||
@@ -21,7 +21,7 @@ config ARCH_MSM8X60 | |||
21 | select CPU_V7 | 21 | select CPU_V7 |
22 | select HAVE_SMP | 22 | select HAVE_SMP |
23 | select MSM_SCM if SMP | 23 | select MSM_SCM if SMP |
24 | select MSM_TIMER | 24 | select CLKSRC_QCOM |
25 | 25 | ||
26 | config ARCH_MSM8960 | 26 | config ARCH_MSM8960 |
27 | bool "Enable support for MSM8960" | 27 | bool "Enable support for MSM8960" |
@@ -29,7 +29,7 @@ config ARCH_MSM8960 | |||
29 | select CPU_V7 | 29 | select CPU_V7 |
30 | select HAVE_SMP | 30 | select HAVE_SMP |
31 | select MSM_SCM if SMP | 31 | select MSM_SCM if SMP |
32 | select MSM_TIMER | 32 | select CLKSRC_QCOM |
33 | 33 | ||
34 | config ARCH_MSM8974 | 34 | config ARCH_MSM8974 |
35 | bool "Enable support for MSM8974" | 35 | bool "Enable support for MSM8974" |
@@ -54,7 +54,7 @@ config ARCH_MSM7X00A | |||
54 | select MACH_TROUT if !MACH_HALIBUT | 54 | select MACH_TROUT if !MACH_HALIBUT |
55 | select MSM_PROC_COMM | 55 | select MSM_PROC_COMM |
56 | select MSM_SMD | 56 | select MSM_SMD |
57 | select MSM_TIMER | 57 | select CLKSRC_QCOM |
58 | select MSM_SMD_PKG3 | 58 | select MSM_SMD_PKG3 |
59 | 59 | ||
60 | config ARCH_MSM7X30 | 60 | config ARCH_MSM7X30 |
@@ -66,7 +66,7 @@ config ARCH_MSM7X30 | |||
66 | select MSM_GPIOMUX | 66 | select MSM_GPIOMUX |
67 | select MSM_PROC_COMM | 67 | select MSM_PROC_COMM |
68 | select MSM_SMD | 68 | select MSM_SMD |
69 | select MSM_TIMER | 69 | select CLKSRC_QCOM |
70 | select MSM_VIC | 70 | select MSM_VIC |
71 | 71 | ||
72 | config ARCH_QSD8X50 | 72 | config ARCH_QSD8X50 |
@@ -78,7 +78,7 @@ config ARCH_QSD8X50 | |||
78 | select MSM_GPIOMUX | 78 | select MSM_GPIOMUX |
79 | select MSM_PROC_COMM | 79 | select MSM_PROC_COMM |
80 | select MSM_SMD | 80 | select MSM_SMD |
81 | select MSM_TIMER | 81 | select CLKSRC_QCOM |
82 | select MSM_VIC | 82 | select MSM_VIC |
83 | 83 | ||
84 | endchoice | 84 | endchoice |
@@ -153,7 +153,4 @@ config MSM_GPIOMUX | |||
153 | config MSM_SCM | 153 | config MSM_SCM |
154 | bool | 154 | bool |
155 | 155 | ||
156 | config MSM_TIMER | ||
157 | bool | ||
158 | |||
159 | endif | 156 | endif |
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile index 8327f603df4c..04b1bee941f5 100644 --- a/arch/arm/mach-msm/Makefile +++ b/arch/arm/mach-msm/Makefile | |||
@@ -1,4 +1,3 @@ | |||
1 | obj-$(CONFIG_MSM_TIMER) += timer.o | ||
2 | obj-$(CONFIG_MSM_PROC_COMM) += clock.o | 1 | obj-$(CONFIG_MSM_PROC_COMM) += clock.o |
3 | 2 | ||
4 | obj-$(CONFIG_MSM_VIC) += irq-vic.o | 3 | obj-$(CONFIG_MSM_VIC) += irq-vic.o |
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index cd6950fd8caf..6510ec4f45ff 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig | |||
@@ -140,3 +140,6 @@ config VF_PIT_TIMER | |||
140 | bool | 140 | bool |
141 | help | 141 | help |
142 | Support for Period Interrupt Timer on Freescale Vybrid Family SoCs. | 142 | Support for Period Interrupt Timer on Freescale Vybrid Family SoCs. |
143 | |||
144 | config CLKSRC_QCOM | ||
145 | bool | ||
diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index c7ca50a9c232..2e0c0cc0a014 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile | |||
@@ -32,6 +32,7 @@ obj-$(CONFIG_CLKSRC_EFM32) += time-efm32.o | |||
32 | obj-$(CONFIG_CLKSRC_EXYNOS_MCT) += exynos_mct.o | 32 | obj-$(CONFIG_CLKSRC_EXYNOS_MCT) += exynos_mct.o |
33 | obj-$(CONFIG_CLKSRC_SAMSUNG_PWM) += samsung_pwm_timer.o | 33 | obj-$(CONFIG_CLKSRC_SAMSUNG_PWM) += samsung_pwm_timer.o |
34 | obj-$(CONFIG_VF_PIT_TIMER) += vf_pit_timer.o | 34 | obj-$(CONFIG_VF_PIT_TIMER) += vf_pit_timer.o |
35 | obj-$(CONFIG_CLKSRC_QCOM) += qcom-timer.o | ||
35 | 36 | ||
36 | obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o | 37 | obj-$(CONFIG_ARM_ARCH_TIMER) += arm_arch_timer.o |
37 | obj-$(CONFIG_ARM_GLOBAL_TIMER) += arm_global_timer.o | 38 | obj-$(CONFIG_ARM_GLOBAL_TIMER) += arm_global_timer.o |
diff --git a/arch/arm/mach-msm/timer.c b/drivers/clocksource/qcom-timer.c index fd1644987534..dca829ec859b 100644 --- a/arch/arm/mach-msm/timer.c +++ b/drivers/clocksource/qcom-timer.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * | 2 | * |
3 | * Copyright (C) 2007 Google, Inc. | 3 | * Copyright (C) 2007 Google, Inc. |
4 | * Copyright (c) 2009-2012, The Linux Foundation. All rights reserved. | 4 | * Copyright (c) 2009-2012,2014, The Linux Foundation. All rights reserved. |
5 | * | 5 | * |
6 | * This software is licensed under the terms of the GNU General Public | 6 | * This software is licensed under the terms of the GNU General Public |
7 | * License version 2, as published by the Free Software Foundation, and | 7 | * License version 2, as published by the Free Software Foundation, and |
@@ -26,10 +26,6 @@ | |||
26 | #include <linux/of_irq.h> | 26 | #include <linux/of_irq.h> |
27 | #include <linux/sched_clock.h> | 27 | #include <linux/sched_clock.h> |
28 | 28 | ||
29 | #include <asm/mach/time.h> | ||
30 | |||
31 | #include "common.h" | ||
32 | |||
33 | #define TIMER_MATCH_VAL 0x0000 | 29 | #define TIMER_MATCH_VAL 0x0000 |
34 | #define TIMER_COUNT_VAL 0x0004 | 30 | #define TIMER_COUNT_VAL 0x0004 |
35 | #define TIMER_ENABLE 0x0008 | 31 | #define TIMER_ENABLE 0x0008 |