bcm-v4

[Specification

Reading and writing tables

Table Listing

Table ID

Name

Availability

Notes

0x07

TX Power Lookup Table

>= 2

See TX Power Control Table

0x0a

TX Power Lookup Table

< 2

See TX Power Control Table

LP PHY Write Table (struct lpphytbl *tbl_info)

  1. struct lpphytbl {void *tbl_ptr; u32len; u32 id; u32 offset; u32 width; u32 phywidth}
  2. Set u8 *u8_ptr to tbl_info->ptr

  3. Do the same for u16 and u32 versions
  4. Write PHY Register 0x455 with tbl_info->id | tbl_info->offset

  5. Loop for idx from 0 to tbl_info->len - 1 (inclusive) in steps of 1

    1. If tbl_info->width is 32

      1. Set temp to u32_ptr[idx]
    2. Else if tbl_info->width is 16

      1. Set temp to u16_ptr[idx]
    3. Otherwise
      1. Set temp to u8_ptr[idx]
    4. If tbl_info->phywidth is 32

      1. Write PHY Register 0x457 with (temp >> 16) & 0xFFFF

    5. Write PHY Register 0x456 with temp & 0xFFFF


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