Skip to content

Commit

Permalink
ARM: msm: Only build timer.c if required
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and Olof Johansson committed Jan 9, 2014
1 parent 0158a4a commit 301c5a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions arch/arm/mach-msm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ config ARCH_MSM7X00A
select MACH_TROUT if !MACH_HALIBUT
select MSM_PROC_COMM
select MSM_SMD
select MSM_TIMER
select MSM_SMD_PKG3

config ARCH_MSM7X30
Expand All @@ -27,6 +28,7 @@ config ARCH_MSM7X30
select MSM_GPIOMUX
select MSM_PROC_COMM
select MSM_SMD
select MSM_TIMER
select MSM_VIC

config ARCH_QSD8X50
Expand All @@ -38,6 +40,7 @@ config ARCH_QSD8X50
select MSM_GPIOMUX
select MSM_PROC_COMM
select MSM_SMD
select MSM_TIMER
select MSM_VIC

endchoice
Expand All @@ -50,6 +53,7 @@ config ARCH_MSM8X60
select GPIO_MSM_V2
select HAVE_SMP
select MSM_SCM if SMP
select MSM_TIMER

config ARCH_MSM8960
bool "MSM8960"
Expand All @@ -59,6 +63,7 @@ config ARCH_MSM8960
select HAVE_SMP
select GPIO_MSM_V2
select MSM_SCM if SMP
select MSM_TIMER

config ARCH_MSM8974
bool "MSM8974"
Expand Down Expand Up @@ -145,4 +150,8 @@ config MSM_GPIOMUX

config MSM_SCM
bool

config MSM_TIMER
bool

endif
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
obj-y += timer.o
obj-$(CONFIG_MSM_TIMER) += timer.o
obj-$(CONFIG_MSM_PROC_COMM) += clock.o

obj-$(CONFIG_MSM_VIC) += irq-vic.o
Expand Down

0 comments on commit 301c5a9

Please sign in to comment.