]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
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 0133565299fbb89e4c1a96d51edef54eaaebb5a2..3b8d9497a0d2bab665c37b000625d778a0c749e9 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