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>
This commit is contained in:
parent
373d798394
commit
7ba69b7dcc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue