Does LwIP support all PHYs using the CONFIG_LINKSPEED_AUTODETECT BSP/LwIP setting?
A design with Micrel PHY set to 1Gb/s or 100Mb/s only shows 10Mb/s in the UART output when the SDK LwIP Echo SW application is run:
-----lwIP TCP echo server ------
TCP packets sent to port 6001 will be echoed back
Start PHY autonegotiation
Waiting for PHY to complete autonegotiation.
link speed: 10
Configuring default IP of 192.168.1.10
Board IP: 192.168.1.10
Netmask : 255.255.255.0
Gateway : 192.168.1.1
TCP echo server started @ port 7
All PHYs are not supported.
To use a PHY other than the Marvell PHY please follow these steps:
The following is the basic flow followed in the LwIP for autonegotiation mode.
Please note that the above is the flow that Xilinx implements assuming Marvell PHYs.
As per IEEE 802.3 standards, the first 15 registers are the standard registers that each PHY vendor must implement.
Anything beyond that is vendor specific.
If you are using PHY other than Marvell, examine their specifications and find the corresponding register definitions, then update the code accordingly.