RTL8211FS是作为SGMII转GMII工作模式的配置
1.自协商
mii write port_id 1f 0x0a43
mii write port_id 1b 0xdc88
mii read port_id 1c
mii write port_id 1b 0xdc88
mii write port_id 1c 0x074b
2.配置TXDLY enable
mii write port_id 1f 0xd08
mii write port_id 10 0x5e
/*d08页寄存器0x11,第8bit要设置为1,否则不能正常收发包*/
mii write port_id 11 0x109
配置完记得把页写回标准寄存器页0
本文详细介绍了如何配置RTL8211FS芯片进行自协商和TXDLYenable设置。首先,通过miiwriteport_id指令进行自协商过程,确保设备在SGMII转GMII模式下正确连接。接着,设置了TXDLYenable,特别是d08页寄存器的第8bit,以启用延迟并实现正常的数据收发。最后,别忘了将页写回标准寄存器页0,完成配置。
2243





