ARM: 6753/1: omap4: Enable ARM local timers with OMAP4430 es1.0 exception
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Tue, 22 Feb 2011 08:57:47 +0000 (09:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Feb 2011 17:54:55 +0000 (17:54 +0000)
On OMAP4430 ES1.0 the local timers are gated by security. Enable the
CONFIG_LOCAL_TIMERS for omap2plus build and handle the OMAP4430 es1.0
exception case.

This patch has dependency on the first patch in this series.
ARM: smp: Select local timers vs dummy timer support runtime

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/Kconfig
arch/arm/mach-omap2/timer-mpu.c

index 1a2cf6226a55f8a10adde44d31c808fc40dc57b8..ec55fd830f621f6bb253a9efd479b37e7b4f7185 100644 (file)
@@ -44,6 +44,7 @@ config ARCH_OMAP4
        depends on ARCH_OMAP2PLUS
        select CPU_V7
        select ARM_GIC
+       select LOCAL_TIMERS if SMP
        select PL310_ERRATA_588369
        select ARM_ERRATA_720789
        select ARCH_HAS_OPP
index 09c73dcfc2ac0fb0f5829a793f8eb47fe014fdbd..31c0ac4cd66a457db1cdf42ece0973df8751c1bf 100644 (file)
  */
 int __cpuinit local_timer_setup(struct clock_event_device *evt)
 {
+       /* Local timers are not supprted on OMAP4430 ES1.0 */
+       if (omap_rev() == OMAP4430_REV_ES1_0)
+               return -ENXIO;
+
        evt->irq = OMAP44XX_IRQ_LOCALTIMER;
        twd_timer_setup(evt);
        return 0;