Configure ethernet PHY on second MAC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Configure ethernet PHY on second MAC

1,806 次查看
iMxGuy
Contributor II

Hi,

We have a custom designed board where the ethernet phy is connected to the second ethernet mac on the i.MX28. The first MAC is not used and the pins are not configured for it but the platform data is still defined for it in the device.c file. I can start the interface eth0 and it detects the phy okay but I cannot get it to either transmit or receive data. I am getting a connection LED and a 100M speed LED light on the ethernet connector and the connection LED is blinking when it tries to send data. I put a scope on the ENET1_TX_EN pin and it never changes state. I used wireshark and I see no packets being transmitted and I do not receive an IP address from DHCP.  I am thinking the problem is that the driver is trying to drive the MAC0 instead of the MAC1 which is attached to the phy. I am using the LAN8720A phy, the same as on the EVK board. Anyone know how to modify the fec.c or device.c files to make this configuration work?

标签 (1)
4 回复数

1,418 次查看
VladanJovanovic
NXP Employee
NXP Employee

thanks for posting this Mike!

 

br,

Vladan

0 项奖励
回复

1,418 次查看
iMxGuy
Contributor II
Here is my fec.c file in case anyone else needs to make this change. Look at function fec_enet_mii_probe

1,418 次查看
usmansaeed
Contributor I

hey Mike,

can you point out exactly where you did the change, please?

0 项奖励
回复

1,418 次查看
iMxGuy
Contributor II
I got it working. I had to modify the fec.c file. It assumes the index of my phy matches the mac which is not true in my case.
0 项奖励
回复