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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user