mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Add prefex ETH0 to all PHY configurations to support multiple NICs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user