]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: zynq: Fix timer loadaddress
authorMichal Simek <michal.simek@xilinx.com>
Wed, 28 Aug 2013 05:26:49 +0000 (07:26 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 28 Aug 2013 05:30:00 +0000 (07:30 +0200)
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>
arch/arm/cpu/armv7/zynq/timer.c

index 8c4357de4202c1b8197b916c575165ed1e84facc..875903a66741933e2ad7d0466a18b68e20d41a1c 100644 (file)
@@ -73,7 +73,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