cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
3,722 Views
Registered: ‎09-18-2009

lwip PHY Speed Detection

Hello,

 

xapp1026 states that "lwIP includes software to detect the PHY speed, however this software works only for Marvell PHYs.".

 

How does it work and how can we add other phys for this feature, especially for Micrel phys?

 

Regards,
Ali

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
3,712 Views
Registered: ‎08-02-2007

Hi

 

There are a few customers who were able to get Micrel PHY working.

 

http://forums.xilinx.com/t5/Embedded-Development-Tools/xemac-add-hangs-in-lwip-echo-server/td-p/302259

 

There are only few files within LWIP which are dependent on the Marvel PHY. So you can edit the LWIP source in the same locations.


--Hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
Capture.PNG
0 Kudos
Highlighted
Visitor
Visitor
3,692 Views
Registered: ‎05-03-2014

@htsvn:

 

Did you check the source code?

 


Nothing in the driver code appears to be specific to Marvell PHYs. In fact, in older versions of the library, the code does not check the PHY identifier, it simply reads/writes the IEEE standard registers.

 

For some reason that I do not understand, in newer versions of the library, the code specifically checks for Marvell PHYs, if it can't find any, it doesn't even attempt to autonegotiate, even though it is only reading/writing standard IEEE registers which are also supported in a Micrel PHY (at least for GMII interface, for example KSZ9031MNX).

 

What is it with Micrel PHYs that Xilinx/LWIP explicitly removed support for autonegotiation? Is there something wrong with the chips?

0 Kudos