PHY Device Initialization
The following image shows an example of the YT8521 PHY device initialization code.
The following images show an example of the YT8531 PHY device initialization code.
The above function calls specify how to initialize the Ethernet PHY. You have to use the MDIO bus to access the PHY control registers. Thus, you need to make sure your MDIO interface is configured properly before the configuration.