From: TsiChung Liew Date: Wed, 28 May 2008 18:06:25 +0000 (-0500) Subject: ColdFire: Add 10 base ethernet support for mcf5445x X-Git-Tag: v1.3.4-rc1~108^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff36fbb2e7583fb808eef773f511489c7a9c2df3;p=u-boot ColdFire: Add 10 base ethernet support for mcf5445x Signed-off-by: TsiChung Liew Signed-off-by: Ben Warren --- diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index 5ab4726ff5..8d4e248430 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -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