bcm-v4

[Specification

N PHY Antenna Select Init (bool init)

  1. If PHY Revision >= 7

    1. Return
  2. If PHY Revision >= 3

    1. Set u16 v0 to 0x211, v1 to 0x222, v2 to 0x144, and v3 to 0x188
    2. If init is false
      1. Return
    3. If srom_fem2g.antswctrllut is zero

      1. Write N PHY Table with ID 9, length 1, offset 0x02, width 16, and data from v0
      2. Write N PHY Table with ID 9, length 1, offset 0x03, width 16, and data from v1
      3. Write N PHY Table with ID 9, length 1, offset 0x08, width 16, and data from v2
      4. Write N PHY Table with ID 9, length 1, offset 0x0C, width 16, and data from v3
    4. If srom_fem5g.antswctrllut is 0

      1. Write N PHY Table with ID 9, length 1, offset 0x12, width 16, and data from v0
      2. Write N PHY Table with ID 9, length 1, offset 0x13, width 16, and data from v1
      3. Write N PHY Table with ID 9, length 1, offset 0x18, width 16, and data from v2
      4. Write N PHY Table with ID 9, length 1, offset 0x1C, width 16, and data from v3
  3. Otherwise
    1. Write 0 to PHY Register 0xC8
    2. Write 0 to PHY Register 0xC9
    3. Set bits 0xFC00 in CC GPIO Register
    4. Clear bits (3 << 14) in the maccontrol register

    5. Write 0xFC00 to psm_gpio_oe register
    6. Clear bits 0xFC00 in psm_gpio_out register
    7. If init
      1. Write 0x02D8 to PHY Register 0xF8
      2. Write 0x0301 to PHY Register 0xF9
      3. Write 0x02D8 to PHY Register 0xFA
      4. Write 0x0301 to PHY Register 0xFB

Exported/Archived from the wiki to HTML on 2016-10-27