]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: OMAP5: timer: Add clocksource, clockevent support
authorR Sricharan <r.sricharan@ti.com>
Wed, 2 May 2012 07:37:12 +0000 (13:07 +0530)
committerSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 9 Jul 2012 13:44:39 +0000 (19:14 +0530)
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>
arch/arm/mach-omap2/common.h
arch/arm/mach-omap2/timer.c

index 399e5bb13835261296e999f2e0c9bd9c35a37491..97e8792b33b016d6fb2a4a5510c204e80b5610a5 100644 (file)
@@ -130,6 +130,7 @@ extern struct sys_timer omap3_timer;
 extern struct sys_timer omap3_secure_timer;
 extern struct sys_timer omap3_am33xx_timer;
 extern struct sys_timer omap4_timer;
+extern struct sys_timer omap5_timer;
 
 void omap2420_init_early(void);
 void omap2430_init_early(void);
index 2b318ec92d3975dd583035874a970437d22e93ea..13d20c8a283dd352515d659ec4c39956228a954a 100644 (file)
@@ -393,6 +393,11 @@ static void __init omap4_timer_init(void)
 OMAP_SYS_TIMER(4)
 #endif
 
+#ifdef CONFIG_SOC_OMAP5
+OMAP_SYS_TIMER_INIT(5, 1, OMAP4_CLKEV_SOURCE, 2, OMAP4_MPU_SOURCE)
+OMAP_SYS_TIMER(5)
+#endif
+
 /**
  * omap_timer_init - build and register timer device with an
  * associated timer hwmod