Support ethernet without MDIO & MDC lines

This commit is contained in:
Mathieu David 2025-04-15 14:38:56 +02:00 • committed by Xiang Xiao
parent 8ac09bcf3d
commit 7281d91fbc
2 changed files with 4 additions and 2 deletions

View file

@ -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 */

View file

@ -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 */