summaryrefslogtreecommitdiff
path: root/cleopatre
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre')
-rw-r--r--cleopatre/u-boot-1.1.6/drivers/netspcmac_eth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cleopatre/u-boot-1.1.6/drivers/netspcmac_eth.c b/cleopatre/u-boot-1.1.6/drivers/netspcmac_eth.c
index 9775b5afd3..e36b2fc1a6 100644
--- a/cleopatre/u-boot-1.1.6/drivers/netspcmac_eth.c
+++ b/cleopatre/u-boot-1.1.6/drivers/netspcmac_eth.c
@@ -353,8 +353,13 @@ static int spcmac_phy_gen_init (const struct phy_device *phy_dev, int lp_an_able
// set cap, force 10Mbs HALF DUPLEX
spcmac_set_mac_mii_cap (0, 10); // 10 Mbs HD
#else /* do autonegotiation */
+#ifdef CONFIG_CHIP_FEATURE_NO_MDIO
+ printf ("MAC forced to 100MB Full Duplex\n");
+ spcmac_set_mac_mii_cap (1, 100);
+#else
spcmac_phy_negotiate (phy_dev->addr);
spcmac_phy_check_speed (phy_dev);
+#endif /* CHIP_FEATURE_NO_MDIO */
#endif /* FORCE_10_HD */
return 0;