aboutsummaryrefslogtreecommitdiff
path: root/include/net.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 10:44:48 -0700
committerTom Rini <trini@konsulko.com>2020-01-17 13:26:50 -0500
commit5e6267af31165cdc6d918fd8aff8ae12a30ec9f8 (patch)
treef0a213fe4c520420a0cc74737f602d13425f877d /include/net.h
parent015e3348fc3f0f20fd9286bf245e26212568ec93 (diff)
downloadu-boot-5e6267af31165cdc6d918fd8aff8ae12a30ec9f8.zip
u-boot-5e6267af31165cdc6d918fd8aff8ae12a30ec9f8.tar.gz
u-boot-5e6267af31165cdc6d918fd8aff8ae12a30ec9f8.tar.bz2
common: Move reset_phy() to net.h
This is a network function so let's move it into that header. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index a8ee081..8a02c92 100644
--- a/include/net.h
+++ b/include/net.h
@@ -917,4 +917,12 @@ static inline struct in_addr env_get_ip(char *var)
{
return string_to_ip(env_get(var));
}
+
+/**
+ * reset_phy() - Reset the Ethernet PHY
+ *
+ * This should be implemented by boards if CONFIG_RESET_PHY_R is enabled
+ */
+void reset_phy(void);
+
#endif /* __NET_H__ */