aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR Sricharan <r.sricharan@ti.com>2012-05-02 03:37:12 -0400
committerSantosh Shilimkar <santosh.shilimkar@ti.com>2012-07-09 09:44:39 -0400
commit37b3280de2a7a3feb75e939cadd988d082984566 (patch)
tree950d125585d17679dc487ad86b691167e97a71d4
parent05e152c76a1efaa3165afecf5acf535c8283f386 (diff)
ARM: OMAP5: timer: Add clocksource, clockevent support
Adding the Initialisaton for clocksource and clockevent device on OMAP5 Socs. Signed-off-by: R Sricharan <r.sricharan@ti.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
-rw-r--r--arch/arm/mach-omap2/common.h1
-rw-r--r--arch/arm/mach-omap2/timer.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h
index 399e5bb13835..97e8792b33b0 100644
--- a/arch/arm/mach-omap2/common.h
+++ b/arch/arm/mach-omap2/common.h
@@ -130,6 +130,7 @@ extern struct sys_timer omap3_timer;
130extern struct sys_timer omap3_secure_timer; 130extern struct sys_timer omap3_secure_timer;
131extern struct sys_timer omap3_am33xx_timer; 131extern struct sys_timer omap3_am33xx_timer;
132extern struct sys_timer omap4_timer; 132extern struct sys_timer omap4_timer;
133extern struct sys_timer omap5_timer;
133 134
134void omap2420_init_early(void); 135void omap2420_init_early(void);
135void omap2430_init_early(void); 136void omap2430_init_early(void);
diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c
index 2b318ec92d39..13d20c8a283d 100644
--- a/arch/arm/mach-omap2/timer.c
+++ b/arch/arm/mach-omap2/timer.c
@@ -393,6 +393,11 @@ static void __init omap4_timer_init(void)
393OMAP_SYS_TIMER(4) 393OMAP_SYS_TIMER(4)
394#endif 394#endif
395 395
396#ifdef CONFIG_SOC_OMAP5
397OMAP_SYS_TIMER_INIT(5, 1, OMAP4_CLKEV_SOURCE, 2, OMAP4_MPU_SOURCE)
398OMAP_SYS_TIMER(5)
399#endif
400
396/** 401/**
397 * omap_timer_init - build and register timer device with an 402 * omap_timer_init - build and register timer device with an
398 * associated timer hwmod 403 * associated timer hwmod