diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/corvus.h | 1 | ||||
| -rw-r--r-- | include/configs/openrisc-generic.h | 1 | ||||
| -rw-r--r-- | include/configs/smartweb.h | 1 | ||||
| -rw-r--r-- | include/configs/snapper9g45.h | 1 | ||||
| -rw-r--r-- | include/configs/taurus.h | 1 | ||||
| -rw-r--r-- | include/dm/platform_data/net_ethoc.h | 21 | ||||
| -rw-r--r-- | include/miiphy.h | 20 | 
7 files changed, 28 insertions, 18 deletions
| diff --git a/include/configs/corvus.h b/include/configs/corvus.h index e6a811af03f..28ea15b596a 100644 --- a/include/configs/corvus.h +++ b/include/configs/corvus.h @@ -95,6 +95,7 @@  /* Ethernet */  #define CONFIG_MACB +#define CONFIG_PHYLIB  #define CONFIG_RMII  #define CONFIG_NET_RETRY_COUNT		20  #define CONFIG_AT91_WANTS_COMMON_PHY diff --git a/include/configs/openrisc-generic.h b/include/configs/openrisc-generic.h index 913256a02bd..227c0ca84bc 100644 --- a/include/configs/openrisc-generic.h +++ b/include/configs/openrisc-generic.h @@ -44,7 +44,6 @@  /*   * Ethernet   */ -#define CONFIG_ETHOC  #define CONFIG_SYS_ETHOC_BASE		0x92000000  #define CONFIG_BOOTFILE			"boot.img" diff --git a/include/configs/smartweb.h b/include/configs/smartweb.h index 6add3916fa8..076a5ce2992 100644 --- a/include/configs/smartweb.h +++ b/include/configs/smartweb.h @@ -122,6 +122,7 @@   *   */  #define CONFIG_MACB +#define CONFIG_PHYLIB  #define CONFIG_USB_HOST_ETHER  #define CONFIG_USB_ETHER_ASIX  #define CONFIG_USB_ETHER_MCS7830 diff --git a/include/configs/snapper9g45.h b/include/configs/snapper9g45.h index fd6c70e110f..c91ab7186ce 100644 --- a/include/configs/snapper9g45.h +++ b/include/configs/snapper9g45.h @@ -56,6 +56,7 @@  /* Ethernet */  #define CONFIG_MACB +#define CONFIG_PHYLIB  #define CONFIG_RMII  #define CONFIG_NET_RETRY_COUNT		20  #define CONFIG_RESET_PHY_R diff --git a/include/configs/taurus.h b/include/configs/taurus.h index 882a4e5dbff..2d091db07d9 100644 --- a/include/configs/taurus.h +++ b/include/configs/taurus.h @@ -99,6 +99,7 @@  /* Ethernet */  #define CONFIG_MACB +#define CONFIG_PHYLIB  #define CONFIG_RMII  #define CONFIG_AT91_WANTS_COMMON_PHY diff --git a/include/dm/platform_data/net_ethoc.h b/include/dm/platform_data/net_ethoc.h new file mode 100644 index 00000000000..3f94bde7b26 --- /dev/null +++ b/include/dm/platform_data/net_ethoc.h @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 Cadence Design Systems Inc. + * + * SPDX-License-Identifier:	GPL-2.0 + */ + +#ifndef _ETHOC_H +#define _ETHOC_H + +#include <net.h> + +#ifdef CONFIG_DM_ETH + +struct ethoc_eth_pdata { +	struct eth_pdata eth_pdata; +	phys_addr_t packet_base; +}; + +#endif + +#endif /* _ETHOC_H */ diff --git a/include/miiphy.h b/include/miiphy.h index af12274c81d..83141b4a6ae 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -21,13 +21,6 @@  #include <net.h>  #include <phy.h> -struct legacy_mii_dev { -	int (*read)(const char *devname, unsigned char addr, -		     unsigned char reg, unsigned short *value); -	int (*write)(const char *devname, unsigned char addr, -		      unsigned char reg, unsigned short value); -}; -  int miiphy_read(const char *devname, unsigned char addr, unsigned char reg,  		 unsigned short *value);  int miiphy_write(const char *devname, unsigned char addr, unsigned char reg, @@ -44,12 +37,6 @@ int miiphy_link(const char *devname, unsigned char addr);  void miiphy_init(void); -void miiphy_register(const char *devname, -		      int (*read)(const char *devname, unsigned char addr, -				   unsigned char reg, unsigned short *value), -		      int (*write)(const char *devname, unsigned char addr, -				    unsigned char reg, unsigned short value)); -  int miiphy_set_current_dev(const char *devname);  const char *miiphy_get_current_dev(void);  struct mii_dev *mdio_get_current_dev(void); @@ -86,10 +73,9 @@ extern struct bb_miiphy_bus bb_miiphy_buses[];  extern int bb_miiphy_buses_num;  void bb_miiphy_init(void); -int bb_miiphy_read(const char *devname, unsigned char addr, -		    unsigned char reg, unsigned short *value); -int bb_miiphy_write(const char *devname, unsigned char addr, -		     unsigned char reg, unsigned short value); +int bb_miiphy_read(struct mii_dev *miidev, int addr, int devad, int reg); +int bb_miiphy_write(struct mii_dev *miidev, int addr, int devad, int reg, +		    u16 value);  #endif  /* phy seed setup */ | 
