diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2013-12-30 16:15:31 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-01-09 03:08:44 -0500 |
commit | 301c5a993d62d74e98cb965fcb04eeffb0e1db32 (patch) | |
tree | 0c3f3943778d4a920b22bc926538c17de5b95314 /arch/arm/mach-msm | |
parent | 0158a4a733d8f7141530279ba4653004704e9306 (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/Kconfig | 9 | ||||
-rw-r--r-- | arch/arm/mach-msm/Makefile | 2 |
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 | ||
21 | config ARCH_MSM7X30 | 22 | config 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 | ||
32 | config ARCH_QSD8X50 | 34 | config 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 | ||
43 | endchoice | 46 | endchoice |
@@ -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 | ||
54 | config ARCH_MSM8960 | 58 | config 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 | ||
63 | config ARCH_MSM8974 | 68 | config ARCH_MSM8974 |
64 | bool "MSM8974" | 69 | bool "MSM8974" |
@@ -145,4 +150,8 @@ config MSM_GPIOMUX | |||
145 | 150 | ||
146 | config MSM_SCM | 151 | config MSM_SCM |
147 | bool | 152 | bool |
153 | |||
154 | config MSM_TIMER | ||
155 | bool | ||
156 | |||
148 | endif | 157 | endif |
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 @@ | |||
1 | obj-y += timer.o | 1 | obj-$(CONFIG_MSM_TIMER) += timer.o |
2 | obj-$(CONFIG_MSM_PROC_COMM) += clock.o | 2 | obj-$(CONFIG_MSM_PROC_COMM) += clock.o |
3 | 3 | ||
4 | obj-$(CONFIG_MSM_VIC) += irq-vic.o | 4 | obj-$(CONFIG_MSM_VIC) += irq-vic.o |