Skip to contentSkip to conversation

ColdFire: Add 10 base ethernet support for mcf5445x

PATCH New Tsi-Chung.Liew 3 participants 3 messages May 28, 2008 – Jun 3, 2008 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ColdFire: Add 10 base ethernet support for mcf5445x

From: TsiChung Liew <[email protected]>

---
 drivers/net/mcffec.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
drivers/net/mcffec.c +6 -0
index 5ab4726..8d4e248 100644
@@ -125,11 +125,17 @@ void setFecDuplexSpeed(volatile fec_t * fecp, bd_t * bd, int dup_spd)
 	}
 
 	if ((dup_spd & 0xFFFF) == _100BASET) {
+#ifdef CONFIG_MCF5445x
+		fecp->rcr &= ~0x200;	/* disabled 10T base */
+#endif
 #ifdef MII_DEBUG
 		printf("100Mbps\n");
 #endif
 		bd->bi_ethspeed = 100;
 	} else {
+#ifdef CONFIG_MCF5445x
+		fecp->rcr |= 0x200;	/* enabled 10T base */
+#endif
 #ifdef MII_DEBUG
 		printf("10Mbps\n");
 #endif
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 ColdFire: Add 10 base ethernet support for mcf5445x

Quoted 12 lines · Tsi-Chung.Liew

From: TsiChung Liew <[email protected]>

---
 drivers/net/mcffec.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
drivers/net/mcffec.c +0 -0
index 5ab4726..8d4e248 100644

drivers/net/mcffec.c void setFecDuplexSpeed(volatile fec_t * fecp, bd_t * bd, int dup_spd) · line 130

Quoted 6 lines
drivers/net/mcffec.c +2 -0
@@ -125,11 +125,17 @@ void setFecDuplexSpeed(volatile fec_t * fecp, bd_t * bd, int dup_spd)
 	}
 
 	if ((dup_spd & 0xFFFF) == _100BASET) {
+#ifdef CONFIG_MCF5445x
+		fecp->rcr &= ~0x200;	/* disabled 10T base */
 

Don't you mean "&= ~0x200"? Negative hex is confusing stuff...

Quoted 13 lines
drivers/net/mcffec.c +4 -0
+#endif
 #ifdef MII_DEBUG
 		printf("100Mbps\n");
 #endif
 		bd->bi_ethspeed = 100;
 	} else {
+#ifdef CONFIG_MCF5445x
+		fecp->rcr |= 0x200;	/* enabled 10T base */
+#endif
 #ifdef MII_DEBUG
 		printf("10Mbps\n");

#endif

#2 lore raw

PATCH 1/1 ColdFire: Add 10 base ethernet support for mcf5445x

Quoted 16 lines · Ben Warren
Quoted 14 lines · Tsi-Chung.Liew

From: TsiChung Liew <[email protected]>

---
 drivers/net/mcffec.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
drivers/net/mcffec.c +0 -0
index 5ab4726..8d4e248 100644
@@ -125,11 +125,17 @@ void setFecDuplexSpeed(volatile fec_t * fecp, bd_t * bd, int dup_spd)
 	}
 
Quoted 7 lines

drivers/net/mcffec.c void setFecDuplexSpeed(volatile fec_t * fecp, bd_t * bd, int dup_spd)

Quoted 5 lines
drivers/net/mcffec.c +2 -0
 	if ((dup_spd & 0xFFFF) == _100BASET) {
+#ifdef CONFIG_MCF5445x
+		fecp->rcr &= ~0x200;	/* disabled 10T base */
 
 

Don't you mean "&= ~0x200"? Negative hex is confusing stuff...

Never mind... Thunderbird is displaying tildes as hyphens.

Quoted 26 lines
Quoted 10 lines
drivers/net/mcffec.c +4 -0
+#endif
 #ifdef MII_DEBUG
 		printf("100Mbps\n");
 #endif
 		bd->bi_ethspeed = 100;
 	} else {
+#ifdef CONFIG_MCF5445x
+		fecp->rcr |= 0x200;	/* enabled 10T base */
+#endif
 #ifdef MII_DEBUG
Quoted 4 lines

printf("10Mbps\n");
#endif

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users