diff options
| -rw-r--r-- | board/BuR/common/common.c | 4 | ||||
| -rw-r--r-- | board/compulab/cm_t335/cm_t335.c | 2 | ||||
| -rw-r--r-- | board/isee/igep0033/board.c | 2 | ||||
| -rw-r--r-- | board/phytec/pcm051/board.c | 4 | ||||
| -rw-r--r-- | board/siemens/dxr2/board.c | 2 | ||||
| -rw-r--r-- | board/siemens/pxm2/board.c | 4 | ||||
| -rw-r--r-- | board/siemens/rut/board.c | 4 | ||||
| -rw-r--r-- | board/silica/pengwyn/board.c | 4 | ||||
| -rw-r--r-- | board/ti/am335x/board.c | 4 | ||||
| -rw-r--r-- | board/ti/dra7xx/evm.c | 4 | ||||
| -rw-r--r-- | board/ti/ti814x/evm.c | 4 | ||||
| -rw-r--r-- | drivers/net/cpsw.c | 4 | ||||
| -rw-r--r-- | include/configs/am335x_evm.h | 1 | ||||
| -rw-r--r-- | include/configs/am335x_igep0033.h | 1 | ||||
| -rw-r--r-- | include/configs/bur_am335x_common.h | 1 | ||||
| -rw-r--r-- | include/configs/cm_t335.h | 1 | ||||
| -rw-r--r-- | include/configs/dra7xx_evm.h | 1 | ||||
| -rw-r--r-- | include/configs/dxr2.h | 1 | ||||
| -rw-r--r-- | include/configs/pcm051.h | 1 | ||||
| -rw-r--r-- | include/configs/pengwyn.h | 1 | ||||
| -rw-r--r-- | include/configs/pxm2.h | 1 | ||||
| -rw-r--r-- | include/configs/rut.h | 1 | ||||
| -rw-r--r-- | include/configs/ti814x_evm.h | 1 | ||||
| -rw-r--r-- | include/cpsw.h | 2 | 
24 files changed, 22 insertions, 33 deletions
| diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c index 6d187eaab..04f3f1f4b 100644 --- a/board/BuR/common/common.c +++ b/board/BuR/common/common.c @@ -141,12 +141,12 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 0, +		.phy_addr	= 0,  	},  	{  		.slave_reg_ofs	= 0x308,  		.sliver_reg_ofs	= 0xdc0, -		.phy_id		= 1, +		.phy_addr	= 1,  	},  }; diff --git a/board/compulab/cm_t335/cm_t335.c b/board/compulab/cm_t335/cm_t335.c index 01019e8eb..9583149be 100644 --- a/board/compulab/cm_t335/cm_t335.c +++ b/board/compulab/cm_t335/cm_t335.c @@ -47,7 +47,7 @@ static void cpsw_control(int enabled)  static struct cpsw_slave_data cpsw_slave = {  	.slave_reg_ofs	= 0x208,  	.sliver_reg_ofs	= 0xd80, -	.phy_id		= 0, +	.phy_addr	= 0,  	.phy_if		= PHY_INTERFACE_MODE_RGMII,  }; diff --git a/board/isee/igep0033/board.c b/board/isee/igep0033/board.c index 089a835e0..9f8fcf2c1 100644 --- a/board/isee/igep0033/board.c +++ b/board/isee/igep0033/board.c @@ -116,7 +116,7 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 0, +		.phy_addr	= 0,  		.phy_if		= PHY_INTERFACE_MODE_RMII,  	},  }; diff --git a/board/phytec/pcm051/board.c b/board/phytec/pcm051/board.c index 7e5e07ff2..1071662ea 100644 --- a/board/phytec/pcm051/board.c +++ b/board/phytec/pcm051/board.c @@ -176,13 +176,13 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 0, +		.phy_addr	= 0,  		.phy_if		= PHY_INTERFACE_MODE_RGMII,  	},  	{  		.slave_reg_ofs	= 0x308,  		.sliver_reg_ofs	= 0xdc0, -		.phy_id		= 1, +		.phy_addr	= 1,  		.phy_if		= PHY_INTERFACE_MODE_RGMII,  	},  }; diff --git a/board/siemens/dxr2/board.c b/board/siemens/dxr2/board.c index 6c316faa8..9b8f53831 100644 --- a/board/siemens/dxr2/board.c +++ b/board/siemens/dxr2/board.c @@ -198,7 +198,7 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 0, +		.phy_addr	= 0,  		.phy_if		= PHY_INTERFACE_MODE_MII,  	},  }; diff --git a/board/siemens/pxm2/board.c b/board/siemens/pxm2/board.c index ef3d6cc15..98083d52c 100644 --- a/board/siemens/pxm2/board.c +++ b/board/siemens/pxm2/board.c @@ -181,13 +181,13 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 0, +		.phy_addr	= 0,  		.phy_if		= PHY_INTERFACE_MODE_RMII,  	},  	{  		.slave_reg_ofs	= 0x308,  		.sliver_reg_ofs	= 0xdc0, -		.phy_id		= 1, +		.phy_addr	= 1,  		.phy_if		= PHY_INTERFACE_MODE_RMII,  	},  }; diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c index 25ab54d9a..e0ada3f6a 100644 --- a/board/siemens/rut/board.c +++ b/board/siemens/rut/board.c @@ -143,13 +143,13 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 1, +		.phy_addr	= 1,  		.phy_if		= PHY_INTERFACE_MODE_RMII,  	},  	{  		.slave_reg_ofs	= 0x308,  		.sliver_reg_ofs	= 0xdc0, -		.phy_id		= 0, +		.phy_addr	= 0,  		.phy_if		= PHY_INTERFACE_MODE_RMII,  	},  }; diff --git a/board/silica/pengwyn/board.c b/board/silica/pengwyn/board.c index a553129d2..ee88b6f39 100644 --- a/board/silica/pengwyn/board.c +++ b/board/silica/pengwyn/board.c @@ -141,13 +141,13 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 0, +		.phy_addr	= 0,  		.phy_if		= PHY_INTERFACE_MODE_MII,  	},  	{  		.slave_reg_ofs	= 0x308,  		.sliver_reg_ofs	= 0xdc0, -		.phy_id		= 1, +		.phy_addr	= 1,  		.phy_if		= PHY_INTERFACE_MODE_MII,  	},  }; diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 57217688d..862f966e7 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -544,12 +544,12 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 0, +		.phy_addr	= 0,  	},  	{  		.slave_reg_ofs	= 0x308,  		.sliver_reg_ofs	= 0xdc0, -		.phy_id		= 1, +		.phy_addr	= 1,  	},  }; diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c index bed828584..7990e7990 100644 --- a/board/ti/dra7xx/evm.c +++ b/board/ti/dra7xx/evm.c @@ -149,12 +149,12 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x208,  		.sliver_reg_ofs	= 0xd80, -		.phy_id		= 0, +		.phy_addr	= 2,  	},  	{  		.slave_reg_ofs	= 0x308,  		.sliver_reg_ofs	= 0xdc0, -		.phy_id		= 1, +		.phy_addr	= 3,  	},  }; diff --git a/board/ti/ti814x/evm.c b/board/ti/ti814x/evm.c index 140ad7103..54b3dfb82 100644 --- a/board/ti/ti814x/evm.c +++ b/board/ti/ti814x/evm.c @@ -132,12 +132,12 @@ static struct cpsw_slave_data cpsw_slaves[] = {  	{  		.slave_reg_ofs	= 0x50,  		.sliver_reg_ofs	= 0x700, -		.phy_id		= 1, +		.phy_addr	= 1,  	},  	{  		.slave_reg_ofs	= 0x90,  		.sliver_reg_ofs	= 0x740, -		.phy_id		= 0, +		.phy_addr	= 0,  	},  }; diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index 50167aab6..dd6c26a7f 100644 --- a/drivers/net/cpsw.c +++ b/drivers/net/cpsw.c @@ -656,7 +656,7 @@ static void cpsw_slave_init(struct cpsw_slave *slave, struct cpsw_priv *priv)  	cpsw_ale_add_mcast(priv, NetBcastAddr, 1 << slave_port); -	priv->phy_mask |= 1 << slave->data->phy_id; +	priv->phy_mask |= 1 << slave->data->phy_addr;  }  static struct cpdma_desc *cpdma_desc_alloc(struct cpsw_priv *priv) @@ -948,7 +948,7 @@ static int cpsw_phy_init(struct eth_device *dev, struct cpsw_slave *slave)  			SUPPORTED_1000baseT_Full);  	phydev = phy_connect(priv->bus, -			CONFIG_PHY_ADDR, +			slave->data->phy_addr,  			dev,  			slave->data->phy_if); diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index 59a8f36d1..23c056c82 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -398,7 +398,6 @@  /* Network. */  #define CONFIG_PHY_GIGE  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_SMSC  /* NAND support */ diff --git a/include/configs/am335x_igep0033.h b/include/configs/am335x_igep0033.h index 115d1b37c..e72ee05ec 100644 --- a/include/configs/am335x_igep0033.h +++ b/include/configs/am335x_igep0033.h @@ -181,7 +181,6 @@  #define CONFIG_NET_RETRY_COUNT         10  #define CONFIG_NET_MULTI  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_SMSC  /* NAND support */ diff --git a/include/configs/bur_am335x_common.h b/include/configs/bur_am335x_common.h index 1f57bd274..7bbe5964a 100644 --- a/include/configs/bur_am335x_common.h +++ b/include/configs/bur_am335x_common.h @@ -51,7 +51,6 @@  #define CONFIG_MII			/* Required in net/eth.c */  #define CONFIG_SPL_ETH_SUPPORT  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			1  #define CONFIG_PHY_NATSEMI  #define CONFIG_SPL_NET_SUPPORT  #define CONFIG_SPL_ENV_SUPPORT		/* used for a fetching MAC-Address */ diff --git a/include/configs/cm_t335.h b/include/configs/cm_t335.h index 56e9a8e0e..26b615b8c 100644 --- a/include/configs/cm_t335.h +++ b/include/configs/cm_t335.h @@ -114,7 +114,6 @@  /* Network. */  #define CONFIG_PHY_GIGE  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_ATHEROS  /* NAND support */ diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h index c67cf60c0..291c538a3 100644 --- a/include/configs/dra7xx_evm.h +++ b/include/configs/dra7xx_evm.h @@ -62,7 +62,6 @@  #define CONFIG_MII			/* Required in net/eth.c */  #define CONFIG_PHY_GIGE			/* per-board part of CPSW */  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			2  /* SPI */  #undef	CONFIG_OMAP3_SPI diff --git a/include/configs/dxr2.h b/include/configs/dxr2.h index 1e42f5c23..e95d74c04 100644 --- a/include/configs/dxr2.h +++ b/include/configs/dxr2.h @@ -49,7 +49,6 @@  #undef CONFIG_MII  #undef CONFIG_PHY_GIGE -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_SMSC  #define CONFIG_FACTORYSET diff --git a/include/configs/pcm051.h b/include/configs/pcm051.h index 6f41ee771..9af3efd4b 100644 --- a/include/configs/pcm051.h +++ b/include/configs/pcm051.h @@ -297,7 +297,6 @@  #define CONFIG_NET_MULTI  #define CONFIG_PHY_GIGE  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_SMSC  #endif	/* ! __CONFIG_PCM051_H */ diff --git a/include/configs/pengwyn.h b/include/configs/pengwyn.h index 5a555567d..fc25966e0 100644 --- a/include/configs/pengwyn.h +++ b/include/configs/pengwyn.h @@ -196,7 +196,6 @@  /* Network */  #define CONFIG_CMD_MII  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR		1  #define CONFIG_PHY_RESET	1  #define CONFIG_PHY_NATSEMI diff --git a/include/configs/pxm2.h b/include/configs/pxm2.h index 7722f7be2..6276d4339 100644 --- a/include/configs/pxm2.h +++ b/include/configs/pxm2.h @@ -44,7 +44,6 @@  #undef CONFIG_SPL_NET_VCI_STRING  #undef CONFIG_SPL_ETH_SUPPORT -#define CONFIG_PHY_ADDR			0  #define CONFIG_PHY_ATHEROS  #define CONFIG_FACTORYSET diff --git a/include/configs/rut.h b/include/configs/rut.h index d4519f946..6bddededa 100644 --- a/include/configs/rut.h +++ b/include/configs/rut.h @@ -41,7 +41,6 @@  #undef CONFIG_SPL_NET_VCI_STRING  #undef CONFIG_SPL_ETH_SUPPORT -#define CONFIG_PHY_ADDR			1  #define CONFIG_PHY_NATSEMI  #define CONFIG_FACTORYSET diff --git a/include/configs/ti814x_evm.h b/include/configs/ti814x_evm.h index ba16b1c14..b51400c46 100644 --- a/include/configs/ti814x_evm.h +++ b/include/configs/ti814x_evm.h @@ -233,7 +233,6 @@  #define CONFIG_NET_MULTI  #define CONFIG_PHY_GIGE  #define CONFIG_PHYLIB -#define CONFIG_PHY_ADDR			1  #define CONFIG_PHY_ET1011C  #define CONFIG_PHY_ET1011C_TX_CLK_FIX diff --git a/include/cpsw.h b/include/cpsw.h index 743cb96e7..a73843d2f 100644 --- a/include/cpsw.h +++ b/include/cpsw.h @@ -19,7 +19,7 @@  struct cpsw_slave_data {  	u32		slave_reg_ofs;  	u32		sliver_reg_ofs; -	int		phy_id; +	int		phy_addr;  	int		phy_if;  }; |