public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] da850/omap-l138: Enable auto negotiation in RMII mode
@ 2012-06-01 13:34 Prabhakar Lad
  2012-06-04 22:29 ` Tom Rini
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Prabhakar Lad @ 2012-06-01 13:34 UTC (permalink / raw)
  To: u-boot

From: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>

On DA850/OMAP-L138 it was observed that in RMII mode,
auto negotiation was not performed. This patch enables
auto negotiation in RMII mode. Without this patch, EMAC
initialization takes more time and sometimes tftp fails
in RMII mode.

Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Hadli, Manjunath <manjunath.hadli@ti.com>
---
 drivers/net/davinci_emac.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index fbd0f1b..9bbd625 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -895,5 +895,10 @@ int davinci_emac_initialize(void)
 		miiphy_register(phy[i].name, davinci_mii_phy_read,
 						davinci_mii_phy_write);
 	}
+
+#if defined(CONFIG_DRIVER_TI_EMAC_USE_RMII) && \
+		defined(CONFIG_MACH_DAVINCI_DA850_EVM)
+	gen_auto_negotiate(active_phy_addr);
+#endif
 	return(1);
 }
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-07 10:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-01 13:34 [U-Boot] [PATCH] da850/omap-l138: Enable auto negotiation in RMII mode Prabhakar Lad
2012-06-04 22:29 ` Tom Rini
2012-06-06  7:46   ` Lad, Prabhakar
2012-06-05 11:34 ` Christian Riesch
2012-06-06  8:26   ` Lad, Prabhakar
2012-06-06 17:17 ` Eric Bénard
2012-06-07 10:38   ` Lad, Prabhakar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox