From 5e6267af31165cdc6d918fd8aff8ae12a30ec9f8 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 28 Dec 2019 10:44:48 -0700 Subject: 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 --- include/net.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/net.h') diff --git a/include/net.h b/include/net.h index a8ee08150f..8a02c923a4 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__ */ -- cgit v1.2.3