Browse Source

arm: zynq: Fix timer loadaddress

Reload address was written to the counter register
instead of load register.
The problem happens when timer expires but never
reload to ~0UL (it is downcount timer).

Reported-by: Stephen MacMahon <stephenm@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Michal Simek 11 years ago
parent
commit
7ba69b7dcc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/cpu/armv7/zynq/timer.c

+ 1 - 1
arch/arm/cpu/armv7/zynq/timer.c

@@ -57,7 +57,7 @@ int timer_init(void)
 			SCUTIMER_CONTROL_ENABLE_MASK;
 
 	/* Load the timer counter register */
-	writel(0xFFFFFFFF, &timer_base->counter);
+	writel(0xFFFFFFFF, &timer_base->load);
 
 	/*
 	 * Start the A9Timer device