arm: zynq: Fix timer loadaddress
authorMichal Simek <michal.simek@xilinx.com>
Wed, 28 Aug 2013 05:36:31 +0000 (07:36 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 23 Sep 2013 14:26:32 +0000 (16:26 +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 0133565..3b8d949 100644 (file)
@@ -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