diff options
-rw-r--r-- | arch/arm/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-dt-8660.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-dt-8960.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/common.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-msm/timer.c | 17 |
5 files changed, 4 insertions, 17 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ba412e02ec0c..36dfd06eaaa2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -630,6 +630,7 @@ config ARCH_MSM | |||
630 | bool "Qualcomm MSM" | 630 | bool "Qualcomm MSM" |
631 | select ARCH_REQUIRE_GPIOLIB | 631 | select ARCH_REQUIRE_GPIOLIB |
632 | select CLKDEV_LOOKUP | 632 | select CLKDEV_LOOKUP |
633 | select CLKSRC_OF if OF | ||
633 | select COMMON_CLK | 634 | select COMMON_CLK |
634 | select GENERIC_CLOCKEVENTS | 635 | select GENERIC_CLOCKEVENTS |
635 | help | 636 | help |
diff --git a/arch/arm/mach-msm/board-dt-8660.c b/arch/arm/mach-msm/board-dt-8660.c index f1d9c827f24e..95f9cae43ce8 100644 --- a/arch/arm/mach-msm/board-dt-8660.c +++ b/arch/arm/mach-msm/board-dt-8660.c | |||
@@ -45,6 +45,5 @@ DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)") | |||
45 | .smp = smp_ops(msm_smp_ops), | 45 | .smp = smp_ops(msm_smp_ops), |
46 | .init_machine = msm8x60_dt_init, | 46 | .init_machine = msm8x60_dt_init, |
47 | .init_late = msm8x60_init_late, | 47 | .init_late = msm8x60_init_late, |
48 | .init_time = msm_dt_timer_init, | ||
49 | .dt_compat = msm8x60_fluid_match, | 48 | .dt_compat = msm8x60_fluid_match, |
50 | MACHINE_END | 49 | MACHINE_END |
diff --git a/arch/arm/mach-msm/board-dt-8960.c b/arch/arm/mach-msm/board-dt-8960.c index f930eaf8f54c..d4ca52c45111 100644 --- a/arch/arm/mach-msm/board-dt-8960.c +++ b/arch/arm/mach-msm/board-dt-8960.c | |||
@@ -30,7 +30,6 @@ static const char * const msm8960_dt_match[] __initconst = { | |||
30 | 30 | ||
31 | DT_MACHINE_START(MSM8960_DT, "Qualcomm MSM (Flattened Device Tree)") | 31 | DT_MACHINE_START(MSM8960_DT, "Qualcomm MSM (Flattened Device Tree)") |
32 | .smp = smp_ops(msm_smp_ops), | 32 | .smp = smp_ops(msm_smp_ops), |
33 | .init_time = msm_dt_timer_init, | ||
34 | .init_machine = msm_dt_init, | 33 | .init_machine = msm_dt_init, |
35 | .dt_compat = msm8960_dt_match, | 34 | .dt_compat = msm8960_dt_match, |
36 | MACHINE_END | 35 | MACHINE_END |
diff --git a/arch/arm/mach-msm/common.h b/arch/arm/mach-msm/common.h index 569bd1605c18..20ebf8727930 100644 --- a/arch/arm/mach-msm/common.h +++ b/arch/arm/mach-msm/common.h | |||
@@ -14,7 +14,6 @@ | |||
14 | 14 | ||
15 | extern void msm7x01_timer_init(void); | 15 | extern void msm7x01_timer_init(void); |
16 | extern void msm7x30_timer_init(void); | 16 | extern void msm7x30_timer_init(void); |
17 | extern void msm_dt_timer_init(void); | ||
18 | extern void qsd8x50_timer_init(void); | 17 | extern void qsd8x50_timer_init(void); |
19 | 18 | ||
20 | extern void msm_map_common_io(void); | 19 | extern void msm_map_common_io(void); |
diff --git a/arch/arm/mach-msm/timer.c b/arch/arm/mach-msm/timer.c index 8697cfc0d0b6..57a9aecd4f41 100644 --- a/arch/arm/mach-msm/timer.c +++ b/arch/arm/mach-msm/timer.c | |||
@@ -219,15 +219,8 @@ err: | |||
219 | } | 219 | } |
220 | 220 | ||
221 | #ifdef CONFIG_OF | 221 | #ifdef CONFIG_OF |
222 | static const struct of_device_id msm_timer_match[] __initconst = { | 222 | static void __init msm_dt_timer_init(struct device_node *np) |
223 | { .compatible = "qcom,kpss-timer" }, | ||
224 | { .compatible = "qcom,scss-timer" }, | ||
225 | { }, | ||
226 | }; | ||
227 | |||
228 | void __init msm_dt_timer_init(void) | ||
229 | { | 223 | { |
230 | struct device_node *np; | ||
231 | u32 freq; | 224 | u32 freq; |
232 | int irq; | 225 | int irq; |
233 | struct resource res; | 226 | struct resource res; |
@@ -235,12 +228,6 @@ void __init msm_dt_timer_init(void) | |||
235 | void __iomem *base; | 228 | void __iomem *base; |
236 | void __iomem *cpu0_base; | 229 | void __iomem *cpu0_base; |
237 | 230 | ||
238 | np = of_find_matching_node(NULL, msm_timer_match); | ||
239 | if (!np) { | ||
240 | pr_err("Can't find msm timer DT node\n"); | ||
241 | return; | ||
242 | } | ||
243 | |||
244 | base = of_iomap(np, 0); | 231 | base = of_iomap(np, 0); |
245 | if (!base) { | 232 | if (!base) { |
246 | pr_err("Failed to map event base\n"); | 233 | pr_err("Failed to map event base\n"); |
@@ -283,6 +270,8 @@ void __init msm_dt_timer_init(void) | |||
283 | 270 | ||
284 | msm_timer_init(freq, 32, irq, !!percpu_offset); | 271 | msm_timer_init(freq, 32, irq, !!percpu_offset); |
285 | } | 272 | } |
273 | CLOCKSOURCE_OF_DECLARE(kpss_timer, "qcom,kpss-timer", msm_dt_timer_init); | ||
274 | CLOCKSOURCE_OF_DECLARE(scss_timer, "qcom,scss-timer", msm_dt_timer_init); | ||
286 | #endif | 275 | #endif |
287 | 276 | ||
288 | static int __init msm_timer_map(phys_addr_t addr, u32 event, u32 source, | 277 | static int __init msm_timer_map(phys_addr_t addr, u32 event, u32 source, |