Skip to content

Commit 44412ae

Browse files
committed
drivers: ethernet: stm32: remove internal phy code
rewirte code and remove code that use internal phy functions. A few Kconfig options got removed, that are now set by the phy via the DT. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent 24a451f commit 44412ae

File tree

5 files changed

+105
-259
lines changed

5 files changed

+105
-259
lines changed

boards/st/stm32h745i_disco/Kconfig.defconfig

-4
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ if NETWORKING
1111
config NET_L2_ETHERNET
1212
default y
1313

14-
# STM32H745I-DISCO have PHY connected to address 1
15-
config ETH_STM32_HAL_PHY_ADDRESS
16-
default 1
17-
1814
endif # NETWORKING
1915

2016
config MEMC

drivers/ethernet/Kconfig.stm32_hal

-44
Original file line numberDiff line numberDiff line change
@@ -74,34 +74,6 @@ config ETH_STM32_HAL_USE_DTCM_FOR_DMA_BUFFER
7474
When this option is activated, the buffers for DMA transfer are
7575
moved from SRAM to the DTCM (Data Tightly Coupled Memory).
7676

77-
config ETH_STM32_HAL_PHY_ADDRESS
78-
int "Phy address"
79-
default 0
80-
help
81-
The phy address to use.
82-
83-
config ETH_STM32_CARRIER_CHECK
84-
bool "Check PHY carrier periodically"
85-
default y
86-
help
87-
Enables or disables checking of the PHY's carrier status.
88-
See also CONFIG_ETH_STM32_CARRIER_CHECK_RX_IDLE_TIMEOUT_MS
89-
90-
config ETH_STM32_CARRIER_CHECK_RX_IDLE_TIMEOUT_MS
91-
int "Carrier check timeout period (ms)"
92-
depends on ETH_STM32_CARRIER_CHECK
93-
default 500
94-
range 100 30000
95-
help
96-
Set the RX idle timeout period in milliseconds after which the
97-
PHY's carrier status is re-evaluated.
98-
99-
config ETH_STM32_AUTO_NEGOTIATION_ENABLE
100-
bool "Autonegotiation mode"
101-
default y
102-
help
103-
Enable this if using autonegotiation
104-
10577
config ETH_STM32_HW_CHECKSUM
10678
bool "Use TX and RX hardware checksum"
10779
depends on !SOC_SERIES_STM32H5X
@@ -110,22 +82,6 @@ config ETH_STM32_HW_CHECKSUM
11082
performances.
11183
See reference manual for more information on this feature.
11284

113-
if !ETH_STM32_AUTO_NEGOTIATION_ENABLE
114-
115-
config ETH_STM32_SPEED_10M
116-
bool "Set speed to 10 Mbps when autonegotiation is disabled"
117-
help
118-
Set this if using 10 Mbps and when autonegotiation is disabled, otherwise speed
119-
is 100 Mbps
120-
121-
config ETH_STM32_MODE_HALFDUPLEX
122-
bool "Half duplex mode"
123-
help
124-
Set this if using half duplex when autonegotiation is disabled otherwise
125-
duplex mode is full duplex
126-
127-
endif # !ETH_STM32_AUTO_NEGOTIATION_ENABLE
128-
12985
if SOC_SERIES_STM32F7X || SOC_SERIES_STM32H7X || SOC_SERIES_STM32H5X
13086

13187
config PTP_CLOCK_STM32_HAL

0 commit comments

Comments
 (0)