diff options
author | Jianlong Huang <jianlong.huang@starfivetech.com> | 2022-08-10 12:25:15 +0300 |
---|---|---|
committer | Yanhong Wang <yanhong.wang@linux.starfivetech.com> | 2022-10-18 11:24:38 +0300 |
commit | 5ae5eca975735a24fa04c00ec83f8cdbb408278e (patch) | |
tree | b1c5d00fcea84e6ba9544193275165b1710827da | |
parent | 20f3a9aeb57d6237a1a19ae519e23f06d98f88ef (diff) | |
download | u-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>
-rw-r--r-- | include/configs/starfive-evb.h | 3 | ||||
-rw-r--r-- | include/configs/starfive-visionfive.h | 2 |
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 |