summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@freescale.com>2010-12-01 10:07:37 +0800
committerFrank Li <Frank.Li@freescale.com>2010-12-06 17:12:23 +0800
commitde208de1b4b0df2b178f26fc5d692332351cbe0f (patch)
tree42a2e483445f82e86c0d78fc5daacbf54baaeaef
parent02f15576f70a3c80cf44cb67d9b2251336919ccc (diff)
ENGR00134193-1 TIMER: Fix i.MX28 set wrong match value of timer
It should be match = current - delta. Original code is match = last_match -delta. Signed-off-by: Frank Li <Frank.Li@freescale.com>
-rw-r--r--arch/arm/plat-mxs/timer-match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-mxs/timer-match.c b/arch/arm/plat-mxs/timer-match.c
index a24c44e2d68a..d6429e6955e6 100644
--- a/arch/arm/plat-mxs/timer-match.c
+++ b/arch/arm/plat-mxs/timer-match.c
@@ -50,7 +50,7 @@ static int mxs_set_next_event(unsigned long delta,
{
unsigned int match;
match = __raw_readl(online_timer->base +
- HW_TIMROT_MATCH_COUNTn(online_timer->id)) - delta;
+ HW_TIMROT_RUNNING_COUNTn(online_timer->id)) - delta;
__raw_writel(match, online_timer->base +
HW_TIMROT_MATCH_COUNTn(online_timer->id));
return (int)(match -