diff options
author | Felipe Balbi <balbi@ti.com> | 2015-09-29 13:15:50 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-10-15 17:11:40 -0400 |
commit | c7cb14a58e6dc2a2eba3ed98e484cd8d7544d51d (patch) | |
tree | 4624d0df7e8556fb534dfcb17a9a631d38124479 /arch/arm/mach-omap2/timer.c | |
parent | a5f72ebaead454f95b8e6f353684681640b29ee3 (diff) |
arm: omap2: timer: provide generic sync32k_timer_init function
instead of constantly defining a small wrapper
around __omap_sync32k_timer_init(), let's define
a generic one which can be used by all OMAPs.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/timer.c')
-rw-r--r-- | arch/arm/mach-omap2/timer.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 976ff9fa3594..ebebe1bd7237 100644 --- a/arch/arm/mach-omap2/timer.c +++ b/arch/arm/mach-omap2/timer.c | |||
@@ -608,21 +608,13 @@ static void __init __omap_sync32k_timer_init(int clkev_nr, const char *clkev_src | |||
608 | omap2_sync32k_clocksource_init(); | 608 | omap2_sync32k_clocksource_init(); |
609 | } | 609 | } |
610 | 610 | ||
611 | #ifdef CONFIG_ARCH_OMAP2 | 611 | void __init omap_sync32k_timer_init(void) |
612 | void __init omap2_sync32k_timer_init(void) | ||
613 | { | 612 | { |
614 | __omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon", | 613 | __omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon", |
615 | 2, "timer_sys_ck", NULL, false); | 614 | 2, "timer_sys_ck", NULL, false); |
616 | } | 615 | } |
617 | #endif /* CONFIG_ARCH_OMAP2 */ | ||
618 | 616 | ||
619 | #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM43XX) | 617 | #if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_AM43XX) |
620 | void __init omap3_sync32k_timer_init(void) | ||
621 | { | ||
622 | __omap_sync32k_timer_init(1, "timer_32k_ck", "ti,timer-alwon", | ||
623 | 2, "timer_sys_ck", NULL, false); | ||
624 | } | ||
625 | |||
626 | void __init omap3_secure_sync32k_timer_init(void) | 618 | void __init omap3_secure_sync32k_timer_init(void) |
627 | { | 619 | { |
628 | __omap_sync32k_timer_init(12, "secure_32k_fck", "ti,timer-secure", | 620 | __omap_sync32k_timer_init(12, "secure_32k_fck", "ti,timer-secure", |