diff options
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t3517.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-generic.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/common.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 17 |
4 files changed, 11 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 6a9529ab95cd..7c1ad689363b 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -297,6 +297,6 @@ MACHINE_START(CM_T3517, "Compulab CM-T3517") | |||
297 | .handle_irq = omap3_intc_handle_irq, | 297 | .handle_irq = omap3_intc_handle_irq, |
298 | .init_machine = cm_t3517_init, | 298 | .init_machine = cm_t3517_init, |
299 | .init_late = am35xx_init_late, | 299 | .init_late = am35xx_init_late, |
300 | .init_time = omap3_gp_gptimer_timer_init, | 300 | .init_time = omap3_gptimer_timer_init, |
301 | .restart = omap3xxx_restart, | 301 | .restart = omap3xxx_restart, |
302 | MACHINE_END | 302 | MACHINE_END |
diff --git a/arch/arm/mach-omap2/board-generic.c b/arch/arm/mach-omap2/board-generic.c index 8a5f814613c6..7324d995094d 100644 --- a/arch/arm/mach-omap2/board-generic.c +++ b/arch/arm/mach-omap2/board-generic.c | |||
@@ -139,7 +139,7 @@ DT_MACHINE_START(AM33XX_DT, "Generic AM33XX (Flattened Device Tree)") | |||
139 | .init_irq = omap_intc_of_init, | 139 | .init_irq = omap_intc_of_init, |
140 | .handle_irq = omap3_intc_handle_irq, | 140 | .handle_irq = omap3_intc_handle_irq, |
141 | .init_machine = omap_generic_init, | 141 | .init_machine = omap_generic_init, |
142 | .init_time = omap3_am33xx_gptimer_timer_init, | 142 | .init_time = omap3_gptimer_timer_init, |
143 | .dt_compat = am33xx_boards_compat, | 143 | .dt_compat = am33xx_boards_compat, |
144 | MACHINE_END | 144 | MACHINE_END |
145 | #endif | 145 | #endif |
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index b4350274361b..594ab3b1309f 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h | |||
@@ -82,8 +82,7 @@ extern void omap2_init_common_infrastructure(void); | |||
82 | extern void omap2_sync32k_timer_init(void); | 82 | extern void omap2_sync32k_timer_init(void); |
83 | extern void omap3_sync32k_timer_init(void); | 83 | extern void omap3_sync32k_timer_init(void); |
84 | extern void omap3_secure_sync32k_timer_init(void); | 84 | extern void omap3_secure_sync32k_timer_init(void); |
85 | extern void omap3_gp_gptimer_timer_init(void); | 85 | extern void omap3_gptimer_timer_init(void); |
86 | extern void omap3_am33xx_gptimer_timer_init(void); | ||
87 | extern void omap4_local_timer_init(void); | 86 | extern void omap4_local_timer_init(void); |
88 | extern void omap5_realtime_timer_init(void); | 87 | extern void omap5_realtime_timer_init(void); |
89 | 88 | ||
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 84c46bf0c9d3..ffb17beb5754 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -576,18 +576,19 @@ OMAP_SYS_32K_TIMER_INIT(3, 1, "timer_32k_ck", "ti,timer-alwon", | |||
576 | 2, "timer_sys_ck"); | 576 | 2, "timer_sys_ck"); |
577 | OMAP_SYS_32K_TIMER_INIT(3_secure, 12, "secure_32k_fck", "ti,timer-secure", | 577 | OMAP_SYS_32K_TIMER_INIT(3_secure, 12, "secure_32k_fck", "ti,timer-secure", |
578 | 2, "timer_sys_ck"); | 578 | 2, "timer_sys_ck"); |
579 | OMAP_SYS_GP_TIMER_INIT(3_gp, 1, "timer_sys_ck", "ti,timer-alwon", | ||
580 | 2, "timer_sys_ck"); | ||
581 | #endif /* CONFIG_ARCH_OMAP3 */ | 579 | #endif /* CONFIG_ARCH_OMAP3 */ |
582 | 580 | ||
583 | #ifdef CONFIG_SOC_AM33XX | 581 | #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM33XX) |
584 | OMAP_SYS_GP_TIMER_INIT(3_am33xx, 1, "timer_sys_ck", "ti,timer-alwon", | 582 | OMAP_SYS_GP_TIMER_INIT(3, 1, "timer_sys_ck", "ti,timer-alwon", |
585 | 2, "timer_sys_ck"); | 583 | 2, "timer_sys_ck"); |
586 | #endif /* CONFIG_SOC_AM33XX */ | 584 | #endif |
587 | 585 | ||
588 | #ifdef CONFIG_ARCH_OMAP4 | 586 | #if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) |
589 | OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon", | 587 | OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon", |
590 | 2, "sys_clkin_ck"); | 588 | 2, "sys_clkin_ck"); |
589 | #endif | ||
590 | |||
591 | #ifdef CONFIG_ARCH_OMAP4 | ||
591 | #ifdef CONFIG_LOCAL_TIMERS | 592 | #ifdef CONFIG_LOCAL_TIMERS |
592 | static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, OMAP44XX_LOCAL_TWD_BASE, 29); | 593 | static DEFINE_TWD_LOCAL_TIMER(twd_local_timer, OMAP44XX_LOCAL_TWD_BASE, 29); |
593 | void __init omap4_local_timer_init(void) | 594 | void __init omap4_local_timer_init(void) |
@@ -616,13 +617,11 @@ void __init omap4_local_timer_init(void) | |||
616 | #endif /* CONFIG_ARCH_OMAP4 */ | 617 | #endif /* CONFIG_ARCH_OMAP4 */ |
617 | 618 | ||
618 | #ifdef CONFIG_SOC_OMAP5 | 619 | #ifdef CONFIG_SOC_OMAP5 |
619 | OMAP_SYS_32K_TIMER_INIT(5, 1, "timer_32k_ck", "ti,timer-alwon", | ||
620 | 2, "sys_clkin_ck"); | ||
621 | void __init omap5_realtime_timer_init(void) | 620 | void __init omap5_realtime_timer_init(void) |
622 | { | 621 | { |
623 | int err; | 622 | int err; |
624 | 623 | ||
625 | omap5_sync32k_timer_init(); | 624 | omap4_sync32k_timer_init(); |
626 | realtime_counter_init(); | 625 | realtime_counter_init(); |
627 | 626 | ||
628 | err = arch_timer_of_register(); | 627 | err = arch_timer_of_register(); |