bcm-v4

[Specification

LP PHY ACI Update

The definition for struct lpphy_aci is {int on_thresh; int on_timeout; int off_thresh; int off_timeout; int glitch_timeout; int glitch_cnt; int ts; }

  1. Read Shared Memory location 0x68 and save as cnt
  2. Let delta be (cnt - lpphy_aci.glitch_cnt) & 0xFFFF

  3. Store cnt in lpphy_aci.glitch_cnt

  4. If (!(aci_state & 2) && (delta < lpphy_aci.on_thresh)) || ((aci_state & 2) && (delta > lpphy_aci.off_thresh))

    1. Copy now to lpphy_aci.ts

  5. Let t be now - lpphy_aci.ts

  6. If !(aci_state & 2) && (t >= lpphy_aci.on_timeout)

    1. Call LP PHY ACI with 1 as argument

  7. Else if (aci_state & 2) && (t > lpphy_aci.off_timeout)

    1. Call LP PHY ACI with 0 as argument


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