diff options
| author | Michal Simek <[email protected]> | 2013-08-28 07:36:31 +0200 |
|---|---|---|
| committer | Albert ARIBAUD <[email protected]> | 2013-09-23 16:26:32 +0200 |
| commit | 7ba69b7dcc94879f9dfe6beb3416512114556c04 (patch) | |
| tree | 880b4abb27ccb3090e496bd0651829539ae55f57 | |
| parent | 373d79839451de08c3dce9231a133178378c4590 (diff) | |
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 <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
| -rw-r--r-- | arch/arm/cpu/armv7/zynq/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c index 0133565299f..3b8d9497a0d 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 |
