SerDes protocol 0x099 is used on our T1023 board. the EC2(FMAN MAC3) is connect to boardcom switch 5389 directly, so there is no PHY or MIDO associated with EC2.
How can I config this interface in your u-boot function "board_eth_init" in "eth_t102xrdb.c" , currently I bypass the all setting functions for FM1_DTSEC3, so no phy addr or mdio is associated. But the I can not send anything via the EC2, ping cmd does not work.
1. fm_info_set_phy_address
2. fm_info_set_mdio
=> ping 192.170.175.20
Using FM1@DTSEC3 device
ARP Retry count exceeded; starting again
ping failed; host 192.170.175.20 is not alive
My phys on other ports of the BCM switch are already link up.
Could you tell me what am I missing on setting FM1_DTSEC3?
Thanks
Solved! Go to Solution.
Do not init anything about MAC3 in the eth init… write 0x1006 to fe4e4300 , works….
Hello liang zhe,
For connecting Ethernet port to L2swith, you could refer to u-boot configuration for T1040D4RDB, please refer to the following section in board/freescale/t104xrdb/eth.c.
/* Connect DTSEC1 to L2 switch if it doesn't have a PHY */
if (serdes_get_first_lane(FSL_SRDS_1, SGMII_FM1_DTSEC1) < 0)
vsc9953_port_enable(8);
/* Connect DTSEC2 to L2 switch if it doesn't have a PHY */
if (serdes_get_first_lane(FSL_SRDS_1, SGMII_FM1_DTSEC2) < 0) {
/* Enable L2 On MAC2 using SCFG */
struct ccsr_scfg *scfg = (struct ccsr_scfg *)
CONFIG_SYS_MPC85xx_SCFG;
out_be32(&scfg->esgmiiselcr, in_be32(&scfg->esgmiiselcr) |
(0x80000000));
vsc9953_port_enable(9);
}
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
we are using BCM switch, not your integrated one...
there is no function such as vsc9953_port_enable ....
Could you show me the generic code to set EC2 (MAC3) to a fixed rgmii mac?
Thanks
Do not init anything about MAC3 in the eth init… write 0x1006 to fe4e4300 , works….