Skip to content
Snippets Groups Projects
Commit 7ba69b7d authored by Michal Simek's avatar Michal Simek Committed by Albert ARIBAUD
Browse files

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: default avatarStephen MacMahon <stephenm@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 373d7983
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment