aboutsummaryrefslogtreecommitdiff
path: root/include/phy.h
diff options
context:
space:
mode:
authorMarek Vasut2024-05-31 18:47:16 +0200
committerTom Rini2024-06-13 16:27:06 -0600
commit4031a4299c43785bad9062859978bafe10efab58 (patch)
tree4c9235ff0020e34bee9e398a9ce1f0c225e5e8c3 /include/phy.h
parent3db3a6ba7b0cb09757fc631ccc9d4445eb101dc7 (diff)
net: phy: Turn default auto-negotiation timeout into Kconfig symbol
Let users configure default auto-negotiation timeout via Kconfig instead of specifying it in board configuration headers. This is the first step toward converting this to Kconfig fully, so far the legacy PHY_ANEG_TIMEOUT in configuration headers takes precedence. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'include/phy.h')
-rw-r--r--include/phy.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/phy.h b/include/phy.h
index 90b7e364101..072ed0961f4 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -59,10 +59,9 @@ struct udevice;
SUPPORTED_10000baseT_Full)
#ifndef PHY_ANEG_TIMEOUT
-#define PHY_ANEG_TIMEOUT 4000
+#define PHY_ANEG_TIMEOUT CONFIG_PHY_ANEG_TIMEOUT
#endif
-
struct phy_device;
#define MDIO_NAME_LEN 32