]> git.hungrycats.org Git - linux/commitdiff
[ARM PATCH] 2072/1: lh7a40x Timer device change
authorMarc Singer <elf@com.rmk.(none)>
Sun, 5 Sep 2004 17:39:32 +0000 (18:39 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 5 Sep 2004 17:39:32 +0000 (18:39 +0100)
Patch from Marc Singer

This patch changes the system jiffies timer to use TIMER2 so that a
given platform can use TIMER1 to drive the buzzer.  Note that only
TIMER1 can be used to drive a buzzer.

Signed-off-by: Marc Singer
arch/arm/mach-lh7a40x/time.c

index 61ada24c78a7d93cd7085db75bd4c197c9c8ac2f..f4943cacbaca428259349a7f7655c647ff1ec643 100644 (file)
 #include <asm/mach/time.h>
 
 #if HZ < 100
-# define TIMER_CONTROL TIMER_CONTROL1
-# define TIMER_LOAD    TIMER_LOAD1
+# define TIMER_CONTROL TIMER_CONTROL2
+# define TIMER_LOAD    TIMER_LOAD2
 # define TIMER_CONSTANT        (508469/HZ)
 # define TIMER_MODE    (TIMER_C_ENABLE | TIMER_C_PERIODIC | TIMER_C_508KHZ)
-# define TIMER_EOI     TIMER_EOI1
-# define TIMER_IRQ     IRQ_T1UI
+# define TIMER_EOI     TIMER_EOI2
+# define TIMER_IRQ     IRQ_T2UI
 #else
 # define TIMER_CONTROL TIMER_CONTROL3
 # define TIMER_LOAD    TIMER_LOAD3