diff options
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 17 |
1 files changed, 8 insertions, 9 deletions
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(); |