Browse Source

configs: starfive: fix tftpboot file waite a long time for the first time

ARP_TIMEOUT is too large, then will waite a long time for the first time
Set ARP_TIMEOUT to 500 refer to others
Set PHY_ANEG_TIMEOUT needs longer aneg time for the 2nd phy

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
Jianlong Huang 1 year ago
parent
commit
5ae5eca975
2 changed files with 3 additions and 2 deletions
  1. 2 1
      include/configs/starfive-evb.h
  2. 1 1
      include/configs/starfive-visionfive.h

+ 2 - 1
include/configs/starfive-evb.h

@@ -76,7 +76,8 @@
 #ifdef CONFIG_CMD_NET
 #define CONFIG_DW_ALTDESCRIPTOR
 #define DWC_NET_PHYADDR		0
-#define CONFIG_ARP_TIMEOUT	0x5000
+#define CONFIG_ARP_TIMEOUT	500
+#define PHY_ANEG_TIMEOUT	8000 /* PHY needs longer aneg time */
 #define CONFIG_NETMASK		255.255.255.0
 #define CONFIG_IPADDR		192.168.120.230
 #define CONFIG_IP_DEFRAG

+ 1 - 1
include/configs/starfive-visionfive.h

@@ -77,7 +77,7 @@
 #ifdef CONFIG_CMD_NET
 #define CONFIG_DW_ALTDESCRIPTOR
 #define DWC_NET_PHYADDR		0
-#define CONFIG_ARP_TIMEOUT	0x5000
+#define CONFIG_ARP_TIMEOUT	500
 #define CONFIG_NETMASK		255.255.255.0
 #define CONFIG_IPADDR		192.168.120.230
 #define CONFIG_IP_DEFRAG