From: Stefan Roese Date: Wed, 22 Oct 2014 10:13:15 +0000 (+0200) Subject: net: phy.h: Make PHY autonegotiation timeout configurable X-Git-Tag: v2015.01-rc1~195 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fb3f0c8024bb1464364eecc9c7708ecf6119e35;p=oweals%2Fu-boot.git net: phy.h: Make PHY autonegotiation timeout configurable The Marvell MV78460 eval board DB-78460-BP seems to need a longer PHY autonegotiation timeout than the "standard" 4 seconds. So lets make this timeout configurable. If not defined in the board config header the original 4000ms is used. Signed-off-by: Stefan Roese Cc: Joe Hershberger --- diff --git a/include/phy.h b/include/phy.h index 2fcc328d5b..b495077697 100644 --- a/include/phy.h +++ b/include/phy.h @@ -32,7 +32,9 @@ #define PHY_10G_FEATURES (PHY_GBIT_FEATURES | \ SUPPORTED_10000baseT_Full) +#ifndef PHY_ANEG_TIMEOUT #define PHY_ANEG_TIMEOUT 4000 +#endif typedef enum {