From: Michal Simek Date: Wed, 28 Aug 2013 05:36:31 +0000 (+0200) Subject: arm: zynq: Fix timer loadaddress X-Git-Tag: v2013.10-rc4~1^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ba69b7dcc94879f9dfe6beb3416512114556c04;p=kernel%2Fu-boot.git 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 Signed-off-by: Michal Simek --- diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c index 0133565..3b8d949 100644 --- a/arch/arm/cpu/armv7/zynq/timer.c +++ b/arch/arm/cpu/armv7/zynq/timer.c @@ -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