stm32f7:Allow the use of the Network Monitor via polling

Not all boards have an interrupt line from the phy to
   the Soc. This commit allows the phy to be polled for
   link status.

   This may not work on all MAC/PHY combination that
   have mutually exclusive link management and operating
   modes. The STM32F7 and LAN8742AI do not have such a
   limitation.
This commit is contained in:
David Sidrane 2020-09-18 05:04:56 -07:00 committed by Xiang Xiao
parent e254083a7d
commit f6aa845080

View File

@ -1144,6 +1144,10 @@ config STM32F7_HAVE_ETHRNET
bool
default n
config STM32F7_HAVE_PHY_POLLED
bool
default n
config STM32F7_HAVE_RNG
bool
default n
@ -1402,6 +1406,7 @@ config STM32F7_ETHMAC
depends on STM32F7_HAVE_ETHRNET
select NETDEVICES
select ARCH_HAVE_PHY
select STM32F7_HAVE_PHY_POLLED
config STM32F7_FMC
bool "FMC"
@ -5268,6 +5273,16 @@ config STM32F7_PHYINIT
provide stm32_phyinitialize(); The STM32 Ethernet driver will call this function
one time before it first uses the PHY.
config STM32F7_PHY_POLLING
bool "Support network monitoring by poling the PHY"
default n
depends on STM32F7_HAVE_PHY_POLLED
select ARCH_PHY_POLLED
---help---
Some boards may not have an interrupt connected to the PHY.
This option allows the network monitor to be used by polling the
the PHY for status.
config STM32F7_MII
bool "Use MII interface"
default n