* [U-Boot] [PATCH] arm: zynq: Fix timer loadaddress
@ 2013-08-28 5:36 Michal Simek
2013-09-23 14:29 ` Albert ARIBAUD
0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2013-08-28 5:36 UTC (permalink / raw)
To: u-boot
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.8.2.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130828/cb093d50/attachment.pgp>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] arm: zynq: Fix timer loadaddress
2013-08-28 5:36 [U-Boot] [PATCH] arm: zynq: Fix timer loadaddress Michal Simek
@ 2013-09-23 14:29 ` Albert ARIBAUD
0 siblings, 0 replies; 2+ messages in thread
From: Albert ARIBAUD @ 2013-09-23 14:29 UTC (permalink / raw)
To: u-boot
Hi Michal,
On Wed, 28 Aug 2013 07:36:31 +0200, Michal Simek
<michal.simek@xilinx.com> wrote:
> 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 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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
> --
> 1.8.2.3
>
Applied bugfix to u-boot-arm/master, thanks!
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-23 14:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-28 5:36 [U-Boot] [PATCH] arm: zynq: Fix timer loadaddress Michal Simek
2013-09-23 14:29 ` Albert ARIBAUD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox