--- Quote Start ---
The TSE is able to communicate with up to two PHYs through MDIO. You need first to set up the MDIO address of the PHY, with one of those calls:
IOWR_ALTERA_TSEMAC_MDIO_ADDR0(base,data)
IOWR_ALTERA_TSEMAC_MDIO_ADDR1(base,data)
Obviously the first line sets the MDIO address for the PHY number 0 and the second one sets the MDIO address for the PHY number 1.
base is tse_mac_base, as you guessed, and
data is the MDIO address.
Then you can access the register with one of those calls:
IORD_ALTERA_TSEMAC_MDIO(base, mdio, reg_num)
IOWR_ALTERA_TSEMAC_MDIO(base, mdio, reg_num, data)
The first line reads, the second writes.
base is again tse_mac_base,
mdio is the PHY number (0 or 1, depending on the call you used to set up the MDIO address),
reg_num the MDIO register number, and
data is the value to write.
--- Quote End ---
Hi,
I'd like to connect one TSE with two Marvell PHYs:
1- Are the above Macros are all that we need?
2- How we are going to connect the MDIO & MDC to both PHY devices?
Your prompt response is highly appreciated.
Thanks & Regards.