Patchwork [v2,02/11] xilinx_timer: added default frequency

login
register
mail settings
Submitter Peter A. G. Crosthwaite
Date June 13, 2012, 4:46 a.m.
Message ID <b2a57cf4ee8d66395e546a1d22f9857042a0a73a.1339562634.git.peter.crosthwaite@petalogix.com>
Download mbox | patch
Permalink /patch/164529/
State New
Headers show

Comments

Peter A. G. Crosthwaite - June 13, 2012, 4:46 a.m.
Added a reasonable default frequency for the xilinx timer (the 62MHz from
s3adsp machine model).

Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
---
 hw/xilinx_timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c
index 3ab2f2b..e9fde28 100644
--- a/hw/xilinx_timer.c
+++ b/hw/xilinx_timer.c
@@ -220,7 +220,7 @@  static int xilinx_timer_init(SysBusDevice *dev)
 }
 
 static Property xilinx_timer_properties[] = {
-    DEFINE_PROP_UINT32("frequency", struct timerblock, freq_hz,   0),
+    DEFINE_PROP_UINT32("frequency", struct timerblock, freq_hz,   62 * 1000000),
     DEFINE_PROP_UINT32("nr-timers", struct timerblock, nr_timers, 0),
     DEFINE_PROP_END_OF_LIST(),
 };