From: Michal Simek Date: Wed, 28 Aug 2013 05:26:49 +0000 (+0200) Subject: arm: zynq: Fix timer loadaddress X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5fd78d5b78ca24b025978de74f5ef882c6a7e59;p=thirdparty%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 8c4357de420..875903a6674 100644 --- a/arch/arm/cpu/armv7/zynq/timer.c +++ b/arch/arm/cpu/armv7/zynq/timer.c @@ -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