This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PPC 405 - fix real time clock


Was running too fast
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: hal/powerpc/ppc40x/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/ppc40x/current/ChangeLog,v
retrieving revision 1.12
diff -u -5 -p -r1.12 ChangeLog
--- hal/powerpc/ppc40x/current/ChangeLog	15 Oct 2003 14:37:21 -0000	1.12
+++ hal/powerpc/ppc40x/current/ChangeLog	18 Feb 2004 00:16:05 -0000
@@ -1,5 +1,10 @@
+2004-02-17  Gary Thomas  <gary@mlbassoc.com>
+
+	* cdl/hal_powerpc_ppc40x.cdl: Fix real time clock - this counter
+	has no dividers in the chain (hence no need to divide by 4)
+
 2003-10-15  Gary Thomas  <gary@mlbassoc.com>
 
 	* include/var_regs.h: Changes to allow building with GCC-3.3.x
 	since the newest GAS doesn't like spaces in expressions :-(
 
Index: hal/powerpc/ppc40x/current/cdl/hal_powerpc_ppc40x.cdl
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/ppc40x/current/cdl/hal_powerpc_ppc40x.cdl,v
retrieving revision 1.6
diff -u -5 -p -r1.6 hal_powerpc_ppc40x.cdl
--- hal/powerpc/ppc40x/current/cdl/hal_powerpc_ppc40x.cdl	19 Sep 2003 17:11:29 -0000	1.6
+++ hal/powerpc/ppc40x/current/cdl/hal_powerpc_ppc40x.cdl	18 Feb 2004 00:15:27 -0000
@@ -182,11 +182,11 @@ cdl_package CYGPKG_HAL_POWERPC_PPC40x {
             calculated    100
         }
         cdl_option CYGNUM_HAL_RTC_PERIOD {
             display       "Real-time clock period"
             flavor        data
-            calculated    { (((CYGHWR_HAL_POWERPC_CPU_SPEED*4*1000000)/16)/100) }
+            calculated    { (((CYGHWR_HAL_POWERPC_CPU_SPEED*1000000))/CYGNUM_HAL_RTC_DENOMINATOR) }
         }
     }
 
     define_proc {
         puts $::cdl_header "#include <pkgconf/hal_powerpc.h>"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]