From: Bastian Ruppert Date: Thu, 13 Sep 2012 22:29:03 +0000 (+0000) Subject: da850/omap-l138: davinci_emac: Suppress auto negotiation if needed X-Git-Tag: v2012.10-rc3~15^2~59 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de575502944576408c1de31cfbdff80447086073;p=u-boot da850/omap-l138: davinci_emac: Suppress auto negotiation if needed negotiation is enabled in RMII mode. Some boards based on da850 need to suppress this procedure. CC: Rajashekhara, Sudhakar CC: Lad, Prabhakar CC: Hadli, Manjunath CC: sbabic@denx.de Acked-by: Stefano Babic CC: Tom Rini Signed-off-by: Bastian Ruppert Acked-by: Prabhakar Lad --- diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index b2516d1768..1db586d6b2 100644 --- a/drivers/net/davinci_emac.c +++ b/drivers/net/davinci_emac.c @@ -897,7 +897,8 @@ int davinci_emac_initialize(void) } #if defined(CONFIG_DRIVER_TI_EMAC_USE_RMII) && \ - defined(CONFIG_MACH_DAVINCI_DA850_EVM) + defined(CONFIG_MACH_DAVINCI_DA850_EVM) && \ + !defined(CONFIG_DRIVER_TI_EMAC_RMII_NO_NEGOTIATE) for (i = 0; i < num_phy; i++) { if (phy[i].is_phy_connected(i)) phy[i].auto_negotiate(i);