From 5ae5eca975735a24fa04c00ec83f8cdbb408278e Mon Sep 17 00:00:00 2001 From: Jianlong Huang Date: Wed, 10 Aug 2022 17:25:15 +0800 Subject: 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 --- include/configs/starfive-evb.h | 3 ++- include/configs/starfive-visionfive.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit v1.2.3