I want to start/stop the ethernet PHY chip on demand. Using
Code: Select all
esp_eth_start()/esp_eth_stop()
I can put PHY reset singal to reset state manually (via gpio_set_level()) which seemingly works correctly together with esp_eth_start/stop, but I'm not too sure about that. Main concern is to make sure the PHY registers are correctly initialized after the unreset.
So how can I correctly reinit the PHY after unreset (while using driver that was installed before the reset was activated)?