How to disable rx tx flow control of FEC driver?

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

How to disable rx tx flow control of FEC driver?

2,760件の閲覧回数
coilnpark
Contributor IV

Could you let me know how to disable flow control rx/tx of FEC driver?

fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

Also, I could know I had to modify fec_main.c source to get rx packets in ping test as below.

But, ping is not working until now...

 

 

fec_main.c

 

/* Enable flow control and length check */

                //rcntl |= 0x40000000 | 0x00000020; // colin  -  Yocto

                rcntl = readl(fep->hwp + FEC_R_CNTRL);  //colin  - LTIB

 

                /* RGMII, RMII or MII */

                if (fep->phy_interface == PHY_INTERFACE_MODE_RGMII ||

                    fep->phy_interface == PHY_INTERFACE_MODE_RGMII_ID ||

                    fep->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID ||

                    fep->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID)

                        rcntl |= (1 << 6);

                else if (fep->phy_interface == PHY_INTERFACE_MODE_RMII)

                        rcntl |= (1 << 8);

                else

                        rcntl &= ~(1 << 8);

 

                /* 1G, 100M or 10M */

                if (fep->phy_dev) {

                        if (fep->phy_dev->speed == SPEED_1000)

                                ecntl |= (1 << 5);

                        else if (fep->phy_dev->speed == SPEED_100)

                                rcntl &= ~(1 << 9);

                        else

                                rcntl |= (1 << 9);

                }

ラベル(4)
0 件の賞賛
返信
1 返信

1,904件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Coiln

one can check

switch - Enabling flow control on my ethernet NIC - Network Engineering Stack Exchange 

UbuntuLTSP/FlowControl - Community Help Wiki 

ENET_RCR bit description in sect.23.5.9 Receive Control Register (ENET_RCR)

i.MX6DQ Reference Manual
http://cache.nxp.com/files/soft_dev_tools/doc/support_info/iMX6DQPRM.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信