Add prefex ETH0 to all PHY configurations to support multiple NICs

This commit is contained in:
Gregory Nutt
2013-09-17 10:44:23 -06:00
parent a791ae11ce
commit c233db1327
52 changed files with 123 additions and 123 deletions
+4 -4
View File
@@ -390,10 +390,10 @@ CONFIG_USART2_2STOP=0
#
CONFIG_NET=y
CONFIG_ARCH_HAVE_PHY=y
# CONFIG_PHY_KS8721 is not set
# CONFIG_PHY_DP83848C is not set
# CONFIG_PHY_LAN8720 is not set
CONFIG_PHY_DM9161=y
# CONFIG_ETH0_PHY_KS8721 is not set
# CONFIG_ETH0_PHY_DP83848C is not set
# CONFIG_ETH0_PHY_LAN8720 is not set
CONFIG_ETH0_PHY_DM9161=y
# CONFIG_NET_NOINTS is not set
CONFIG_NET_MULTIBUFFER=y
# CONFIG_NET_IPv6 is not set
+1 -1
View File
@@ -96,7 +96,7 @@
/* Use MCU Pin Reset DM9161 PHY Chip */
#ifdef CONFIG_PHY_DM9161
#ifdef CONFIG_ETH0_PHY_DM9161
# define GPIO_DM9161_RET (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz|GPIO_OUTPUT_SET|\
GPIO_PORTB|GPIO_PIN15)
#endif
+1 -1
View File
@@ -58,7 +58,7 @@
* Public Functions
************************************************************************************/
#if defined(CONFIG_PHY_DM9161) && defined(CONFIG_STM32_PHYINIT)
#if defined(CONFIG_ETH0_PHY_DM9161) && defined(CONFIG_STM32_PHYINIT)
int stm32_phy_boardinitialize(int intf)
{
/* Configure the DM9161 PHY reset pin and take it out of reset */