diff options
author | Simon Glass <sjg@chromium.org> | 2019-12-28 10:44:48 -0700 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-01-24 23:06:48 +0530 |
commit | 9d89bcd8e5b0579da105ba02010e615bc0782ab4 (patch) | |
tree | 9f87a0a6daeded6eb34485cb1dafc1fea838aeac /include | |
parent | f9aaf98451d959b878b617218fba76bf2dd9e024 (diff) | |
download | u-boot-9d89bcd8e5b0579da105ba02010e615bc0782ab4.tar.gz |
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')
-rw-r--r-- | include/common.h | 3 | ||||
-rw-r--r-- | include/net.h | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h index 1bd42299bc..eb6dce4801 100644 --- a/include/common.h +++ b/include/common.h @@ -87,9 +87,6 @@ const char *symbol_lookup(unsigned long addr, unsigned long *caddr); long get_ram_size (long *, long); phys_size_t get_effective_memsize(void); -/* $(BOARD)/$(BOARD).c */ -void reset_phy (void); - #if !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) && defined(CONFIG_SYS_I2C_EEPROM_ADDR) # define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR #endif 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__ */ |