changeset 370:3dded0c88355

Don't reset PHY on RAM startup.
author gthomas
date Tue, 15 Oct 2002 18:47:54 +0000
parents 987360e269d5
children c030434df232
files packages/hal/powerpc/ts1000/current/ChangeLog packages/hal/powerpc/ts1000/current/src/ts1000.S
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/powerpc/ts1000/current/ChangeLog
+++ b/packages/hal/powerpc/ts1000/current/ChangeLog
@@ -1,3 +1,7 @@
+2002-10-15  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/ts1000.S: Don't reset PHY on RAM startup.
+
 2002-09-03  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/ts1000.S: 
--- a/packages/hal/powerpc/ts1000/current/src/ts1000.S
+++ b/packages/hal/powerpc/ts1000/current/src/ts1000.S
@@ -222,7 +222,12 @@ FUNC_START( hal_hardware_init )
         lhz     r3,PAPAR(r4)    // papar &= ~0x803C
         andi.   r3,r3,(~0x803C&0xFFFF)
         sth     r3,PAPAR(r4)
-	lwi	r3,0x803C
+#ifdef CYG_HAL_STARTUP_RAM
+        lhz     r3,PADAT(r4)    // Turn off all LEDs, preserve PHY state
+        ori     r3,r3,0x003C
+#else        
+	lwi	r3,0x803C       // Turn off all LEDS, reset PHY
+#endif        
 	sth	r3,PADAT(r4)
         	
 	LED( 0 )			# turn all LEDs off