aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2013-12-30 16:15:31 -0500
committerOlof Johansson <olof@lixom.net>2014-01-09 03:08:44 -0500
commit301c5a993d62d74e98cb965fcb04eeffb0e1db32 (patch)
tree0c3f3943778d4a920b22bc926538c17de5b95314 /arch/arm/mach-msm
parent0158a4a733d8f7141530279ba4653004704e9306 (diff)
ARM: msm: Only build timer.c if required
The MSM timer is only used on MSM devices that don't have the architected timers. Introduce a hidden Kconfig option for this driver so that we don't build it on the platforms that don't need it. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r--arch/arm/mach-msm/Kconfig9
-rw-r--r--arch/arm/mach-msm/Makefile2
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig
index 702553b96137..ff69e1cf1dfe 100644
--- a/arch/arm/mach-msm/Kconfig
+++ b/arch/arm/mach-msm/Kconfig
@@ -16,6 +16,7 @@ config ARCH_MSM7X00A
16 select MACH_TROUT if !MACH_HALIBUT 16 select MACH_TROUT if !MACH_HALIBUT
17 select MSM_PROC_COMM 17 select MSM_PROC_COMM
18 select MSM_SMD 18 select MSM_SMD
19 select MSM_TIMER
19 select MSM_SMD_PKG3 20 select MSM_SMD_PKG3
20 21
21config ARCH_MSM7X30 22config ARCH_MSM7X30
@@ -27,6 +28,7 @@ config ARCH_MSM7X30
27 select MSM_GPIOMUX 28 select MSM_GPIOMUX
28 select MSM_PROC_COMM 29 select MSM_PROC_COMM
29 select MSM_SMD 30 select MSM_SMD
31 select MSM_TIMER
30 select MSM_VIC 32 select MSM_VIC
31 33
32config ARCH_QSD8X50 34config ARCH_QSD8X50
@@ -38,6 +40,7 @@ config ARCH_QSD8X50
38 select MSM_GPIOMUX 40 select MSM_GPIOMUX
39 select MSM_PROC_COMM 41 select MSM_PROC_COMM
40 select MSM_SMD 42 select MSM_SMD
43 select MSM_TIMER
41 select MSM_VIC 44 select MSM_VIC
42 45
43endchoice 46endchoice
@@ -50,6 +53,7 @@ config ARCH_MSM8X60
50 select GPIO_MSM_V2 53 select GPIO_MSM_V2
51 select HAVE_SMP 54 select HAVE_SMP
52 select MSM_SCM if SMP 55 select MSM_SCM if SMP
56 select MSM_TIMER
53 57
54config ARCH_MSM8960 58config ARCH_MSM8960
55 bool "MSM8960" 59 bool "MSM8960"
@@ -59,6 +63,7 @@ config ARCH_MSM8960
59 select HAVE_SMP 63 select HAVE_SMP
60 select GPIO_MSM_V2 64 select GPIO_MSM_V2
61 select MSM_SCM if SMP 65 select MSM_SCM if SMP
66 select MSM_TIMER
62 67
63config ARCH_MSM8974 68config ARCH_MSM8974
64 bool "MSM8974" 69 bool "MSM8974"
@@ -145,4 +150,8 @@ config MSM_GPIOMUX
145 150
146config MSM_SCM 151config MSM_SCM
147 bool 152 bool
153
154config MSM_TIMER
155 bool
156
148endif 157endif
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile
index 6baae6e6c46e..8e307a10d3c3 100644
--- a/arch/arm/mach-msm/Makefile
+++ b/arch/arm/mach-msm/Makefile
@@ -1,4 +1,4 @@
1obj-y += timer.o 1obj-$(CONFIG_MSM_TIMER) += timer.o
2obj-$(CONFIG_MSM_PROC_COMM) += clock.o 2obj-$(CONFIG_MSM_PROC_COMM) += clock.o
3 3
4obj-$(CONFIG_MSM_VIC) += irq-vic.o 4obj-$(CONFIG_MSM_VIC) += irq-vic.o