GPHY TR Switch ( int tr, bool set )
Set tmp1 to (tr << 14) | (tr << 6)
Read PHY Register 0x4A0, mask with 0xBFBF, bitwise OR with tmp1, and save as tmp2
Write tmp2 to PHY Register 0x4A0
Read PHY Register 0x4A1, mask with 0xBFBF, bitwise OR with tmp1, and save as tmp2
Write tmp2 to PHY Register 0x4A1
Read PHY Register 0x4A2, mask with 0xBFBF, and save as tmp2
- If set
Bitwise OR tmp2 with (tr << 14)
- Otherwise
- Bitwise OR tmp2 with tmp1
Write tmp2 to PHY Register 0x4A2