You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/10/25 13:52:20 UTC
[incubator-nuttx] branch master updated: stm32fh7:Allow the use of the Network Monitor via polling
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new f3256e5668 stm32fh7:Allow the use of the Network Monitor via polling
f3256e5668 is described below
commit f3256e566870686ce232f1435737cc758a189350
Author: David Sidrane <Da...@NscDg.com>
AuthorDate: Wed Oct 12 10:15:20 2022 -0700
stm32fh7: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 STM32H7 and LAN8742AI do not have such a
limitation.
Fix typos
---
arch/arm/src/imxrt/Kconfig | 2 +-
arch/arm/src/stm32f7/Kconfig | 2 +-
arch/arm/src/stm32h7/Kconfig | 15 +++++++++++++++
3 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/arch/arm/src/imxrt/Kconfig b/arch/arm/src/imxrt/Kconfig
index e8574cf9b9..3f2c5c82c5 100644
--- a/arch/arm/src/imxrt/Kconfig
+++ b/arch/arm/src/imxrt/Kconfig
@@ -1816,7 +1816,7 @@ config IMXRT_ENET_PHYINIT
function one time before it first uses the PHY.
config IMXRT_PHY_POLLING
- bool "Support network monitoring by poling the PHY"
+ bool "Support network monitoring by polling the PHY"
default n
depends on IMXRT_ENET
select ARCH_PHY_POLLED
diff --git a/arch/arm/src/stm32f7/Kconfig b/arch/arm/src/stm32f7/Kconfig
index d9587aa84e..2a2d7e90cc 100644
--- a/arch/arm/src/stm32f7/Kconfig
+++ b/arch/arm/src/stm32f7/Kconfig
@@ -6355,7 +6355,7 @@ config STM32F7_PHYINIT
one time before it first uses the PHY.
config STM32F7_PHY_POLLING
- bool "Support network monitoring by poling the PHY"
+ bool "Support network monitoring by polling the PHY"
default n
depends on STM32F7_HAVE_PHY_POLLED
select ARCH_PHY_POLLED
diff --git a/arch/arm/src/stm32h7/Kconfig b/arch/arm/src/stm32h7/Kconfig
index b34252ab01..8be129fdc7 100644
--- a/arch/arm/src/stm32h7/Kconfig
+++ b/arch/arm/src/stm32h7/Kconfig
@@ -449,6 +449,10 @@ config STM32H7_HAVE_ETHERNET
bool
default n
+config STM32H7_HAVE_PHY_POLLED
+ bool
+ default n
+
config STM32H7_HAVE_FMC
bool
default n
@@ -614,6 +618,7 @@ config STM32H7_ETHMAC
depends on STM32H7_HAVE_ETHERNET
select NETDEVICES
select ARCH_HAVE_PHY
+ select STM32H7_HAVE_PHY_POLLED
config STM32H7_FMC
bool "FMC"
@@ -5087,6 +5092,16 @@ config STM32H7_PHYINIT
provide stm32_phyinitialize(); The STM32 Ethernet driver will call this function
one time before it first uses the PHY.
+config STM32H7_PHY_POLLING
+ bool "Support network monitoring by polling the PHY"
+ default n
+ depends on STM32H7_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 STM32H7_MII
bool "Use MII interface"
default n