Commit 27ddfe01 authored by Yuri Tikhonov's avatar Yuri Tikhonov

RM-608 stm32 eth: introduce a new CONFIG_xxx for PHY RMII workaround

Need this workaround with SOM's PHY and schematic only.
Signed-off-by: default avatarYuri Tikhonov <yur@emcraft.com>
parent 81ac3945
......@@ -481,10 +481,10 @@ ok:
debug("%s: found PHY id = %#x at addr %#x\n", __func__,
mac->phy_id, mac->phy_adr);
#ifdef CONFIG_STM32_ETH_RMII
#ifdef CONFIG_KSZ8081_RMII_FORCE
/*
* If exiting from PHY power-off state on STM32F7-SOM we may
* sometimes have 16h.0 (MII Override) bit set. Obviously, this
* If exiting from PHY power-off state on STM32F7-SOM (KSZ8051 phy) we
* may sometimes have 16h.0 (MII Override) bit set. Obviously, this
* results to an incorrect PHY operating. So, we always
* set the necessary override val (16h.1 RMII Override) here
*/
......
......@@ -261,6 +261,7 @@
#define CONFIG_NET_MULTI
#define CONFIG_STM32_ETH
#define CONFIG_STM32_ETH_RMII
#define CONFIG_KSZ8081_RMII_FORCE
/*
* Ethernet RX buffers are malloced from the internal SRAM (more precisely,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment