N PHY Antenna Select Init (bool init)
If PHY Revision >= 7
- Return
If PHY Revision >= 3
- Set u16 v0 to 0x211, v1 to 0x222, v2 to 0x144, and v3 to 0x188
- If init is false
- Return
If srom_fem2g.antswctrllut is zero
- Write N PHY Table with ID 9, length 1, offset 0x02, width 16, and data from v0
- Write N PHY Table with ID 9, length 1, offset 0x03, width 16, and data from v1
- Write N PHY Table with ID 9, length 1, offset 0x08, width 16, and data from v2
- Write N PHY Table with ID 9, length 1, offset 0x0C, width 16, and data from v3
If srom_fem5g.antswctrllut is 0
- Write N PHY Table with ID 9, length 1, offset 0x12, width 16, and data from v0
- Write N PHY Table with ID 9, length 1, offset 0x13, width 16, and data from v1
- Write N PHY Table with ID 9, length 1, offset 0x18, width 16, and data from v2
- Write N PHY Table with ID 9, length 1, offset 0x1C, width 16, and data from v3
- Otherwise
- Write 0 to PHY Register 0xC8
- Write 0 to PHY Register 0xC9
- Set bits 0xFC00 in CC GPIO Register
Clear bits (3 << 14) in the maccontrol register
- Write 0xFC00 to psm_gpio_oe register
- Clear bits 0xFC00 in psm_gpio_out register
- If init
- Write 0x02D8 to PHY Register 0xF8
- Write 0x0301 to PHY Register 0xF9
- Write 0x02D8 to PHY Register 0xFA
- Write 0x0301 to PHY Register 0xFB