summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/board-msm8960.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2012-09-05 12:28:52 -0700
committerDavid Brown <davidb@codeaurora.org>2012-09-13 11:14:37 -0700
commit4312a7ef9cd744849e16ef4bdeb7ca6beec9ec76 (patch)
tree6e42fe0cfabf49a6126954b5b726c8a448169c85 /arch/arm/mach-msm/board-msm8960.c
parent66a8950949c12a2600ff62e78b24f42ef8f6d28e (diff)
downloadop-kernel-dev-4312a7ef9cd744849e16ef4bdeb7ca6beec9ec76.zip
op-kernel-dev-4312a7ef9cd744849e16ef4bdeb7ca6beec9ec76.tar.gz
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/board-msm8960.c')
-rw-r--r--arch/arm/mach-msm/board-msm8960.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/board-msm8960.c b/arch/arm/mach-msm/board-msm8960.c
index bdafe79..fafead2 100644
--- a/arch/arm/mach-msm/board-msm8960.c
+++ b/arch/arm/mach-msm/board-msm8960.c
@@ -31,6 +31,7 @@
#include <mach/msm_iomap.h>
#include "devices.h"
+#include "common.h"
static void __init msm8960_fixup(struct tag *tag, char **cmdline,
struct meminfo *mi)
@@ -90,7 +91,7 @@ MACHINE_START(MSM8960_SIM, "QCT MSM8960 SIMULATOR")
.reserve = msm8960_reserve,
.map_io = msm8960_map_io,
.init_irq = msm8960_init_irq,
- .timer = &msm_timer,
+ .timer = &msm8960_timer,
.handle_irq = gic_handle_irq,
.init_machine = msm8960_sim_init,
.init_late = msm8960_init_late,
@@ -101,7 +102,7 @@ MACHINE_START(MSM8960_RUMI3, "QCT MSM8960 RUMI3")
.reserve = msm8960_reserve,
.map_io = msm8960_map_io,
.init_irq = msm8960_init_irq,
- .timer = &msm_timer,
+ .timer = &msm8960_timer,
.handle_irq = gic_handle_irq,
.init_machine = msm8960_rumi3_init,
.init_late = msm8960_init_late,
OpenPOWER on IntegriCloud