Commit 7ea87843 authored by Marc Singer's avatar Marc Singer Committed by Russell King

[ARM PATCH] 2072/1: lh7a40x Timer device change

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 
parent c804cecd
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
#include <asm/mach/time.h> #include <asm/mach/time.h>
#if HZ < 100 #if HZ < 100
# define TIMER_CONTROL TIMER_CONTROL1 # define TIMER_CONTROL TIMER_CONTROL2
# define TIMER_LOAD TIMER_LOAD1 # define TIMER_LOAD TIMER_LOAD2
# define TIMER_CONSTANT (508469/HZ) # define TIMER_CONSTANT (508469/HZ)
# define TIMER_MODE (TIMER_C_ENABLE | TIMER_C_PERIODIC | TIMER_C_508KHZ) # define TIMER_MODE (TIMER_C_ENABLE | TIMER_C_PERIODIC | TIMER_C_508KHZ)
# define TIMER_EOI TIMER_EOI1 # define TIMER_EOI TIMER_EOI2
# define TIMER_IRQ IRQ_T1UI # define TIMER_IRQ IRQ_T2UI
#else #else
# define TIMER_CONTROL TIMER_CONTROL3 # define TIMER_CONTROL TIMER_CONTROL3
# define TIMER_LOAD TIMER_LOAD3 # define TIMER_LOAD TIMER_LOAD3
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment