aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/timer.c37
1 files changed, 14 insertions, 23 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 760a02618178..84c46bf0c9d3 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -57,15 +57,6 @@
57#include "common.h" 57#include "common.h"
58#include "powerdomain.h" 58#include "powerdomain.h"
59 59
60/* Parent clocks, eventually these will come from the clock framework */
61
62#define OMAP2_MPU_SOURCE "sys_ck"
63#define OMAP3_MPU_SOURCE OMAP2_MPU_SOURCE
64#define OMAP4_MPU_SOURCE "sys_clkin_ck"
65#define OMAP2_32K_SOURCE "func_32k_ck"
66#define OMAP3_32K_SOURCE "omap_32k_fck"
67#define OMAP4_32K_SOURCE "sys_32k_ck"
68
69#define REALTIME_COUNTER_BASE 0x48243200 60#define REALTIME_COUNTER_BASE 0x48243200
70#define INCREMENTER_NUMERATOR_OFFSET 0x10 61#define INCREMENTER_NUMERATOR_OFFSET 0x10
71#define INCREMENTER_DENUMERATOR_RELOAD_OFFSET 0x14 62#define INCREMENTER_DENUMERATOR_RELOAD_OFFSET 0x14
@@ -576,27 +567,27 @@ void __init omap##name##_sync32k_timer_init(void) \
576} 567}
577 568
578#ifdef CONFIG_ARCH_OMAP2 569#ifdef CONFIG_ARCH_OMAP2
579OMAP_SYS_32K_TIMER_INIT(2, 1, OMAP2_32K_SOURCE, "ti,timer-alwon", 570OMAP_SYS_32K_TIMER_INIT(2, 1, "timer_32k_ck", "ti,timer-alwon",
580 2, OMAP2_MPU_SOURCE); 571 2, "timer_sys_ck");
581#endif /* CONFIG_ARCH_OMAP2 */ 572#endif /* CONFIG_ARCH_OMAP2 */
582 573
583#ifdef CONFIG_ARCH_OMAP3 574#ifdef CONFIG_ARCH_OMAP3
584OMAP_SYS_32K_TIMER_INIT(3, 1, OMAP3_32K_SOURCE, "ti,timer-alwon", 575OMAP_SYS_32K_TIMER_INIT(3, 1, "timer_32k_ck", "ti,timer-alwon",
585 2, OMAP3_MPU_SOURCE); 576 2, "timer_sys_ck");
586OMAP_SYS_32K_TIMER_INIT(3_secure, 12, OMAP3_32K_SOURCE, "ti,timer-secure", 577OMAP_SYS_32K_TIMER_INIT(3_secure, 12, "secure_32k_fck", "ti,timer-secure",
587 2, OMAP3_MPU_SOURCE); 578 2, "timer_sys_ck");
588OMAP_SYS_GP_TIMER_INIT(3_gp, 1, OMAP3_MPU_SOURCE, "ti,timer-alwon", 579OMAP_SYS_GP_TIMER_INIT(3_gp, 1, "timer_sys_ck", "ti,timer-alwon",
589 2, OMAP3_MPU_SOURCE); 580 2, "timer_sys_ck");
590#endif /* CONFIG_ARCH_OMAP3 */ 581#endif /* CONFIG_ARCH_OMAP3 */
591 582
592#ifdef CONFIG_SOC_AM33XX 583#ifdef CONFIG_SOC_AM33XX
593OMAP_SYS_GP_TIMER_INIT(3_am33xx, 1, OMAP4_MPU_SOURCE, "ti,timer-alwon", 584OMAP_SYS_GP_TIMER_INIT(3_am33xx, 1, "timer_sys_ck", "ti,timer-alwon",
594 2, OMAP4_MPU_SOURCE); 585 2, "timer_sys_ck");
595#endif /* CONFIG_SOC_AM33XX */ 586#endif /* CONFIG_SOC_AM33XX */
596 587
597#ifdef CONFIG_ARCH_OMAP4 588#ifdef CONFIG_ARCH_OMAP4
598OMAP_SYS_32K_TIMER_INIT(4, 1, OMAP4_32K_SOURCE, "ti,timer-alwon", 589OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon",
599 2, OMAP4_MPU_SOURCE); 590 2, "sys_clkin_ck");
600#ifdef CONFIG_LOCAL_TIMERS 591#ifdef CONFIG_LOCAL_TIMERS
601static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, OMAP44XX_LOCAL_TWD_BASE, 29); 592static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, OMAP44XX_LOCAL_TWD_BASE, 29);
602void __init omap4_local_timer_init(void) 593void __init omap4_local_timer_init(void)
@@ -625,8 +616,8 @@ void __init omap4_local_timer_init(void)
625#endif /* CONFIG_ARCH_OMAP4 */ 616#endif /* CONFIG_ARCH_OMAP4 */
626 617
627#ifdef CONFIG_SOC_OMAP5 618#ifdef CONFIG_SOC_OMAP5
628OMAP_SYS_32K_TIMER_INIT(5, 1, OMAP4_32K_SOURCE, "ti,timer-alwon", 619OMAP_SYS_32K_TIMER_INIT(5, 1, "timer_32k_ck", "ti,timer-alwon",
629 2, OMAP4_MPU_SOURCE); 620 2, "sys_clkin_ck");
630void __init omap5_realtime_timer_init(void) 621void __init omap5_realtime_timer_init(void)
631{ 622{
632 int err; 623 int err;