T1023 EC2 RGMII connected to boardcom switch

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

T1023 EC2 RGMII connected to boardcom switch

ソリューションへジャンプ
662件の閲覧回数
bitcom
Contributor II

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

ラベル(1)
0 件の賞賛
1 解決策
499件の閲覧回数
bitcom
Contributor II

Do not init anything about MAC3 in the eth init… write 0x1006  to fe4e4300 , works….

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
499件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
499件の閲覧回数
bitcom
Contributor II

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

0 件の賞賛
500件の閲覧回数
bitcom
Contributor II

Do not init anything about MAC3 in the eth init… write 0x1006  to fe4e4300 , works….

0 件の賞賛