]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy.h: Make PHY autonegotiation timeout configurable
authorStefan Roese <sr@denx.de>
Wed, 22 Oct 2014 10:13:15 +0000 (12:13 +0200)
committerTom Rini <trini@ti.com>
Thu, 23 Oct 2014 13:59:21 +0000 (09:59 -0400)
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 <sr@denx.de>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
include/phy.h

index 2fcc328d5bcfcbb7eb5bd740ad79b01c52830134..b4950776977e5440a75873065b753c472798a73e 100644 (file)
@@ -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 {