aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/include/mach
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2012-09-05 15:28:52 -0400
committerDavid Brown <davidb@codeaurora.org>2012-09-13 14:14:37 -0400
commit4312a7ef9cd744849e16ef4bdeb7ca6beec9ec76 (patch)
tree6e42fe0cfabf49a6126954b5b726c8a448169c85 /arch/arm/mach-msm/include/mach
parent66a8950949c12a2600ff62e78b24f42ef8f6d28e (diff)
ARM: msm: Allow timer.c to compile on multiple targets
The timer code relies on #defines from mach/iomap.h, cpu_is_*() checks, and a global irq #define. All this makes this file impossible to compile in a mult-target build. Therefore, make a sys_timer struct for each SoC so that machine descriptors can reference the correct timer. Then go through and replace all the defines with raw values that are passed to a common initialization function. This paves the way to adding DT support to this code as well as allows us to compile this file on multiple targets at the same time. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/include/mach')
-rw-r--r--arch/arm/mach-msm/include/mach/board.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/include/mach/board.h b/arch/arm/mach-msm/include/mach/board.h
index 435f8edfafd1..fc40bbc18e41 100644
--- a/arch/arm/mach-msm/include/mach/board.h
+++ b/arch/arm/mach-msm/include/mach/board.h
@@ -33,8 +33,6 @@ struct msm_acpu_clock_platform_data
33 33
34struct clk_lookup; 34struct clk_lookup;
35 35
36extern struct sys_timer msm_timer;
37
38/* common init routines for use by arch/arm/mach-msm/board-*.c */ 36/* common init routines for use by arch/arm/mach-msm/board-*.c */
39 37
40void __init msm_add_devices(void); 38void __init msm_add_devices(void);