phywrite
Function
The phywrite command is used to write values to the PHY register.
Format
phywrite <phy_addr> <reg_addr> <val>
Parameters
Parameter |
Description |
Value |
---|---|---|
phy_addr |
PHY address on the MDIO bus. |
Enter the value as required. |
reg_addr |
Offset address of the PHY register. |
Enter the value as required. |
val |
Value to be written to the PHY register. |
Enter the value as required. |
Modes
serial port mode
Usage Guidelines
The LAN switch chip must be used.
Example
Write values to the PHY register.
Hi1710_UBOOT> phywrite 0 0 1
phyaddr = 0, regaddr = 0, writevalue = 0x00000001
read phy register 0 : 0xffff
System Response
None