]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
apalis_imx6: increase phy autoneg timeout
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Mon, 24 Jun 2019 08:39:14 +0000 (11:39 +0300)
committerStefano Babic <sbabic@denx.de>
Thu, 27 Jun 2019 22:08:42 +0000 (00:08 +0200)
Default value (4000ms) of PHY_ANEG_TIMEOUT for Micrel KSZ9031 contoller
isn't sufficient to finish auto-negotiation, which sometimes leads to
timeout errors:

Apalis iMX6 # dhcp
FEC Waiting for PHY auto negotiation to complete......... TIMEOUT !

Increase the auto-negotiation time-out to 15000ms.

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Philippe Schenker <philippe.schenker@toradex.com>
include/configs/apalis_imx6.h

index cffb90a690649e922516c9e8b4f6079880dbea3f..db37fa7b731a9cabb67455a8c72a079842445d23 100644 (file)
@@ -58,6 +58,7 @@
 #define IMX_FEC_BASE                   ENET_BASE_ADDR
 #define CONFIG_FEC_XCV_TYPE            RGMII
 #define CONFIG_ETHPRIME                        "FEC"
+#define PHY_ANEG_TIMEOUT               15000 /* PHY needs longer aneg time */
 #define CONFIG_FEC_MXC_PHYADDR         6
 #define CONFIG_TFTP_TSIZE