This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Viper - faster board speeds
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 04 Mar 2003 09:18:38 -0700
- Subject: Viper - faster board speeds
Index: hal/powerpc/viper/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/viper/current/ChangeLog,v
retrieving revision 1.20
diff -u -5 -p -b -r1.20 ChangeLog
--- hal/powerpc/viper/current/ChangeLog 2 Dec 2002 20:42:59 -0000 1.20
+++ hal/powerpc/viper/current/ChangeLog 4 Mar 2003 16:11:36 -0000
@@ -1,5 +1,10 @@
+2003-03-04 Gary Thomas <gary at mlbassoc dot com>
+
+ * src/viper.S:
+ * cdl/hal_powerpc_viper.cdl: Support higher speed parts - up to 100MHz.
+
2002-12-02 Gary Thomas <gthomas at ecoscentric dot com>
* include/plf_intr.h: Use MPC8xx variant RESET support.
2002-11-26 Gary Thomas <gthomas at ecoscentric dot com>
Index: hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl,v
retrieving revision 1.12
diff -u -5 -p -b -r1.12 hal_powerpc_viper.cdl
--- hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl 26 Nov 2002 13:48:20 -0000 1.12
+++ hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl 4 Mar 2003 15:01:30 -0000
@@ -92,11 +92,11 @@ cdl_package CYGPKG_HAL_POWERPC_VIPER {
}
cdl_option CYGHWR_HAL_POWERPC_BOARD_SPEED {
display "Development board clock speed (MHz)"
flavor data
- legal_values { 47 51 55 59 63 }
+ legal_values { 47 51 55 59 63 100 }
default_value 63
description "
VIPER Development Boards have various system clock speeds
depending on the processor fitted. Select the clock speed
appropriate for your board so that the system can set the serial
Index: hal/powerpc/viper/current/src/viper.S
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/viper/current/src/viper.S,v
retrieving revision 1.8
diff -u -5 -p -b -r1.8 viper.S
--- hal/powerpc/viper/current/src/viper.S 25 Nov 2002 23:20:55 -0000 1.8
+++ hal/powerpc/viper/current/src/viper.S 4 Mar 2003 16:15:32 -0000
@@ -277,10 +277,14 @@ FUNC_START( hal_hardware_init )
#endif
#if (CYGHWR_HAL_POWERPC_BOARD_SPEED == 63)
#define PLPRCR_PTX 0x010 // (62.7MHz/3.6864MHz)-1
#define MAMR_PTA 123
#endif
+#if (CYGHWR_HAL_POWERPC_BOARD_SPEED == 100)
+#define PLPRCR_PTX 0x01A // (99.53MHz/3.6864MHz)-1
+#define MAMR_PTA 194
+#endif
//#define MAMR_PTA (((((((PLPRCR_PTX+1)*3686400)*625)/10000000)+31)/32)&0xFF)
lwi r3,0x00802114|(MAMR_PTA<<24)
stw r3,MAMR(r4)
stw r3,MBMR(r4)
@@ -356,11 +360,15 @@ FUNC_START( hal_hardware_init )
// Field DFBRG (bits 19-20) = 0
// Field DFNL (bits 21-23) = 0
// Field DFNH (bits 24-26) = 0
// Field Reserved (bits 27-31) = 0
*/
+#if (CYGHWR_HAL_POWERPC_BOARD_SPEED > 63)
+ lwi r3,0x00420000 // Bus divide by 2
+#else
lwi r3,0x00400000
+#endif
stw r3,SCCR(r4)
LED( 0x03 )
/*
--
------------------------------------------------------------
Gary Thomas |
MLB Associates | Consulting for the
+1 (970) 229-1963 | Embedded world
http://www.mlbassoc.com/ |
email: <gary at mlbassoc dot com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------