Patchwork [U-Boot,06/14] davinci_emac: hardcode 100Mbps for AM35xx and RMII

login
register
mail settings
Submitter Ilya Yanok
Date Nov. 1, 2011, 11:16 p.m.
Message ID <1320189368-9763-7-git-send-email-yanok@emcraft.com>
Download mbox | patch
Permalink /patch/123167/
State Superseded
Delegated to: Sandeep Paulraj
Headers show

Comments

Ilya Yanok - Nov. 1, 2011, 11:16 p.m.
For some reason code setting the speed based on the PHY feedback causes
troubles on AM3517 so hardcode 100Mbps for now.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
 drivers/net/davinci_emac.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index ed6f89e..2f6530b 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -507,7 +507,8 @@  static int davinci_eth_open(struct eth_device *dev, bd_t *bis)
 	writel(1, &adap_emac->RXUNICASTSET);
 
 	/* Enable MII interface and Full duplex mode */
-#ifdef CONFIG_SOC_DA8XX
+#if defined(CONFIG_SOC_DA8XX) || \
+	(defined(CONFIG_OMAP34XX) && defined(CONFIG_DRIVER_TI_EMAC_USE_RMII))
 	writel((EMAC_MACCONTROL_MIIEN_ENABLE |
 		EMAC_MACCONTROL_FULLDUPLEX_ENABLE |
 		EMAC_MACCONTROL_RMIISPEED_100),