mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 23:35:47 +00:00
Support ethernet without MDIO & MDC lines
This commit is contained in:
parent
8ac09bcf3d
commit
7281d91fbc
2 changed files with 4 additions and 2 deletions
|
|
@ -3604,9 +3604,10 @@ static inline void stm32_ethgpioconfig(struct stm32_ethmac_s *priv)
|
|||
#if defined(CONFIG_STM32H5_MII) || defined(CONFIG_STM32H5_RMII)
|
||||
|
||||
/* MDC and MDIO are common to both modes */
|
||||
|
||||
# ifndef CONFIG_STM32H5_NO_PHY
|
||||
stm32_configgpio(GPIO_ETH_MDC);
|
||||
stm32_configgpio(GPIO_ETH_MDIO);
|
||||
# endif
|
||||
|
||||
/* Set up the MII interface */
|
||||
|
||||
|
|
|
|||
|
|
@ -3699,9 +3699,10 @@ static inline void stm32_ethgpioconfig(struct stm32_ethmac_s *priv)
|
|||
#if defined(CONFIG_STM32H7_MII) || defined(CONFIG_STM32H7_RMII)
|
||||
|
||||
/* MDC and MDIO are common to both modes */
|
||||
|
||||
# ifndef CONFIG_STM32H7_NO_PHY
|
||||
stm32_configgpio(GPIO_ETH_MDC);
|
||||
stm32_configgpio(GPIO_ETH_MDIO);
|
||||
# endif
|
||||
|
||||
/* Set up the MII interface */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue