]> git.sur5r.net Git - u-boot/commitdiff
ColdFire: Add 10 base ethernet support for mcf5445x
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>
Wed, 28 May 2008 18:06:25 +0000 (13:06 -0500)
committerBen Warren <biggerbadderben@gmail.com>
Tue, 3 Jun 2008 05:38:53 +0000 (22:38 -0700)
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/mcffec.c

index 5ab4726ff584ad6609e016ebedd0b6664d1432fa..8d4e248430fb81fc94a30309aa7f313b6946af20 100644 (file)
@@ -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