summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>2008-05-28 13:06:25 -0500
committerBen Warren <biggerbadderben@gmail.com>2008-06-02 22:38:53 -0700
commitff36fbb2e7583fb808eef773f511489c7a9c2df3 (patch)
treeb3db267a60107c2bed4d513f4835b6c6135ae70b
parent290ef6436838b1cc013bd67e0e0495c9eb3e23c0 (diff)
downloadu-boot-imx-ff36fbb2e7583fb808eef773f511489c7a9c2df3.zip
u-boot-imx-ff36fbb2e7583fb808eef773f511489c7a9c2df3.tar.gz
u-boot-imx-ff36fbb2e7583fb808eef773f511489c7a9c2df3.tar.bz2
ColdFire: Add 10 base ethernet support for mcf5445x
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
-rw-r--r--drivers/net/mcffec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c
index 5ab4726..8d4e248 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