]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
da850/omap-l138: davinci_emac: Suppress auto negotiation if needed
authorBastian Ruppert <Bastian.Ruppert@Sewerin.de>
Thu, 13 Sep 2012 22:29:03 +0000 (22:29 +0000)
committerTom Rini <trini@ti.com>
Mon, 1 Oct 2012 17:02:13 +0000 (10:02 -0700)
negotiation is enabled in RMII mode. Some boards based on da850 need
to suppress this procedure.

CC: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
CC: Lad, Prabhakar <prabhakar.lad@ti.com>
CC: Hadli, Manjunath <manjunath.hadli@ti.com>
CC: sbabic@denx.de
Acked-by: Stefano Babic <sbabic@denx.de>
CC: Tom Rini <trini@ti.com>
Signed-off-by: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
Acked-by: Prabhakar Lad <prabhakar.lad@ti.com>
drivers/net/davinci_emac.c

index b2516d176892e05c44881e13fe47719b41a1df69..1db586d6b276008afba73c4c30a397373a452c3e 100644 (file)
@@ -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);