mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 08:00:26 +09:00
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
@ -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 New Issue
Block a user