File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -79,5 +79,11 @@ config ETH_STM32_HAL_MAC5
7979 This is the byte 5 of the MAC address.
8080endif
8181
82+ config ETH_STM32_HAL_MII
83+ bool "Use MII interface"
84+ depends on ETH_STM32_HAL
85+ help
86+ Use the MII physical interface instead of RMII.
87+
8288endif # ETH_STM32_HAL
8389
Original file line number Diff line number Diff line change @@ -421,7 +421,11 @@ static struct eth_stm32_hal_dev_data eth0_data = {
421421 .PhyAddress = CONFIG_ETH_STM32_HAL_PHY_ADDRESS ,
422422 .RxMode = ETH_RXINTERRUPT_MODE ,
423423 .ChecksumMode = ETH_CHECKSUM_BY_SOFTWARE ,
424+ #if defined(CONFIG_ETH_STM32_HAL_MII )
425+ .MediaInterface = ETH_MEDIA_INTERFACE_MII ,
426+ #else
424427 .MediaInterface = ETH_MEDIA_INTERFACE_RMII ,
428+ #endif
425429 },
426430 },
427431 .mac_addr = {
You can’t perform that action at this time.
0 commit comments