changeset 1437:40912f487083

Fix system time base
author gthomas
date Wed, 10 Dec 2003 11:39:49 +0000
parents 1b465c781382
children a683fa782034
files packages/hal/powerpc/adder/current/ChangeLog packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl
diffstat 2 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/powerpc/adder/current/ChangeLog
+++ b/packages/hal/powerpc/adder/current/ChangeLog
@@ -1,3 +1,10 @@
+2003-12-10  Gary Thomas  <gary@mlbassoc.com>
+
+	* cdl/hal_powerpc_adder.cdl: System clock was using wrong frequency
+	(time base).  On this platform, it's configured to use the raw
+	OSCLK which is a constant 10MHz, not the higher speed PLL based 
+	clocks.
+
 2003-12-08  Gary Thomas  <gary@mlbassoc.com>
 
 	* cdl/hal_powerpc_adder.cdl: 
--- a/packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl
+++ b/packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl
@@ -88,10 +88,10 @@ cdl_package CYGPKG_HAL_POWERPC_ADDER {
             implements    CYGNUM_HAL_QUICC_SMC2
             implements    CYGNUM_HAL_QUICC_SCC3
             define_proc {
-                puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"A&M ADDER\""
+                puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"A&M Adder\""
             }
             description "
-                Select this model for an Adder with the PPC850 processor."
+                Select this model for an Adder with the MPC850 processor."
         }
 
         cdl_option  CYGHWR_HAL_POWERPC_ADDER_II {
@@ -105,7 +105,7 @@ cdl_package CYGPKG_HAL_POWERPC_ADDER {
                 puts $::cdl_header "#define HAL_PLATFORM_BOARD  \"A&M AdderII\""
             }
             description "
-                Select this model for an Adder with the PPC852T processor."
+                Select this model for an Adder with the MPC852T processor."
         }
     }
 
@@ -157,7 +157,8 @@ cdl_package CYGPKG_HAL_POWERPC_ADDER {
         cdl_option CYGNUM_HAL_RTC_PERIOD {
             display       "Real-time clock period"
             flavor        data
-            default_value { ((((CYGHWR_HAL_POWERPC_BOARD_SPEED*1000000)/4)/16)/CYGNUM_HAL_RTC_DENOMINATOR) }
+# Timer clocks are based on OSCLK = 10MHz
+            default_value { (((10*1000000)/4)/CYGNUM_HAL_RTC_DENOMINATOR) }
         }
     }