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>
master
Michal Simek 11 years ago committed by Albert ARIBAUD
parent 373d798394
commit 7ba69b7dcc
  1. 2
      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

Loading…
Cancel
Save