bcm-v4

[Specification

int Get Crystal Frequency

  1. Save core index and switch to chipcommon core
  2. If the chip has an ID of 0x4328 or 0x5354 (?)
    1. Read SSB_PCICORE_PCICFG2 (0x600), mask with 0x7C, right shift by 2, and save as an index
    2. Find the entry with that index in the table below. If not found, select entry 9 (frequency == 20000)
    3. Set clock to the frequency value from the table * 1000
  3. Else if chip has an ID of 0x4325
    1. Repeat above procedure using Table 1
  4. Else if chip has an ID of 0x4312
    1. Repeat above procedure using Table 1
    2. Set clock to 20,000,000 (Why do step a? Is the read of SSB_PCICORE_PCICFG2 important?)
  5. Otherwise
    1. Set clock to 20,000,000
  6. Restore the original core
  7. Return clock

Table 0

Table 1

Note: At the moment only the first two columns of these tables are used. The others are being kept until their usage is discovered.


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