]> git.baikalelectronics.ru Git - uboot.git/commitdiff
ARM: rmobile: Increase PHY auto-negotiation timeout to 20s
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 14 Jun 2020 12:41:07 +0000 (14:41 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 18 Jun 2020 17:35:03 +0000 (19:35 +0200)
The ethernet PHY on all known Gen3 boards takes a while to come out
of reset, increase the auto-negotiation timeout to prevent it from
timing out in case the ethernet is used right after the board was
reset.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
include/configs/rcar-gen3-common.h

index 8f400ba05a0c6542308fe8600ddb6b0c42239941..cf4d3bad2e999a61b0047eac6899499fd124fee0 100644 (file)
@@ -34,6 +34,9 @@
 #define CONFIG_SYS_MAXARGS             64
 #define CONFIG_SYS_BAUDRATE_TABLE      { 115200, 38400 }
 
+/* PHY needs a longer autoneg timeout */
+#define PHY_ANEG_TIMEOUT               20000
+
 /* MEMORY */
 #define CONFIG_SYS_INIT_SP_ADDR                CONFIG_SYS_TEXT_BASE