Hello, I am using SPC584B70E5 micro-controller for Ethernet driver development. I wanted to know what is the generic setup of MDC and MDIO pin? Can I verify MDIO interface without MAC initialisation?
I have configured MDI and MDIO pins and wanted to verify mdio write cycle signal on DSO. So what other settings need to do apart from MDC and MDIO pin configuration. Do I need to initialize MDC clock? What are the settings need to do for MDC clock.
Below is mdio_write function I am using.
static void mdio_write(volatile struct ETHERNET_tag *reg,uint8_t phy_addr, uint8_t reg_addr,uint16_t data)
{
reg->MAC_MDIO_DATA.B.RA = reg_addr;
reg->MAC_MDIO_DATA.B.GD = data;
reg->MAC_MDIO_ADDRESS.B.PA = phy_addr;
reg->MAC_MDIO_ADDRESS.B.RDA = reg_addr;
reg->MAC_MDIO_ADDRESS.B.GOC = GMII_WRITE_OP;
reg->MAC_MDIO_ADDRESS.B.GB = 1;
dwmac_qos_mdio_busy_wait(reg);
}

