N PHY TX Cal PHY Setup
If PHY Revision >= 3
Save PHY Register 0xA6 in tx_rx_cal_phy_saveregs[0]
Save PHY Register 0xA7 in tx_rx_cal_phy_saveregs[1]
- Maskset PHY Register 0xA6 with mask 0xF0FF and set with 0x0A00
- Maskset PHY Register 0xA7 with mask 0xF0FF and set with 0x0A00
Read PHY Register 0x8F and save in tmp and tx_rx_cal_phy_saveregs[2]
- Write (tmp | 0x0600) to PHY Register 0x8F
Read PHY Register 0xA5 and save in tmp and tx_rx_cal_phy_saveregs[3]
- Write (tmp | 0x0600) to PHY Register 0xA5
Save PHY Register 0x01 in tx_rx_cal_phy_saveregs[4]
- Clear bit 0x8000 in PHY Register 0x01
- Read an N PHY Table with ID 8, length 1, offset 3, width 16, and data pointing to tmp
Save tmp in tx_rx_cal_phy_saveregs[5]
- Write an N PHY Table with ID 8, length 1, offset 3, width 16, and data 0
- Read an N PHY Table with ID 8, length 1, offset 19, width 16, and data pointing to tmp
Save tmp in tx_rx_cal_phy_saveregs[6]
- Write an N PHY Table with ID 8, length 1, offset 19, width 16, and data 0
Save PHY Register 0x91 in tx_rx_cal_phy_saveregs[7]
Save PHY Register 0x92 in tx_rx_cal_phy_saveregs[8]
Call N PHY RF Ctrl Intc Override with 2, 1, 3 as arguments
Call N PHY RF Ctrl Intc Override with 1, 2, 1 as arguments
Call N PHY RF Ctrl Intc Override with 1, 8, 2 as arguments
Save PHY Register 0x297 in tx_rx_cal_phy_saveregs[9]
Save PHY Register 0x29B in tx_rx_cal_phy_saveregs[10]
- Clear bit 0x0001 in PHY register 0x297
- Clear bit 0x0001 in PHY register 0x29B
- Otherwise
Save PHY Register 0xA6 in tx_rx_cal_phy_saveregs[0]
Save PHY Register 0xA7 in tx_rx_cal_phy_saveregs[1]
- Maskset PHY Register 0xA6 with mask 0x0FFF and set with 0xA000
- Maskset PHY Register 0xA7 with mask 0x0FFF and set with 0xA000
Read PHY Register 0xA5 and save in tmp and tx_rx_cal_phy_saveregs[2]
- Write (tmp | 0x3000) to PHY Register 0xA5
- Read an N PHY Table with ID 8, length 1, offset 2, width 16, and data pointing to tmp
Save tmp in tx_rx_cal_phy_saveregs[3]
- Set bit 0x2000 in tmp
- Write an N PHY Table with ID 8, length 1, offset 2, width 16, and data pointer tmp
- Read an N PHY Table with ID 8, length 1, offset 18, width 16, and data pointer tmp
Save tmp in tx_rx_cal_phy_saveregs[4]
- Set bit 0x2000 in tmp
- Write an N PHY Table with ID 8, length 1, offset 18, width 16, and data pointer tmp
Save PHY Register 0x91 in tx_rx_cal_phy_saveregs[5]
Save PHY Register 0x92 in tx_rx_cal_phy_saveregs[6]
- If the band is 5GHz
- Set tmp to 0x0180
- Otherwise
- Set tmp to 0x0120
- Write tmp to PHY Register 0x91
- Write tmp to PHY Register 0x92