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]

Adder - fix typo in initialization


Index: hal/powerpc/adder/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/adder/current/ChangeLog,v
retrieving revision 1.5
diff -u -5 -p -r1.5 ChangeLog
--- hal/powerpc/adder/current/ChangeLog	11 Mar 2003 17:14:14 -0000	1.5
+++ hal/powerpc/adder/current/ChangeLog	20 Mar 2003 19:41:42 -0000
@@ -1,5 +1,9 @@
+2003-03-20  Gary Thomas  <gary at mlbassoc dot com>
+
+	* src/hal_aux.c (hal_platform_init): Fix SCC2/SCC3 routing.
+
 2003-03-11  Mark Salter  <msalter at redhat dot com>
 
 	* src/redboot_linux_exec.c (do_exec): Call eth_drv_stop as necessary.
 
 2003-01-31  Gary Thomas  <gary at mlbassoc dot com>
Index: hal/powerpc/adder/current/src/hal_aux.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/adder/current/src/hal_aux.c,v
retrieving revision 1.1
diff -u -5 -p -r1.1 hal_aux.c
--- hal/powerpc/adder/current/src/hal_aux.c	25 Nov 2002 23:18:44 -0000	1.1
+++ hal/powerpc/adder/current/src/hal_aux.c	20 Mar 2003 19:41:25 -0000
@@ -81,12 +81,12 @@ void
 hal_platform_init(void)
 {
     volatile EPPC *eppc = (volatile EPPC *)eppc_base();
 
     // Special routing information for CICR
-    eppc->cpmi_cicr &= 0xFF0000;  // Routing bits
-    eppc->cpmi_cicr |= 0x240000;  // SCC2, SCC3 on "normal" bit positions
+    eppc->cpmi_cicr &= ~0xFF0000;  // Routing bits
+    eppc->cpmi_cicr |= 0x240000;   // SCC2, SCC3 on "normal" bit positions
 
     eppc->pip_pbpar &= ~0x0000400E;   // PB29..30 AS GPIO
     eppc->pip_pbdir |=  0x0000400E;
     eppc->pip_pbdat  =  0x00004000;
 


-- 
------------------------------------------------------------
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
------------------------------------------------------------


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