Patchwork [V1] cadence_ttc: changed master clock frequency

login
register
mail settings
Submitter Peter A. G. Crosthwaite
Date May 29, 2012, 3:16 a.m.
Message ID <1338261388-28851-1-git-send-email-peter.crosthwaite@petalogix.com>
Download mbox | patch
Permalink /patch/161650/
State New
Headers show

Comments

Peter A. G. Crosthwaite - May 29, 2012, 3:16 a.m.
Change the timer clock frequency to 133MHz which is correct. the old 2.5MHz
value was for the pre-silicon emulation platform.

Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
---
 hw/cadence_ttc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Peter Maydell - May 29, 2012, 3:27 a.m.
On 29 May 2012 04:16, Peter A. G. Crosthwaite
<peter.crosthwaite@petalogix.com> wrote:
> Change the timer clock frequency to 133MHz which is correct. the old 2.5MHz
> value was for the pre-silicon emulation platform.
>
> Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>

Thanks; queued in arm-devs.next (I plan to do a pullreq when master reopens).

-- PMM

Patch

diff --git a/hw/cadence_ttc.c b/hw/cadence_ttc.c
index 2b5477b..dd02f86 100644
--- a/hw/cadence_ttc.c
+++ b/hw/cadence_ttc.c
@@ -405,7 +405,7 @@  static int cadence_ttc_init(SysBusDevice *dev)
     int i;
 
     for (i = 0; i < 3; ++i) {
-        cadence_timer_init(2500000, &s->timer[i]);
+        cadence_timer_init(133000000, &s->timer[i]);
         sysbus_init_irq(dev, &s->timer[i].irq);
     }