driver: eth_stm32_hal: make phy address configurable
Signed-off-by: Erwin Rol <erwin@erwinrol.com>
This commit is contained in:
parent
ad8f83733c
commit
e3d8a2b34d
2 changed files with 8 additions and 1 deletions
|
@ -41,6 +41,13 @@ config ETH_STM32_HAL_RX_THREAD_PRIO
|
|||
help
|
||||
RX thread priority
|
||||
|
||||
config ETH_STM32_HAL_PHY_ADDRESS
|
||||
int "Phy address"
|
||||
depends on ETH_STM32_HAL
|
||||
default 0
|
||||
help
|
||||
The phy address to use.
|
||||
|
||||
config ETH_STM32_HAL_RANDOM_MAC
|
||||
bool "Random MAC address"
|
||||
depends on ETH_STM32_HAL && RANDOM_GENERATOR
|
||||
|
|
|
@ -390,7 +390,7 @@ static struct eth_stm32_hal_dev_data eth0_data = {
|
|||
.Instance = ETH,
|
||||
.Init = {
|
||||
.AutoNegotiation = ETH_AUTONEGOTIATION_ENABLE,
|
||||
.PhyAddress = 0,
|
||||
.PhyAddress = CONFIG_ETH_STM32_HAL_PHY_ADDRESS,
|
||||
.RxMode = ETH_RXINTERRUPT_MODE,
|
||||
.ChecksumMode = ETH_CHECKSUM_BY_SOFTWARE,
|
||||
.MediaInterface = ETH_MEDIA_INTERFACE_RMII,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue