summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJianlong Huang <jianlong.huang@starfivetech.com>2022-08-10 12:25:15 +0300
committerYanhong Wang <yanhong.wang@linux.starfivetech.com>2022-10-18 11:24:38 +0300
commit5ae5eca975735a24fa04c00ec83f8cdbb408278e (patch)
treeb1c5d00fcea84e6ba9544193275165b1710827da /include
parent20f3a9aeb57d6237a1a19ae519e23f06d98f88ef (diff)
downloadu-boot-5ae5eca975735a24fa04c00ec83f8cdbb408278e.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/starfive-evb.h3
-rw-r--r--include/configs/starfive-visionfive.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/configs/starfive-evb.h b/include/configs/starfive-evb.h
index 650dd1908a..dfb3c3bf57 100644
--- a/include/configs/starfive-evb.h
+++ b/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
diff --git a/include/configs/starfive-visionfive.h b/include/configs/starfive-visionfive.h
index d1f66433f9..a7561a15b7 100644
--- a/include/configs/starfive-visionfive.h
+++ b/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